smar000 / evoGateway

Python script for listening in and responding to evohome heating control radio messages
47 stars 17 forks source link

Sending doesn't work (wrong config?) #15

Closed peterpdj closed 4 years ago

peterpdj commented 4 years ago

Hi,

Sorry to bother you with this issue. Setup is similar to yours, C1101 and arduino nano. My evohome setup is:

Found out 4x TRV units have Zone number 1, 2, 3 and 4 and put this in devices.json.

My devices.json looks like this: { "01:172643": {"name" : "Touchpanel", "zoneId" : 0, "zoneMaster" : false}, "04:088919": {"name" : "Woonkamer", "zoneId" : 1, "zoneMaster" : true}, "04:088913": {"name" : "Hobbykamer", "zoneId" : 2, "zoneMaster" : true}, "04:088921": {"name" : "Kamer Vita", "zoneId" : 3, "zoneMaster" : true}, "04:088915": {"name" : "Kamer Lyra", "zoneId" : 4, "zoneMaster" : true}, "10:133098": {"name" : "Ketelmodule", "zoneId" : 252, "zoneMaster" : true} }

My evogateway.cfg has the following lines: THIS_GATEWAY_ID = 30:071715 THIS_GATEWAY_NAME = Raspberry Pi

Via MQTT i'm sending the following message: topic: evohome/gateway/command payload: {"command": "ping"}

The command line shows the following lines, unfortunately no responses. 2020-04-04 18:02:41 | | COMMAND_OUT | PING : Command SENT 2020-04-04 18:03:01 | | COMMAND_OUT | PING : Command NOT acknowledged. Resending attempt 1 of 1... 2020-04-04 18:03:01 | | COMMAND_OUT | PING : Command SENT 2020-04-04 18:03:01 | | COMMAND | ERROR: Previously sent command 'ping' failed to send. No ack received from controller

Do you have any clue what this problem could be? By the way I also tried sending other commands like override_setpoint, etc.

Also checked another closed issue who had found a solution in device id, but could find exactly what did the trick.

Thanks for your help.

Kind regards, Peter

peterpdj commented 4 years ago

Some extra code that I found and seems strange to me: 2020-04-04 18:15:05 |1| SYNC | I | CONTROLLER -> BROADCAST MESSAGE | Next sync at 18:19:00 (in 235 secs) 2020-04-04 18:15:05 |1| SETPOINT_CTL | I | CONTROLLER -> BROADCAST MESSAGE | 16.00°C @ Woonkamer [Zone 1 ] 2020-04-04 18:15:05 |1| SETPOINT_CTL | I | CONTROLLER -> BROADCAST MESSAGE | 5.00°C @ Hobbykamer [Zone 2 ] 2020-04-04 18:15:05 |1| SETPOINT_CTL | I | CONTROLLER -> BROADCAST MESSAGE | 5.00°C @ Kamer Vita [Zone 3 ] 2020-04-04 18:15:05 |1| SETPOINT_CTL | I | CONTROLLER -> BROADCAST MESSAGE | 5.00°C @ Kamer Lyra [Zone 4 ] 2020-04-04 18:15:05 |1| SETPOINT_CTL | I | CONTROLLER -> BROADCAST MESSAGE | 5.00°C [Zone 5 ] 2020-04-04 18:15:05 |1| SETPOINT_CTL | I | CONTROLLER -> BROADCAST MESSAGE | 5.00°C [Zone 6 ]

And one minute later the following values present themselves (which are correct in the Evotouch Touch display): 2020-04-04 18:16:36 |1| SYNC | I | CONTROLLER -> BROADCAST MESSAGE | Next sync at 18:19:13 (in 157 secs) 2020-04-04 18:16:36 |1| SETPOINT_CTL | I | CONTROLLER -> BROADCAST MESSAGE | 16.00°C @ Woonkamer [Zone 1 ] 2020-04-04 18:16:36 |1| SETPOINT_CTL | I | CONTROLLER -> BROADCAST MESSAGE | 16.00°C @ Hobbykamer [Zone 2 ] 2020-04-04 18:16:36 |1| SETPOINT_CTL | I | CONTROLLER -> BROADCAST MESSAGE | 16.00°C @ Kamer Vita [Zone 3 ] 2020-04-04 18:16:36 |1| SETPOINT_CTL | I | CONTROLLER -> BROADCAST MESSAGE | 16.00°C @ Kamer Lyra [Zone 4 ] 2020-04-04 18:16:36 |1| ZONE_TEMPERATURE | I | CONTROLLER -> BROADCAST MESSAGE | 19.68°C [Zone 0 ]

smar000 commented 4 years ago

Do you have any clue what this problem could be? By the way I also tried sending other commands like override_setpoint, etc.

It is difficult to guess where the issue may be on your system. Which firmware are you using on your arduino? I could only get it to work with the fifo branch of ghoti57's evofw2 (but you will have to download an older release as the newer firmware has a slightly modified message format to cater for signal strength indicators).

peterpdj commented 4 years ago

Thanks for the reply, will check if I used fifo and give back an update.

smar000 commented 4 years ago

I have just uploaded an update to the main script which takes into account the additional RSSI data in the received messages. Hopefully this should now work with the newer firmwares on ghoti57's repo.

peterpdj commented 4 years ago

Thanks I will try that. Already got it working with evofw2 with a specific commit in the FIFO branch. And thanks for the works, really love this program.