Hi Daniel - Finally got to start playing with the flux_light component. I’m running 26.1.
Running from command line (hass) I found that it takes quite some time to refresh the status.
Below are my two tests and results.
(Note: I have access to the light via a command line switch component as well as via the flux light component. The command line switch is using the original python script).
Test 1: Turn on light - Refresh time ~ 3.5 minutes
Turn on Lamppost via Flux component (light.flux_lamppost)
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service=turn_on, service_data=entity_id=light.flux_lamppost, domain=homeassistant, service_call_id=1979305328-2> INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service=turn_on, service_data=entity_id=['light.flux_lamppost'], domain=light, service_call_id=1979305328-3> INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=1979305328-3> INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=1979305328-2>
Status Updated via Command Line component (switch.lamppost) - Immediate
INFO:homeassistant.components.switch.command_line:Running state command: /usr/local/bin/flux_led.py 192.168.0.129 -i | awk '/ON/{ print "on" }' INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state switch.lamppost=on; icon=mdi:lightbulb, friendly_name=Lamp Post @ 2016-08-14T12:26:31.101703-04:00>, entity_id=switch.lamppost, old_state=<state switch.lamppost=off; icon=mdi:lightbulb, friendly_name=Lamp Post @ 2016-08-14T12:24:08.387352-04:00>>
Status Updated via Flux component (light.flux_lamppost) - After ~3.5 minutes
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state light.flux_lamppost=on; friendly_name=flux_lamppost, brightness=255, rgb_color=(255, 255, 255) @ 2016-08-14T12:27:30.844486-04:00>, entity_id=light.flux_lamppost, old_state=<state light.flux_lamppost=off; friendly_name=flux_lamppost @ 2016-08-14T12:24:19.443840-04:00>>
Test 2: Turn off light - Refresh time ~ 7 minutes
Turn off Lamppost via Flux component (light.flux_lamppost)
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service=turn_off, service_data=entity_id=light.flux_lamppost, domain=homeassistant, service_call_id=1979305328-4> INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service=turn_off, service_data=entity_id=['light.flux_lamppost'], domain=light, service_call_id=1979305328-5> INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=1979305328-5> INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=1979305328-4>
Status Updated via Command Line component (switch.lamppost) - Immediate
INFO:homeassistant.components.switch.command_line:Running state command: /usr/local/bin/flux_led.py 192.168.0.129 -i | awk '/ON/{ print "on" }' INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state switch.lamppost=off; icon=mdi:lightbulb, friendly_name=Lamp Post @ 2016-08-14T12:33:31.454867-04:00>, entity_id=switch.lamppost, old_state=<state switch.lamppost=on; icon=mdi:lightbulb, friendly_name=Lamp Post @ 2016-08-14T12:26:31.101703-04:00>>
Status Updated via Flux component (light.flux_lamppost) - After ~7 minutes
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state light.flux_lamppost=off; friendly_name=flux_lamppost @ 2016-08-14T12:39:00.751824-04:00>, entity_id=light.flux_lamppost, old_state=<state light.flux_lamppost=on; friendly_name=flux_lamppost, brightness=255, rgb_color=(255, 255, 255) @ 2016-08-14T12:27:30.844486-04:00>>