So I’m not sure if I am jumping the gun on HASS/RFLink/MiLight support as I have read mixed reports of this working and or not being supported, yet.
I thought I’d post as I couldn’t find any real configuration for MiLight and RFLink for HASS. I have tested the RFLink in Domoticz and it does work for the Milight bulbs, however in HASS is another beast entirely. Obviously due to countless hours of configuration in HASS I do not want to switch to Domoticz for lighting.
So I have ripped out the MiLight IDs from the HASS Debug log and added them to my configuration, I have run script check to confirm everything is working and booted up HASS.
The Light entities are detected by HASS and they load up into my configuration on the front end, however when I flip the switch on and off nothing happens and the lights do not illuminate. The same goes for i the light is on, and I switch it off in HASS nothing happens. I can see the action happening in the logs but this is not reflected in the bulbs.
Anyone got any ideas?
@Whiskey @aequitas
configuration.yaml
rflink: port: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_85632313039351911102-if00 # ls -l /dev/serial/by-id/
light: platform: rflink automatic_add: true device_defaults: fire_event: true signal_repetitions: 2 devices: milightv1_c888_01: name: Bedroom Light milightv1_c888_02: name: Kitchen Light
Debug Log
2017-05-21 10:24:21 DEBUG (MainThread) [rflink.protocol] received data: 20;AB;PONG; 2017-05-21 10:24:21 DEBUG (MainThread) [rflink.protocol] got packet: 20;AB;PONG; 2017-05-21 10:24:21 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'ping': 'pong', 'protocol': 'unknown'} 2017-05-21 10:24:36 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=homeassistant, service_data=entity_id=light.bedroom_light, service=turn_on, service_call_id=1977907344-1> 2017-05-21 10:24:36 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=light, service_data=entity_id=['light.bedroom_light'], service=turn_on, service_call_id=1977907344-2> 2017-05-21 10:24:36 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: on to Rflink device: milightv1_c888_01 2017-05-21 10:24:36 DEBUG (MainThread) [rflink.protocol] sending command: {'id': 'c888', 'protocol': 'milightv1', 'command': 'on', 'switch': '01'} 2017-05-21 10:24:36 DEBUG (MainThread) [rflink.protocol] writing data: '10;milightv1;c888;01;on;\r\n' 2017-05-21 10:24:36 DEBUG (MainThread) [rflink.protocol] waiting for acknowledgement 2017-05-21 10:24:37 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=homeassistant, service_data=entity_id=light.kitchen_light, service=turn_on, service_call_id=1977907344-3> 2017-05-21 10:24:37 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=light, service_data=entity_id=['light.kitchen_light'], service=turn_on, service_call_id=1977907344-4> 2017-05-21 10:24:37 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: on to Rflink device: milightv1_c888_02 2017-05-21 10:24:41 WARNING (MainThread) [rflink.protocol] acknowledge timeout 2017-05-21 10:24:41 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state light.bedroom_light=off; friendly_name=Bedroom Light, assumed_state=True @ 2017-05-21T10:23:05.522200+01:00>, new_state=<state light.bedroom_light=on; max_mireds=500, min_mireds=154, friendly_name=Bedroom Light @ 2017-05-21T10:24:41.860231+01:00>, entity_id=light.bedroom_light> 2017-05-21 10:24:41 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1977907344-2> 2017-05-21 10:24:41 DEBUG (MainThread) [rflink.protocol] sending command: {'id': 'c888', 'protocol': 'milightv1', 'command': 'on', 'switch': '02'} 2017-05-21 10:24:41 DEBUG (MainThread) [rflink.protocol] writing data: '10;milightv1;c888;02;on;\r\n' 2017-05-21 10:24:41 DEBUG (MainThread) [rflink.protocol] waiting for acknowledgement 2017-05-21 10:24:41 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: on to Rflink device: milightv1_c888_01 2017-05-21 10:24:41 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state group.rflink_lights=off; order=0, hidden=True, assumed_state=True, friendly_name=Lighting, view=True, entity_id=('light.bedroom_light', 'light.kitchen_light') @ 2017-05-21T10:23:05.530327+01:00>, new_state=<state group.rflink_lights=on; order=0, hidden=True, assumed_state=True, friendly_name=Lighting, view=True, entity_id=('light.bedroom_light', 'light.kitchen_light') @ 2017-05-21T10:24:41.885107+01:00>, entity_id=group.rflink_lights> 2017-05-21 10:24:41 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state group.all_lights=off; order=1, hidden=True, assumed_state=True, friendly_name=all lights, auto=True, entity_id=('light.bedroom_light', 'light.kitchen_light') @ 2017-05-21T10:23:05.535130+01:00>, new_state=<state group.all_lights=on; order=1, hidden=True, assumed_state=True, friendly_name=all lights, auto=True, entity_id=('light.bedroom_light', 'light.kitchen_light') @ 2017-05-21T10:24:41.892469+01:00>, entity_id=group.all_lights> 2017-05-21 10:24:41 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1977907344-1> 2017-05-21 10:24:46 WARNING (MainThread) [rflink.protocol] acknowledge timeout 2017-05-21 10:24:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state light.kitchen_light=off; friendly_name=Kitchen Light, assumed_state=True @ 2017-05-21T10:23:05.525620+01:00>, new_state=<state light.kitchen_light=on; max_mireds=500, min_mireds=154, friendly_name=Kitchen Light @ 2017-05-21T10:24:46.879231+01:00>, entity_id=light.kitchen_light> 2017-05-21 10:24:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1977907344-4> 2017-05-21 10:24:46 DEBUG (MainThread) [rflink.protocol] sending command: {'id': 'c888', 'protocol': 'milightv1', 'command': 'on', 'switch': '01'} 2017-05-21 10:24:46 DEBUG (MainThread) [rflink.protocol] writing data: '10;milightv1;c888;01;on;\r\n' 2017-05-21 10:24:46 DEBUG (MainThread) [rflink.protocol] waiting for acknowledgement 2017-05-21 10:24:46 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: on to Rflink device: milightv1_c888_02 2017-05-21 10:24:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state group.rflink_lights=on; order=0, hidden=True, assumed_state=True, friendly_name=Lighting, view=True, entity_id=('light.bedroom_light', 'light.kitchen_light') @ 2017-05-21T10:24:41.885107+01:00>, new_state=<state group.rflink_lights=on; order=0, view=True, friendly_name=Lighting, hidden=True, entity_id=('light.bedroom_light', 'light.kitchen_light') @ 2017-05-21T10:24:41.885107+01:00>, entity_id=group.rflink_lights> 2017-05-21 10:24:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state group.all_lights=on; order=1, hidden=True, assumed_state=True, friendly_name=all lights, auto=True, entity_id=('light.bedroom_light', 'light.kitchen_light') @ 2017-05-21T10:24:41.892469+01:00>, new_state=<state group.all_lights=on; order=1, friendly_name=all lights, auto=True, hidden=True, entity_id=('light.bedroom_light', 'light.kitchen_light') @ 2017-05-21T10:24:41.892469+01:00>, entity_id=group.all_lights> 2017-05-21 10:24:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1977907344-3>