Hi,
I’ve added my doorbell to HASS through the rfxtrx component, configuration as follows:
homeassistant:
customize:
switch.nexa_lml710:
friendly_name: Front Doorbell
switch:
- platform: rfxtrx
devices:
0b11000500b9e74a01040f50:
name: 'Nexa LML-710'
fire_event: true
This give me the following swtich in the gui.
I would expect that if switch it on, it would ring the bell, but it does not. The log gives me this:
2017-11-20 18:23:35 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_call_id=139854608623880-8, domain=homeassistant, service_data=entity_id=switch.nexa_lml710, service=turn_on> 2017-11-20 18:23:35 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_call_id=139854608623880-9, domain=switch, service_data=entity_id=['switch.nexa_lml710'], service=turn_on> 2017-11-20 18:23:35 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.nexa_lml710, old_state=<state switch.nexa_lml710=off; friendly_name=Front Doorbell, assumed_state=True @ 2017-11-20T18:22:18.309002+01:00>, new_state=<state switch.nexa_lml710=on; friendly_name=Front Doorbell, assumed_state=True @ 2017-11-20T18:23:35.998671+01:00>> 2017-11-20 18:23:36 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=139854608623880-9>
If i physically press the button, I get this in the log:
2017-11-20 18:39:27 INFO (Thread-22) [homeassistant.components.rfxtrx] Rfxtrx fired event: (event_type: button_pressed, entity_id: switch.nexa_lml710, state: group on) 2017-11-20 18:39:27 INFO (MainThread) [homeassistant.core] Bus:Handling <Event button_pressed[L]: entity_id=switch.nexa_lml710, state=group on>
So for my question:
Is there any way to get the switch HASS behave like the physical switch?