more G-Labs products

Author Topic: Zwave Thermostat  (Read 21847 times)

July 22, 2014, 10:48:53 PM
Reply #30

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
Ok.. i've got a bit further with getting my Horstmann HRT4-ZW thermostat working.. but i still have a few issues that hopefully someone can help with..

The thermostat that i have consists of two devices - the thermostat itself (the HRT4-ZW) and a switch that you connect to your boiler (HRT4-ASR-ZW) to allow the thermostat to turn the heating on/off.

I unpluged the z-stick from the raspberry pi and unpaired these devices manually and then readded both of them to the z-stick by pressing it's button etc.
Then plugged the z-stick back into the pi and restarted homegenie - then when i did a discovery in homegenie there were two new z-wave ids! I added both of these and how have the two devices added and working! (kind of!)

Both of the devices have to be added as thermostat devices for them to work:

The first device - the switch, switches on and off when the Off and Heat buttons are pressed in it's homegenie widget - so that works!

The second device  - the thermostat - displays temperature and set point values in it's homegenie widget and if i change the set point by moving the dial on the thermostat - the set point in home genie changes!

The part that doesn't work is changing the set point in the homegenie widget - it doesnt update the set point on the thermostat.

Also, as this is two seperate devices is there anyway to combine the two - so that the temp display/control and Off/Heat buttons will work in the same widget as though they were one device?

RichieC

July 28, 2014, 01:13:14 AM
Reply #31

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
I think that for this thermostat at least homegenie is sending the wrong type of commands to set the setpoint of the thermostat..

If i monitor the "event history" from homegenie, when changing the setpoint on the thermostat itself by moving the dial to set the temp to 22 degrees C, i get the following:

00:04:20.974   Thermostat.SetPoint   22.0   33   HomeAutomation.ZWave

but if i change the temp to 12 degrees C in the homegenie widget, this is what is sent to the thermostat (which doesnt work):

00:04:49.109   Status.Level   0.12   33   HomeAutomation.ZWave

Should this not be sending a Thermostat.SetPoint command instead of Status.Level ?

Thanks for all the work on this so far and i really hope you can help with this as i'd love to get this working .. and it's almost there!

Richie





Ok.. i've got a bit further with getting my Horstmann HRT4-ZW thermostat working.. but i still have a few issues that hopefully someone can help with..

The thermostat that i have consists of two devices - the thermostat itself (the HRT4-ZW) and a switch that you connect to your boiler (HRT4-ASR-ZW) to allow the thermostat to turn the heating on/off.

I unpluged the z-stick from the raspberry pi and unpaired these devices manually and then readded both of them to the z-stick by pressing it's button etc.
Then plugged the z-stick back into the pi and restarted homegenie - then when i did a discovery in homegenie there were two new z-wave ids! I added both of these and how have the two devices added and working! (kind of!)

Both of the devices have to be added as thermostat devices for them to work:

The first device - the switch, switches on and off when the Off and Heat buttons are pressed in it's homegenie widget - so that works!

The second device  - the thermostat - displays temperature and set point values in it's homegenie widget and if i change the set point by moving the dial on the thermostat - the set point in home genie changes!

The part that doesn't work is changing the set point in the homegenie widget - it doesnt update the set point on the thermostat.

Also, as this is two seperate devices is there anyway to combine the two - so that the temp display/control and Off/Heat buttons will work in the same widget as though they were one device?

RichieC

August 01, 2014, 01:11:36 AM
Reply #32

miket

  • **
  • Information
  • Jr. Member
  • Posts: 40
Sorry-  I've been gone from the forum for a bit.  Busy week!

Richie...can you post your log file (from the homegenie directory...not the event history)?  So the good thing is that the device is reporting the temperature correctly and sending events! 

Have you tried sending a higher temperature to see if it works (even try sending plausible F temps)

The "status.level" is a byproduct of extending the sensor class...it's actually sending a thermostat command.  I'll know more if you can send the logfile (with the raw io bytes)


I'm going to think about the issue you had a bit and see if I can figure it out.   


August 01, 2014, 03:41:43 PM
Reply #33

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
No need for apologies.. busy here too just lately so i know all about that!

I'm not at home at the moment but i'm pretty sure i've tried setting the temperature to high values.. all the way up to 100 and it doesn't work. I can see what you're thinking though - the values that it sends currently in status.level messages are between 0 and 1 (so for 20degrees it sends 0.2) when i see a thermostat.setpoint message it sends a value of 20 - It could be that the thermostat is not accepting the status.level values as they are out of the range of values that it can set the thermostat to - it only allows values from 5 - 30 degrees C (setting it manually anyway) so even if i try to set the temperature to 100 in the homegenie widget it still only sends it as 1.0 which is still out of range.

How can get the full log to appear? When i download the log from the configuration screen it doesnt seem to contain everything (raw data byte etc). Do i need to stop the homegenie service and start it manually from a telnet session to see this?

