smar000 / evoGateway

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

add from_id to "code" message #57

Closed chris-hunter closed 1 year ago

chris-hunter commented 1 year ago

I wonder if you would consider adding the following lines to evogateway.py on the next update: (line 978, in the mqtt_process_msg function) if "from_id" in json_data: from_id = json_data["from_id"] gw_cmd = GWY.create_cmd(verb, dest_id, command_code, payload, from_id=from_id) else: gw_cmd = GWY.create_cmd(verb, dest_id, command_code, payload) # Command.from_attrs() This allows the impersonation of a different device to send a message from, and is supported in zxdzvb's ramses_rf library. I am using this as my controller sometimes drops reception to one of the sensors, and when this happens I'm using my evoGateway as a repeater. Thank you again for the excellent program.

smar000 commented 1 year ago

Hi

Sure! I'm not sure when the next update will be, but happy to add the above at that time. Alternatively, feel free to issue a pull request.

chris-hunter commented 1 year ago

Hi, I've tried to issue a pull request (I have never done this before so please let me know if it hasn't worked).