HA gets information from pilight about changing status of a switch but HA does not change it. It works the other way around that is, if I change status on HA then I see the change on pilight.
This is HA log having pilight informing HA:
2018-07-21 22:55:33 INFO (MainThread) [homeassistant.core] Bus:Handling <Event pilight_received[L]: id=7733802, protocol=arctech_switch, unit=0, state=on, uuid=0000-b8-27-eb-36aef8> 2018-07-21 22:55:33 INFO (MainThread) [homeassistant.core] Bus:Handling <Event pilight_received[L]: id=7733802, protocol=arctech_screen, unit=0, state=up, uuid=0000-b8-27-eb-36aef8> 2018-07-21 22:55:33 INFO (MainThread) [homeassistant.core] Bus:Handling <Event pilight_received[L]: id=7733802, protocol=arctech_contact, unit=0, state=opened, uuid=0000-b8-27-eb-36aef8> 2018-07-21 22:55:34 INFO (MainThread) [homeassistant.core] Bus:Handling <Event pilight_received[L]: id=7733802, protocol=arctech_switch, unit=0, state=off, uuid=0000-b8-27-eb-36aef8> 2018-07-21 22:55:34 INFO (MainThread) [homeassistant.core] Bus:Handling <Event pilight_received[L]: id=7733802, protocol=arctech_screen, unit=0, state=down, uuid=0000-b8-27-eb-36aef8> 2018-07-21 22:55:34 INFO (MainThread) [homeassistant.core] Bus:Handling <Event pilight_received[L]: id=7733802, protocol=arctech_contact, unit=0, state=closed, uuid=0000-b8-27-eb-36aef8>
This is HA log informing/requesting pilight:
2018-07-21 22:57:22 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1976588656-42> 2018-07-21 22:57:22 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state switch.decoration=off; friendly_name=decoration, assumed_state=True @ 2018-07-21T22:57:22.060374+02:00>, entity_id=switch.decoration, old_state=<state switch.decoration=on; friendly_name=decoration, assumed_state=True @ 2018-07-21T22:51:42.660880+02:00>> 2018-07-21 22:57:22 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1976588656-41> 2018-07-21 22:57:22 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state group.all_switches=off; friendly_name=all switches, entity_id=('switch.decoration',), assumed_state=True, order=0, hidden=True, auto=True @ 2018-07-21T22:57:22.076582+02:00>, entity_id=group.all_switches, old_state=<state group.all_switches=on; friendly_name=all switches, entity_id=('switch.decoration',), assumed_state=True, order=0, hidden=True, auto=True @ 2018-07-21T22:51:42.670376+02:00>> 2018-07-21 22:57:26 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=turn_on, domain=switch, service_data=entity_id=switch.decoration, service_call_id=1976588656-43> 2018-07-21 22:57:26 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=send, domain=pilight, service_data=protocol=nexa_switch, id=7733802, unit=0, on=1, service_call_id=1976588656-44> 2018-07-21 22:57:26 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1976588656-44> 2018-07-21 22:57:26 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state switch.decoration=on; friendly_name=decoration, assumed_state=True @ 2018-07-21T22:57:26.704812+02:00>, entity_id=switch.decoration, old_state=<state switch.decoration=off; friendly_name=decoration, assumed_state=True @ 2018-07-21T22:57:22.060374+02:00>> 2018-07-21 22:57:26 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1976588656-43> 2018-07-21 22:57:26 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state group.all_switches=on; friendly_name=all switches, entity_id=('switch.decoration',), assumed_state=True, order=0, hidden=True, auto=True @ 2018-07-21T22:57:26.728011+02:00>, entity_id=group.all_switches, old_state=<state group.all_switches=off; friendly_name=all switches, entity_id=('switch.decoration',), assumed_state=True, order=0, hidden=True, auto=True @ 2018-07-21T22:57:22.076582+02:00>>
So why I cannot get HA to show the status change on pilight? The botton line of problem is that I cannot see HA changing status when I make use of the remote of the switch (as it is shown in pilight). Some more info:
- I can steer the switch from both platforms, HA and pilight
- The protocol set on pilight (config.jason) and HA (configuration.yaml) is nexa_switch
Any hint appreciated.