I have also solved the problem of it being two separate devices as i stated previously - i have added node 1 (homegenie) and 32 (the switch device) to the switch association on the thermostat and this causes it to switch the switch device on and off when the heat icon appears on the thermostat and also shows off/heat in the homegenie widget for the thermostat :-) The Off / Heat buttons dont work though because they are still sending to the thermostat device instead of the switch .. but im not too bothered about this..

Rich

Sorry-  I've been gone from the forum for a bit.  Busy week!

Richie...can you post your log file (from the homegenie directory...not the event history)?  So the good thing is that the device is reporting the temperature correctly and sending events! 

Have you tried sending a higher temperature to see if it works (even try sending plausible F temps)

The "status.level" is a byproduct of extending the sensor class...it's actually sending a thermostat command.  I'll know more if you can send the logfile (with the raw io bytes)


I'm going to think about the issue you had a bit and see if I can figure it out.

August 03, 2014, 10:41:00 PM
Reply #34

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
Unfortunately there appears to be a bug in the latest version of homegenie (r403) that  means that the module parameters cant be set from the UI anymore (clicking the 3-bars icon on a module now just opens it settings the same as clicking on the module itself ). I did have the variable in there to set the thermostat to use Centigrade.. but it looks as though its gone back to Fahrenheit and i cant change it back - so the values from the thermostat are in C but i can only set the widget to F temps..

But..

Here is the log output from homegenie when setting my thermostat to 15 degrees C (using the dial on the device itself)

2014-08-03T19:27:28.4160370+00:00       MIG.Gateways.WebServiceGateway  192.168.0.12    api/HomeAutomation.HomeGenie/Config/Modules.Get/HomeAutomation.HomeGenie.Automation/35/1407094035857    HTTP    POST
2014-08-03T19:27:31.4593190+00:00       MIG.Gateways.WebServiceGateway  192.168.0.12    api/HomeAutomation.HomeGenie/Config/Interfaces.List/1407094038511      HTTP     GET
[19:27:31.504146] SPI > 01 0C 00 04 08 21 06 43 03 01 22 00 96 2D
[19:27:31.511925] SPO < 06
2014-08-03T19:27:31.5183550+00:00       HomeAutomation.ZWave    33      ZWave Node      Thermostat.SetPoint     15.0
[19:27:31.563061] SPI > 01 0C 00 04 00 21 06 43 03 01 22 00 96 25
[19:27:31.571255] SPO < 06
2014-08-03T19:27:31.5774430+00:00       HomeAutomation.ZWave    33      ZWave Node      Thermostat.SetPoint     15.0
2014-08-03T19:27:35.3225900+00:00       MIG.Gateways.WebServiceGateway  192.168.0.12    api/HomeAutomation.HomeGenie/Logging/RealTime.EventStream/      HTTP   GET

and here is what happens when i set the setpoint in the homegenie widget to 80 degrees F

2014-08-03T19:50:53.5136390+00:00       MIG.Gateways.WebServiceGateway  192.168.0.12    api/HomeAutomation.ZWave/33/Therm.Temp/80/1407095440976 HTTP    GET
[19:50:53.530055] SPO < 01 0C 00 13 21 05 43 01 02 09 50 05 12 CA
[19:50:53.542989] SPI > 06
[19:50:53.551419] SPI > 01 04 01 13 01 E8
[19:50:53.557577] SPO < 06
[19:50:53.765755] SPI > 01 05 00 13 12 01 FA
[19:50:53.773813] SPO < 06
[19:50:53.780138] SPO < 01 0C 00 13 21 05 43 01 02 09 50 05 12 CA
[19:50:53.824894] SPI > 06 01 04 01 13 01 E8
[19:50:53.832878] SPO < 06
[19:50:53.934121] SPI > 01 05 00 13 12 01 FA
[19:50:53.942431] SPO < 06
[19:50:53.949076] SPO < 01 0C 00 13 21 05 43 01 02 09 50 05 12 CA
[19:50:53.993560] SPI > 06 01 04 01 13 01 E8
[19:50:54.001631] SPO < 06
[19:50:54.102926] SPI > 01 05 00 13 12 01 FA
[19:50:54.110951] SPO < 06
[19:50:54.117887] SPO < 01 0C 00 13 21 05 43 01 02 09 50 05 12 CA
[19:50:54.162126] SPI > 06 01 04 01 13 01 E8
[19:50:54.170103] SPO < 06
[19:50:54.321470] SPI > 01 05 00 13 12 01 FA
[19:50:54.329415] SPO < 06
2014-08-03T19:50:54.3397520+00:00       HomeAutomation.ZWave    33      ZWave Node      Status.Level    0.8

Let me know if theres anything else you want me to try..

RichieC

August 05, 2014, 04:49:11 PM
Reply #35

lozza

  • *
  • Information
  • Newbie
  • Posts: 1
That works great!  Thanks Gene and Mike.

