Hi,
I’m new to Home Assistant and I’m currently migrating my whole system from NodeRED to Home Assistant.
NodeRED is great, I’ll keep it for a few things, but it is a pain to maintain my flows, add new devices etc.
I want my system to be more simple.
Anyway, that was for the context.
I currently have my heaters controlled by chacon relays. An RFXCOM sends commands to those relays to drive the heater’s mode. I also have some Oregon sensors to receive temperature for several rooms.
Currently everything is regulated (PID regulator) in Nodered.
At first, and to avoid breaking everything, it’s winter time, I tried to use the MQTT autodiscovery in Home Assistant. It worked to declare new devices : nodered -> mqtt -> HA
.
But the sensors states weren’t updated. Just the first value appeared in HA.
So I decided to directly use the RFXTRX integration in HA. And it’s simpler to discover new devices and manage them.
I receive my sensors values and created an automation triggered when any sensor state change.
My problem is, that I don’t understand what command to send with the rfxtrx.send
service for the relays.
I know all my device identifiers from Nodered, I enabled the rfxcom debug, and I have this logs:
5 Feb 10:24:54 - [info] [debug:8ea5a370.5fdfd8] Sending order to heater: {"_msgid":"f2bfe370.9ee9c","payload":1,"topic":"ac/3031001/1"}
2021-02-05 10:24:54.729 [rfxcom] on /dev/rfxtrx0 - Sent : 0B,11,00,1B,03,03,10,01,01,01,0F,00
2021-02-05 10:24:55.398 [rfxcom] on /dev/rfxtrx0 - Received: 04,02,01,1B,00
2021-02-05 10:24:55.399 [rfxcom] on /dev/rfxtrx0 - Response: Command message 1B, ACK - transmit OK
2021-02-05 10:24:57.103 [rfxcom] on /dev/rfxtrx0 - Queued : 0B,11,00,1C,03,03,10,01,01,00,00,00
5 Feb 10:24:57 - [info] [debug:8ea5a370.5fdfd8] Sending order to heater: {"_msgid":"2a9b4b94.6f33e4","payload":0,"topic":"ac/3031001/1"}
2021-02-05 10:24:57.111 [rfxcom] on /dev/rfxtrx0 - Sent : 0B,11,00,1C,03,03,10,01,01,00,00,00
2021-02-05 10:24:57.892 [rfxcom] on /dev/rfxtrx0 - Received: 04,02,01,1C,00
2021-02-05 10:24:57.892 [rfxcom] on /dev/rfxtrx0 - Response: Command message 1C, ACK - transmit OK
I used inject nodes to send orders, but the Sent command always changes, even if I send the same value.
Any help appreciated.
Thanks a lot