scaarup / hass-danfoss

Decode Z-wave traffic from your Danfoss Living connect thermostats and send it to Home Assistant
4 stars 0 forks source link

Source of zwave data? #1

Open radical-squared opened 3 years ago

radical-squared commented 3 years ago

Looks very interesting. Thanks for sharing. How do you get zwave input from Danfoss?

scaarup commented 3 years ago

That can be accomplished with a passive device listening on the z-wave network. Could be https://www.suphammer.net/suphacap or an rtl-sdr dongle: https://www.rtl-sdr.com/buy-rtl-sdr-dvb-t-dongles/

radical-squared commented 3 years ago

Thanks for the hint. Quick question before ordering one - does it read Danfoss proprietary z-wave protocol?

scaarup commented 3 years ago

You will see unencrypted traffic in the form of hexadecimals. This is where my decoding script will come in handy.

radical-squared commented 3 years ago

This is great! Just ordered the rtl-sdr dongle :)

I have two zwave networks at home - Danfoss' proprietary zwave with about 20 of their smart radiator valves and thermostats and a standard zwave with another 20+ devices (sensors and switches). In your script's source code I haven't noticed a network key. Is it able to differentiate danfoss and non-danfoss devices?

scaarup commented 3 years ago

I am in the same situation as you :). You will quickly figure out which homeid is your danfoss. I have another experimental script, which I can expose here. Maybe you can use that for inspiration.

scaarup commented 3 years ago

Take a look at the docker branch: https://github.com/scaarup/hass-danfoss/tree/docker/docker. Was created to run in a container with an rtl-sdr dongle, and use the decode.sh script to parse and push to Home Assistant.

radical-squared commented 3 years ago

OMG, that makes it much easier :) Thanks for sharing! Any chance to use to dongle to inject packets to the network to set the radiator valves?

scaarup commented 3 years ago

Yes I would think so. But then you need to invest more money in the project and perhaps buy a HackRF: https://greatscottgadgets.com/hackrf/one/

radical-squared commented 3 years ago

Not that expensive considering how much money I have spent on danfoss already :) Have you got one?

scaarup commented 3 years ago

Yeah, that's right :). No I havn't got one. It is not really my goal to take over the heating control.

radical-squared commented 3 years ago

I see. I got the rtl_sdr dongle yesterday and got it to work, but the data it provides seems incomplete and confusing. I ordered suphacap (with custom danfoss firmware) earlier today and hope it works better.

Although bash is not my mother tongue, your scripts are mostly self explanatory. Got to admit the regexp and calcs are quite overwhelming though :) One thing that is not clear to me is coloring of ids (e.g. colorizeIds in the danfoss.sh script). What is it intended for?

MarcoSuurlant commented 2 years ago

I see. I got the rtl_sdr dongle yesterday and got it to work, but the data it provides seems incomplete and confusing. I ordered suphacap (with custom danfoss firmware) earlier today and hope it works better.

Although bash is not my mother tongue, your scripts are mostly self explanatory. Got to admit the regexp and calcs are quite overwhelming though :) One thing that is not clear to me is coloring of ids (e.g. colorizeIds in the danfoss.sh script). What is it intended for?

Hi how far are you now I also want to look in this.

scaarup commented 2 years ago

I am in the progress of switching to Danfoss Ally thermostats...

hoegge commented 2 years ago

I ordered suphacap (with custom danfoss firmware) earlier today and hope it works better.

Hi What does "with custom Danfoss firmware" mean? I have a hard time figuring out if anybody have really decoded the communication with the Danfoss Link / Living Connect thermostats or not.

scaarup commented 2 years ago

A firmware that makes it easy for us to decode the traffic. I managed to decode information like:

So yes, I would say someone has managed to decode the comms.

hoegge commented 2 years ago

That is amazing. Thanks for the answer. What HW device have you used for this?

scaarup commented 2 years ago

That is amazing. Thanks for the answer. What HW device have you used for this?

https://www.suphammer.net/suphacap or an rtl-sdr dongle: https://www.rtl-sdr.com/buy-rtl-sdr-dvb-t-dongles/

hoegge commented 2 years ago

Yes thanks saw that -was just not aware if you had tried both or only one. Just want to improve my chance of success. Are they equally "easy" to use for this purpose?

scaarup commented 2 years ago

I would say the suphacap is best, since I have this problem with using my rtl-sdr: https://github.com/baol/waving-z/issues/8

MarcoSuurlant commented 2 years ago

Is it possible to make manual how to implement in HA?

MarcoSuurlant commented 2 years ago

Yes thanks saw that -was just not aware if you had tried both or only one. Just want to improve my chance of success. Are they equally "easy" to use for this purpose?

Hi, I also received the suphacap today, how far have you got with the code? Could you help me to get it running in home assistant?