Python Plugin: Smart Virtual Thermostat

For heating/cooling related questions in Domoticz
SzuR
Posts: 11
Joined: Monday 26 February 2018 21:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin: Smart Virtual Thermostat

Post by SzuR » Monday 25 June 2018 7:48

Ok thanks so i have to try till it works. :-D
Are you using stable domoticz or beta?

Wysłane z mojego D6503 przy użyciu Tapatalka


Edit
So frozen domoticz was an issue with last domoticz update. Couple people have same issue and it is connected with mydomoticz allowed in settings...

pipiche
Posts: 51
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi
Domoticz version: beta
Location: France
Contact:

Re: Python Plugin: Smart Virtual Thermostat

Post by pipiche » Thursday 05 July 2018 16:49

This is a pretty impressive plugin.

You mentioned that the plugin required 2 to 3 days to learn. What's happen in case of restart of domoticz or even the hosts system. Are we back to 2 to 3 days of learning ?

Logread
Posts: 186
Joined: Sunday 28 August 2016 7:48
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Re: Python Plugin: Smart Virtual Thermostat

Post by Logread » Thursday 05 July 2018 17:00

pipiche wrote:
Thursday 05 July 2018 16:49
You mentioned that the plugin required 2 to 3 days to learn. What's happen in case of restart of domoticz or even the hosts system. Are we back to 2 to 3 days of learning ?
The plugin saves the « learning » in a dedicated user variable that it creates. This survives a restart or a reboot (and is backed up as you make backups of domoticz). Only if you delete that user variable will learning be lost.

pipiche
Posts: 51
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi
Domoticz version: beta
Location: France
Contact:

Re: Python Plugin: Smart Virtual Thermostat

Post by pipiche » Thursday 05 July 2018 18:20

The plugin saves the « learning » in a dedicated user variable that it creates.
Interesting, I'll have a look. I was not aware that a uservariable could be created .

Thanks

jake
Posts: 443
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: Python Plugin: Smart Virtual Thermostat

Post by jake » Friday 06 July 2018 22:31

pipiche wrote:
The plugin saves the « learning » in a dedicated user variable that it creates.
Interesting, I'll have a look. I was not aware that a uservariable could be created .

Thanks
You can't create it, but you can 'modify' it, if you know what you're dining. Worst case you simply delete the content and let the plugin recreate it.

HvdW
Posts: 2
Joined: Sunday 01 November 2015 23:45
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin: Smart Virtual Thermostat

Post by HvdW » Tuesday 24 July 2018 11:48

Still having problems with Domoticz crashing.
Pity.
Just by reading about it it seems the easyest and best solution to create modulation on my 19 years old boiler.
Waiting for a version without bugs.

Anyway: Thanks for all efforts you have put and still put into it.
Great job @Logread!

PS
What is the most gracefull way of deleting Smart Virtual Thermostat from RPI.
I do it by deleting SVT directory and a restart.
I have the impression there is more to delete.

pacioc193
Posts: 1
Joined: Thursday 30 August 2018 14:24
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin: Smart Virtual Thermostat

Post by pacioc193 » Thursday 30 August 2018 14:30

What about this error?

2018-08-30 14:29:07.288 Error: (Termostato) Error calling 'http://localhost:8080/json.htm?type=dev ... order=Name'
2018-08-30 14:29:07.288 Error: (Termostato) No Inside Temperature found... Switching Thermostat Off
2018-08-30 14:29:07.303 Error: (Termostato) Error calling 'http://localhost:8080/json.htm?type=dev ... order=Name'
2018-08-30 14:29:07.304 Error: (Termostato) 'onHeartbeat' failed 'KeyError'.
2018-08-30 14:29:07.304 Error: (Termostato) ----> Line 599 in /home/pi/domoticz/plugins/SVT/plugin.py, function onHeartbeat
2018-08-30 14:29:07.304 Error: (Termostato) ----> Line 352 in /home/pi/domoticz/plugins/SVT/plugin.py, function onHeartbeat
2018-08-30 14:29:07.304 Error: (Termostato) ----> Line 469 in /home/pi/domoticz/plugins/SVT/plugin.py, function switchHeat

I've set as internal sensor idx 9

attach a photo!

This is the webpage!