Hi All
I too have the CT-100 thermostat at home and am trying to get it to work with HomeGenie. I am having the same issue as Bradvoy - I can add it as a node, but it does not send info back to HomeGenie on it's status. I have tried to search for a tutorial on how to add the script that Gene wrote (which seems to have fixed Bradvoy's issue) but I can't figure out how to code in that part. I am running the latest version of HomeGenie on a Raspberry PI. I would really appreciate guidance, even if it is a link to an existing tutorial.

Also - I have downloaded the HomeGenie app for Android but I can't seem to be able to click on the thermostat to update it within the app - is this a feature that is not ready yet?

Thanks in advance!
Lozza

August 13, 2014, 01:13:08 PM
Reply #36

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
Mike,

Have you had a chance to look at this?

My Log file is in my previous post.

Would love to get this working.. I have done some C programming (but not much with C# so far) so if there's anything i can do to help debug this code,  let me know...

Richie


Sorry-  I've been gone from the forum for a bit.  Busy week!

Richie...can you post your log file (from the homegenie directory...not the event history)?  So the good thing is that the device is reporting the temperature correctly and sending events! 

Have you tried sending a higher temperature to see if it works (even try sending plausible F temps)

The "status.level" is a byproduct of extending the sensor class...it's actually sending a thermostat command.  I'll know more if you can send the logfile (with the raw io bytes)


I'm going to think about the issue you had a bit and see if I can figure it out.

August 16, 2014, 11:40:32 PM
Reply #37

miket

  • **
  • Information
  • Jr. Member
  • Posts: 40
Perfect-  thanks for posting the log, that is exactly what I need to debug.  Checking it out now

August 20, 2014, 10:29:51 AM
Reply #38

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
Did you manage to find anything from this log?

Perfect-  thanks for posting the log, that is exactly what I need to debug.  Checking it out now

September 12, 2014, 12:50:38 PM
Reply #39

bwoods1

  • *
  • Information
  • Newbie
  • Posts: 8
I am having the same issue as Bradvoy and Lozza, would anyone mind showing/explaining this to us. We would greatly appreciate it. Thank you.

September 18, 2014, 11:10:03 AM
Reply #40

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
Mike,

Just wondering if you got anywhere with this - would love to get this working...

Rich

Perfect-  thanks for posting the log, that is exactly what I need to debug.  Checking it out now

September 18, 2014, 05:51:24 PM
Reply #41

Damien

  • *
  • Information
  • Newbie
  • Posts: 1
I am in the same boat here...have a CT-100 thermostat. Used to work well with "InControl" on a Windows7 PC. I recently decided to move to a pi to minimize power usage from this PC being on 24/7 (MySQL, XBMC, rtorrent and zwave server), got it all working well, and I am actually pretty amazed with what the little pi can do!

I have a tricklestar zwave stick, a few zwave switches and dimmers (all working perfectly), and that one CT-100 thermostat.

The screenshot a couple posts above is what I am getting...
Looking forward to a solution!

September 24, 2014, 04:05:53 AM
Reply #42

jarrettv

  • *
  • Information
  • Newbie
  • Posts: 13
I'm also seeing this on my new CT-100 thermostat. I hope to debug once I get moved in and unpack my dev machine.

September 29, 2014, 07:32:01 PM
Reply #43

bwoods1

  • *
  • Information
  • Newbie
  • Posts: 8
We look forward to your findings!

October 07, 2014, 12:02:51 PM
Reply #44

kebob

  • *
  • Information
  • Newbie
  • Posts: 2
I'm new to Z-Wave (and HA in general) but received a Z-Stick at the weekend and have been playing about ever since.

I have the same Room Stat and Boiler switch as RichieC - HRT4 & ASR. Managed to get things all paired up pretty easily. But unfortunately I didn't get any further than RichieC with regards to changing the Thermostat Setpoint from Homgenie...

I've tried sending various commands via urls/api but nothing that updates the temp on the Stat.

Being new to all this I'm not really sure where to look next - I'm guessing that "Therm.Temp" etc etc that gets sent isnt actually what gets sent out to the device, it's just a command class/code set somewhere in the Homegenie files? And that what actually gets sent is a byte code of some sort?

Or am I way off?  ;D

I'm not really sure I can get any further without help!

E: I have mucked about with the layouts etc slightly. eg, removed the 'cool' button and I amended the widget temp circle slider to send more suitable values for my system (5'C - 30'C) but that doesnt make any difference to actual functionality (or at least it's not broken anything because I cant get it working in the first place!).

Edit 2: I'm probably way off the mark here, but on the slim chance it means something - the ZwavwLib.dll & MIG.dll only has setpoint "GET" entries, nothing for SET? Can a GET request through Zwave also make a change?

Edit 3: nm, I'm returning the Z-Stick and giving the VeraLite a go instead!
« Last Edit: October 09, 2014, 11:12:51 AM by kebob »