Read Thermostat in devicechanged table

Moderator: leecollings

Post Reply
mirage
Posts: 3
Joined: Monday 24 November 2014 0:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Read Thermostat in devicechanged table

Post 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
User avatar
jvdz
Posts: 2335
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Read Thermostat in devicechanged table

Post by jvdz »

Something like this:

Code: Select all

otherdevices_svalues['Thermostat'] 
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Read Thermostat in devicechanged table

Post by JuanUil »

How can you make a dummy thermostat????
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
User avatar
jvdz
Posts: 2335
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Read Thermostat in devicechanged table

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Read Thermostat in devicechanged table

Post by Egregius »

Those are there since long, I'm using setpoints since begin 2015 in scripts.
mirage
Posts: 3
Joined: Monday 24 November 2014 0:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Read Thermostat in devicechanged table

Post 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
angusmurray
Posts: 5
Joined: Thursday 07 January 2016 12:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Read Thermostat in devicechanged table

Post 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
benp
Posts: 52
Joined: Saturday 21 May 2016 20:12
Target OS: NAS (Synology & others)
Domoticz version: V4.10717
Location: France
Contact:

Re: Read Thermostat in devicechanged table

Post 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...
Domoticz V2024.7
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest