Hi,
Hope someone can please help? after a few days i managed to get this working http://blog.christophermullins.com/2017/02/11/milight-wifi-gateway-emulator-on-an-esp8266/
I can control my milights from Hass.io without the official flakey milght hub
When i got to this https://github.com/sidoh/esp8266_milight_hub/wiki/Using-Milight-Remote-with-HomeAssistant
I am stuck! i cannot get the remote to update Hass.io can anyone please tell me where i am going wrong?
My automations.yaml
โโโ - alias: MiLight Forwarder
initial_state: True
trigger:
platform: mqtt
#0x21B is the esp8266 controller
#0x539A is the milight remote
topic: milight/updates/0x539A/rgbw/+
action:
- service: mqtt.publish
data_template:
topic: โmilight/commands/0x21B/rgbw/{{ trigger.topic.split(โ/โ)[4] }}โ
payload_template: โ{{ trigger.payload }}โโโโ
my configuration.yaml
โโ'light:
- platform: mqtt_json
name: โMilight 4โ
state_topic: milight/state/0x21B/rgbw/4
command_topic: milight/commands/0x21B/rgbw/4
update_topic: milight/update/0x21B/rgbw/4
brightness: true
flash: true
rgb: true
white_value: true
effect: true
effect_list: [colorfade_slow, colorfade_fast, flash]
optimistic: false
โโโ