Page 1 of 1

Read Thermostat in devicechanged table

Posted: Wednesday 02 December 2015 17:05
by mirage
Domoticz just gets better and better.
I've just realised that there is now a thermostat device available. I have created a dummy thermostat which now appears on the web interface. When I change the temperature I want to execute a Perl script to communicate with my heatmiser thermostat.
The scripting is fine and my device.other script triggers fine when I change the value in the browser. I just cant see for the life of me how to read the new thermostat value in LUA.
I tried:

Code: Select all

devicechanged_svalues['Thermostat']
devicechanged_temperature['Thermostat']
Thanks

Re: Read Thermostat in devicechanged table

Posted: Wednesday 02 December 2015 17:22
by jvdz
Something like this:

Code: Select all

otherdevices_svalues['Thermostat'] 
Jos

Re: Read Thermostat in devicechanged table

Posted: Wednesday 02 December 2015 20:14
by JuanUil
How can you make a dummy thermostat????

Re: Read Thermostat in devicechanged table

Posted: Wednesday 02 December 2015 20:23
by jvdz
Go to the Setup/Hardware page.
Create a Dummy entry in case you don't have it yet.
Click on the "Create virtual Sensor" button on the Dummy hardware and select "Termostat setpoint".

Jos

Re: Read Thermostat in devicechanged table

Posted: Thursday 03 December 2015 6:31
by Egregius
Those are there since long, I'm using setpoints since begin 2015 in scripts.

Re: Read Thermostat in devicechanged table

Posted: Thursday 03 December 2015 16:44
by mirage
Thanks Jos,
That worked. I just thought I should read the devicechanged table when a device changes, but otherdevices contained the correct value.

The other reason it failed for me even when using otherdevices is that I had a print command to log the value but forgot to return the commandArray. I never realised that this means that the script doesnt execute.

Raj

Re: Read Thermostat in devicechanged table

Posted: Saturday 09 January 2016 0:41
by angusmurray
Raj,

Sorry, but can you point me at instructions on how to interface the heat miser with domoticz? I have a wifi heat miser (not neo, the old kind), I have a switch setup to boost the hot water and heating, but would like to track the temperature in domoticz. Are you able to give more info on how to do it?

many thanks
Angus

Re: Read Thermostat in devicechanged table

Posted: Wednesday 25 May 2016 23:24
by benp
Look at this post:
http://www.domoticz.com/forum/viewtopic ... 56&t=12099
This is for Heatmiser PRT, not Neo
I don't know which one it is here...