{
"ActTime" : 1535632419,
"AstrTwilightEnd" : "21:55",
"AstrTwilightStart" : "04:55",
"CivTwilightEnd" : "20:38",
"CivTwilightStart" : "06:12",
"DayLength" : "13:24",
"NautTwilightEnd" : "21:15",
"NautTwilightStart" : "05:35",
"ServerTime" : "2018-08-30 14:33:39",
"SunAtSouth" : "13:05",
"Sunrise" : "06:43",
"Sunset" : "20:07",
"app_version" : "4.9700",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Off",
"Description" : "",
"DimmerType" : "none",
"Favorite" : 0,
"HardwareID" : 3,
"HardwareName" : "GPIO",
"HardwareType" : "Raspberry's GPIO port",
"HardwareTypeVal" : 32,
"HaveDimmer" : false,
"HaveGroupCmd" : false,
"HaveTimeout" : false,
"ID" : "0",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2018-08-29 21:55:13",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 0,
"Name" : "Relè",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Impuls",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Lighting 1",
"TypeImg" : "lightbulb",
"Unit" : 21,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "2"
},
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 15,
"Data" : "Off",
"Description" : "",
"DimmerType" : "none",
"Favorite" : 1,
"HardwareID" : 4,
"HardwareName" : "Termostato",
"HardwareType" : "Smart Virtual Thermostat",
"HardwareTypeVal" : 94,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00040001",
"Image" : "Heating",
"IsSubDevice" : false,
"LastUpdate" : "2018-08-30 14:33:05",
"Level" : 0,
"LevelActions" : "fHw=",
"LevelInt" : 0,
"LevelNames" : "T2ZmfEF1dG98Rm9yY2Vk",
"LevelOffHidden" : false,
"MaxDimLevel" : 100,
"Name" : "OFF / Auto / Force",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"SelectorStyle" : 0,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Selector Switch",
"SwitchType" : "Selector",
"SwitchTypeVal" : 18,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "Light",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "3"
},
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 15,
"Data" : "On",
"Description" : "",
"DimmerType" : "none",
"Favorite" : 1,
"HardwareID" : 4,
"HardwareName" : "Termostato",
"HardwareType" : "Smart Virtual Thermostat",
"HardwareTypeVal" : 94,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00040002",
"Image" : "Heating",
"IsSubDevice" : false,
"LastUpdate" : "2018-08-30 07:21:04",
"Level" : 10,
"LevelActions" : "fHw=",
"LevelInt" : 10,
"LevelNames" : "T2ZmfE5vcm1hbHxFY29ub215",
"LevelOffHidden" : true,
"MaxDimLevel" : 100,
"Name" : "Economy/Normale",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"SelectorStyle" : 0,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "On",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Selector Switch",
"SwitchType" : "Selector",
"SwitchTypeVal" : 18,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "Light",
"Unit" : 2,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "4"
},
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 9,
"Data" : "Off",
"Description" : "",
"DimmerType" : "none",
"Favorite" : 0,
"HardwareID" : 4,
"HardwareName" : "Termostato",
"HardwareType" : "Smart Virtual Thermostat",
"HardwareTypeVal" : 94,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00040003",
"Image" : "Generic",
"IsSubDevice" : false,
"LastUpdate" : "2018-08-29 21:45:38",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 100,
"Name" : "Pausa Termostato",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Switch",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "lightbulb",
"Unit" : 3,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "5"
}
],
"status" : "OK",
"title" : "Devices"
}
Attachments
Immagine.png
Immagine.png (71.72 KiB) Viewed 265 times

Logread
Posts: 186
Joined: Sunday 28 August 2016 7:48
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Re: Python Plugin: Smart Virtual Thermostat

Post by Logread » Thursday 30 August 2018 15:47

pacioc193 wrote:
Thursday 30 August 2018 14:30
What about this error?

2018-08-30 14:29:07.288 Error: (Termostato) Error calling 'http://localhost:8080/json.htm?type=dev ... order=Name'
2018-08-30 14:29:07.288 Error: (Termostato) No Inside Temperature found... Switching Thermostat Off
2018-08-30 14:29:07.303 Error: (Termostato) Error calling 'http://localhost:8080/json.htm?type=dev ... order=Name'
2018-08-30 14:29:07.304 Error: (Termostato) 'onHeartbeat' failed 'KeyError'.
2018-08-30 14:29:07.304 Error: (Termostato) ----> Line 599 in /home/pi/domoticz/plugins/SVT/plugin.py, function onHeartbeat
2018-08-30 14:29:07.304 Error: (Termostato) ----> Line 352 in /home/pi/domoticz/plugins/SVT/plugin.py, function onHeartbeat
2018-08-30 14:29:07.304 Error: (Termostato) ----> Line 469 in /home/pi/domoticz/plugins/SVT/plugin.py, function
Do not use « localhost » as IP in the plugin configuration page... use 127.0.0.1

And yes your dummy temp sensor with idx 9 should be ok then

renerene
Posts: 129
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Smart Virtual Thermostat

Post by renerene » Sunday 23 September 2018 11:04

same error here:
2018-09-23 10:58:25.410 Error: (thermostaat) 'onHeartbeat' failed 'KeyError'.
2018-09-23 10:58:25.410 Error: (thermostaat) ----> Line 596 in '/home/pi/domoticz/plugins/SVT/plugin.py', function onHeartbeat
2018-09-23 10:58:25.410 Error: (thermostaat) ----> Line 279 in '/home/pi/domoticz/plugins/SVT/plugin.py', function onHeartbeat

Following is not succesfull
- using 127.0.0.1 instead of localhost in hardware settings of SVT
- removing login info in hardware settings of SVT
- removing login of both domoticz and SVT

update:

error is probably because no devices are added bij Domoticz after adding a SVT hardware item

Logread
Posts: 186
Joined: Sunday 28 August 2016 7:48
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Re: Python Plugin: Smart Virtual Thermostat

Post by Logread » Tuesday 25 September 2018 8:47

renerene wrote:
Sunday 23 September 2018 11:04
same error here:
2018-09-23 10:58:25.410 Error: (thermostaat) 'onHeartbeat' failed 'KeyError'.
2018-09-23 10:58:25.410 Error: (thermostaat) ----> Line 596 in '/home/pi/domoticz/plugins/SVT/plugin.py', function onHeartbeat
2018-09-23 10:58:25.410 Error: (thermostaat) ----> Line 279 in '/home/pi/domoticz/plugins/SVT/plugin.py', function onHeartbeat

Following is not succesfull
- using 127.0.0.1 instead of localhost in hardware settings of SVT
- removing login info in hardware settings of SVT
- removing login of both domoticz and SVT

update:

error is probably because no devices are added bij Domoticz after adding a SVT hardware item
You are correct, domoticz does not create the devices if you so not allow it to: see the settings page and allow new devices to be created. This should resolve your issue.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests