stopuję oba skrypty, usuwam oba logi, startuję skrypty i mam:
main_exta2ha.py.log
2019-09-30 15:27:00,138 INFO:>>PID<<
2019-09-30 15:27:00,139 INFO:19632
2019-09-30 15:27:00,140 INFO:No customizing file
2019-09-30 15:27:00,377 INFO:Connected to MQTT broker
2019-09-30 15:27:02,705 DEBUG:Applying filters
2019-09-30 15:27:02,706 DEBUG:[37, 38]
2019-09-30 15:27:02,706 DEBUG:json elements before: 11
2019-09-30 15:27:02,707 DEBUG:json elements after: 11
2019-09-30 15:27:02,707 DEBUG:Applying filters
2019-09-30 15:27:02,707 DEBUG:[37, 38]
2019-09-30 15:27:02,708 DEBUG:json elements before: 11
2019-09-30 15:27:02,708 DEBUG:json elements after: 11
2019-09-30 15:27:02,709 DEBUG:Publishing topics:
2019-09-30 15:27:02,709 DEBUG:[{'topic': 'homeassistant/light/2-1/state', 'payload': 'OFF'}]
2019-09-30 15:27:02,715 DEBUG:Publishing topics:
2019-09-30 15:27:02,715 DEBUG:[{'topic': 'homeassistant/light/0-1/state', 'payload': 'OFF'}, {'topic': 'homeassistant/light/0-2/state', 'payload': 'OFF'}]
2019-09-30 15:27:02,721 DEBUG:Publishing topics:
2019-09-30 15:27:02,722 DEBUG:[{'topic': 'homeassistant/light/4-1/state', 'payload': 'OFF'}, {'topic': 'homeassistant/light/4-1/state_value', 'payload': 16}]
2019-09-30 15:27:02,727 DEBUG:Publishing topics:
2019-09-30 15:27:02,728 DEBUG:[{'topic': 'homeassistant/light/11-1/state', 'payload': 'OFF'}, {'topic': 'homeassistant/light/11-2/state', 'payload': 'OFF'}]
2019-09-30 15:27:02,734 DEBUG:Publishing topics:
2019-09-30 15:27:02,734 DEBUG:[{'topic': 'homeassistant/light/12-1/state', 'payload': 'OFF'}, {'topic': 'homeassistant/light/12-2/state', 'payload': 'OFF'}]
2019-09-30 15:27:02,741 DEBUG:Publishing topics:
2019-09-30 15:27:02,741 DEBUG:[{'topic': 'homeassistant/light/8-1/state', 'payload': 'OFF'}, {'topic': 'homeassistant/light/8-2/state', 'payload': 'OFF'}]
2019-09-30 15:27:02,748 DEBUG:MQTT HVAC attributes:
2019-09-30 15:27:02,748 DEBUG:{'battery_status': False, 'power': 1, 'work_mode': True, 'waiting_to_synchronize': False}
2019-09-30 15:27:02,749 DEBUG:Publishing topics:
2019-09-30 15:27:02,749 DEBUG:[{'topic': 'homeassistant/climate/13-1/current_temp', 'payload': '22.5'}, {'topic': 'homeassistant/climate/13-1/mode_state', 'payload': 'auto'}, {'topic': 'homeassistant/clim
ate/13-1/temp_state', 'payload': '18.0'}, {'topic': 'homeassistant/climate/13-1/attributes', 'payload': '{"battery_status": false, "power": 1, "work_mode": true, "waiting_to_synchronize": false}'}]
2019-09-30 15:27:02,757 DEBUG:MQTT HVAC attributes:
2019-09-30 15:27:02,758 DEBUG:{'battery_status': False, 'power': 1, 'work_mode': True, 'waiting_to_synchronize': True}
2019-09-30 15:27:02,758 DEBUG:Publishing topics:
2019-09-30 15:27:02,759 DEBUG:[{'topic': 'homeassistant/climate/14-1/current_temp', 'payload': '22.0'}, {'topic': 'homeassistant/climate/14-1/mode_state', 'payload': 'auto'}, {'topic': 'homeassistant/clim
ate/14-1/temp_state', 'payload': '22.0'}, {'topic': 'homeassistant/climate/14-1/attributes', 'payload': '{"battery_status": false, "power": 1, "work_mode": true, "waiting_to_synchronize": true}'}]
2019-09-30 15:27:02,766 DEBUG:Publishing topics:
2019-09-30 15:27:02,767 DEBUG:[{'topic': 'homeassistant/sensor/9-1/state', 'payload': '23.1'}]
2019-09-30 15:27:02,774 DEBUG:Publishing topics:
2019-09-30 15:27:02,774 DEBUG:[{'topic': 'homeassistant/sensor/6-1/state', 'payload': '22.6'}]
2019-09-30 15:27:02,780 DEBUG:Publishing topics:
2019-09-30 15:27:02,781 DEBUG:[{'topic': 'homeassistant/sensor/1-1/state', 'payload': '23.2'}]
oraz main_ha2exta.py.log
2019-09-30 15:26:35,232 INFO:>>PID<<
2019-09-30 15:26:35,233 INFO:19506
2019-09-30 15:26:35,234 INFO:No customizing file
2019-09-30 15:26:35,470 DEBUG:Subscribing to topics:
2019-09-30 15:26:35,471 DEBUG:['homeassistant/light/0-1/switch', 'homeassistant/light/0-2/switch', 'homeassistant/light/11-1/switch', 'homeassistant/light/11-2/switch', 'homeassistant/light/12-1/switch',
'homeassistant/light/12-2/switch', '', 'homeassistant/climate/13-1/mode_set', 'homeassistant/climate/13-1/temp_set', '', 'homeassistant/climate/14-1/mode_set', 'homeassistant/climate/14-1/temp_set', 'home
assistant/light/2-1/switch', 'homeassistant/light/4-1/switch', 'homeassistant/light/4-1/set_value', 'homeassistant/light/8-1/switch', 'homeassistant/light/8-2/switch']
i teraz jakakolwiek zmiania w HA w climate (zmiana temperatury na okręgu lub wejście w opcje i zmiana trybu pracy nic nie robi, w logu nic nowego się nie pojawia, w Ha po odświeżeniu wraca do pierwotnej postaci.
Natomiast wystarczy że przez HA zapalę i zgaszę światło i mamw logu
2019-09-30 15:30:45,220 DEBUG:Received: homeassistant/light/0-1/switch ON
2019-09-30 15:30:45,221 DEBUG:{"command": 20, "data": {"channel": 1, "state": 1, "id": 0, "value": null}}.
2019-09-30 15:30:45,262 DEBUG:TCP Response: {"command":20,"data":{"id":0,"channel":1,"state":true},"status":"notification"}.
2019-09-30 15:30:45,263 DEBUG:Publishing topics:
2019-09-30 15:30:45,263 DEBUG:[{'topic': 'homeassistant/light/0-1/state', 'payload': 'ON'}]
2019-09-30 15:30:47,194 DEBUG:Received: homeassistant/light/0-1/switch OFF
2019-09-30 15:30:47,195 DEBUG:{"command": 20, "data": {"channel": 1, "state": 0, "id": 0, "value": null}}.
2019-09-30 15:30:47,196 DEBUG:TCP Response: {"command":20,"status":"success","data":null}.
2019-09-30 15:30:47,197 DEBUG:Publishing topics:
2019-09-30 15:30:47,197 DEBUG:[{'topic': 'homeassistant/light/0-1/state', 'payload': 'OFF'}]