DH for Heatit Z-TRM2

Hi
I can't find any DH for this thermostat for hubitat, but I did find one for Smartthings.
Is anyone capable of editing it for HE?

https://raw.githubusercontent.com/magnusstam/SmartThings/master/heatit-z-trm2.groovy

Hi, did you find a solution for your problem? Looking for some thermostats and those ones of Heat-It are attractive

1 Like

Not sure if anyone converted this or not. I've taken a (very very fast) stab at converting it. If someone with a Z-TRM2 could let me know if it works or not, I'll can make more changes if it works (or doesn't)

Hi!
Yeah, they look really great!
Did anyone manage to try out the device handler above, that have one?
Just ordered my HE(EU) and live in Norway. :slight_smile:
Now the huge task is to investigate what to order to get me started, and thermostats for floor heating cables seems to be a bit tricky.
Also room thermostats with a display seems pretty high priced, as far as I have found. So, I’m thankfull for any good advice what to try out. Looked at the Xioami once, but no display, which is a cool feature I like.

But, we all have to start somewhere, and this is where I am atm.

Hope anyone can test this one out, I see this thermostat from Heatit is the one many push in the Norwegian market for many other systems.

X-ing fingers, before I buy one in January. Asia Trip all December first, so have to wait with the online orders til I’m back... Gives me more time to investigate though. :slight_smile:

Kind regards,
RogerThat

1 Like

I want to try this, but I have just started to set up my environment.

After dumping the snippet from github into the "Drivers Code" section of hubitat console I tried running a "Z-wave inclusion", which did not work.

I then realised I need to manually add the device driver as per instructions here How to Install Custom Drivers - Hubitat Documentation

Running any populated command in the set of buttons created I get this:
dev:332020-01-16 10:24:25.145 pm errorjava.lang.NullPointerException: Cannot get property 'zw' on null object on line 764 (configure)

Looking at the code, I believe perhaps the device network Id is bad (after all I never searched for and paired a device) Is there another way to get that info?
What is the simplest way to debug this?

thanks!
//

1 Like

I'll take a look into it :slight_smile: You appear to be the first tester! I don't actually have one of these devices to try the code out on...

All right, I think my issue is that the Z-wave devices are not pairing (there should be no need for a driver to do that I think)
I had not plugged in the included Z-wave radio dongle for EU frequencies, but now that I did, I still cannot pair the Hubitat and the Z-trm2fx

Can I verify that the hub is using the dongle on the appropriate frequency somehow?

It does look like the devices aren't completing their network security exchange, if that's the error you're getting. If you try to pair with the device driver already installed, does it automatically try to use that driver when you pair? Any errors in the log while pairing? I am wondering if the fingerprint might not be complete, or if I forgot to convert it ...

You'd have to ask someone on staff about the dongle---I'm afraid I don't have an answer for that.

Edit: Replace the 3 fingerprint lines with this, and let me know if it pairs with this driver:

fingerprint mfr: "019B",  deviceId: "0x0806", prod: "0003", model: "0202", inClusters: "0x5E, 0x43, 0x31, 0x86, 0x40, 0x59, 0x85, 0x73, 0x72, 0x5A, 0x70"

All right, so nothing in the logs on pairing, but I managed finally do it with the dongle after power cycling (leaving the hub off for ~10min)

After assigning the driver code to that device I get some nice readings in the output:
dev:652020-01-17 12:27:49.450 am debugTemperature is: 22.4 °C

dev:652020-01-17 12:27:49.352 am debugTemperature is: 22.4 °C

dev:652020-01-17 12:27:49.311 am debugTemperature is: 22.4 °C

dev:652020-01-17 12:27:49.214 am debugTemperature is: 22.4 °C

dev:652020-01-17 12:27:49.163 am debugTemperature is: 22.4 °C

dev:652020-01-17 12:27:48.985 am debugTemperature is: 0.0 °C

dev:652020-01-17 12:27:48.906 am debugTemperature is: 0.0 °C

dev:652020-01-17 12:27:48.623 am debugTemperature is: 0.0 °C

dev:652020-01-17 12:27:48.374 am debugTemperature is: 0.0 °C

dev:652020-01-17 12:27:48.286 am errorjava.lang.NullPointerException: Cannot get property 'zw' on null object on line 764 (auto)

dev:652020-01-17 12:27:48.170 am errorjava.lang.NullPointerException: Cannot get property 'zw' on null object on line 764 (auto)

I need to sleep some, but I will follow up in this thread with my further investigation.
(still getting some error logging, so there is probably a little room for finalising the code there :slight_smile: )
Thanks for helping out!

1 Like

It's working for me (havent tried all features tho..)
i included my thermostat first, then added the driver.

However; Is there a way to see both the floor sensor and the ambient temp?
also, it reports a "power" and a "energy" value, what are the units on those values? and which one tells how much the heating is consuming?

Probably. Not sure on a timeline for it, though.

Got a URL to the user's manual?

I really got side tracked, but some time later this sprint I shall program my thermostat, hehe.

Here is the manual with the z-wave parameter keys: updated link

there is a FW updated one too, I haven't dared push a new FW yet, though https://www.heatit.com/heating-control/floor-heating-thermostats/heatit-z-trm2fx/

1 Like

Uh oh! :sweat_smile:

sorry about that, maybe the link expired.
BROKEN: here is the pdf on my drive

Thanks for having a look, I will be happy to look into this more when I have some time to spare :wink:

Edit: this is a mess, trying again to post the links
My (3.4) firmware manual
3.6 firmware manual

2 Likes

I am unable to find the code on github

Could You be so kind as to share code as it iis not on github anymore. I am trying to Get my heatit thermostat included

It’s still available under my GitHub :slight_smile: There’s a bug in Discourse with URL parsing

Thank you so much. I will give it a try later today. :grinning:

What settings do you have for z-wave? I am not finding it when I try either exclusion or inclusion. I have tried both values without any luck

Do you mean this?


I had to power cycle my hubitat to eventually get the pairing process working
Please remember if you are in the EU, you need the EU-frequency z-wave dongle (included) also connected to hubitat, as the frequency differs from the build-in (US) radio
Hope that helps