Closed kingnlfung closed 2 years ago
Some further testing: Installed MQTT explorer.
Changed forwarder automation to:
- alias: MiLight Forwarder (0)
initial_state: True
trigger:
platform: mqtt
topic: milight/updates/0x1A8A/rgb_cct/2
# condition:
# - condition: template
# value_template: >
# {{ trigger.topic.split('/')[4] == '0' }}
action:
- service: mqtt.publish
data_template:
topic: "milight/0x0001/rgb_cct/1"
payload_template: >
{{ trigger.payload }}
- service: mqtt.publish
data_template:
topic: "milight/0x0001/rgb_cct/2"
payload_template: >
{{ trigger.payload }}
- service: mqtt.publish
data_template:
topic: "milight/0x0001/rgb_cct/3"
payload_template: >
{{ trigger.payload }}
- service: mqtt.publish
data_template:
topic: "milight/0x0001/rgb_cct/4"
payload_template: >
{{ trigger.payload }}
Now if I press on/off on group 2 of my physical remote, I see that happening in the MQTT explorer and i see the forward automation triggering. All states of 0x1/rgb_cct changes to off/on.
However, Nothing gets updated on Home Assistant. States changes are not registered/pulled back to home assistant
facepalm
For anyone that comes across this in the future.
I hardcoded all my devices in HASS with 0x0001, 0x0002 and onwards. In mqtt the 0x0001 gets trimmed to 0x1. For HASS 0x0001 hard coded in config != 0x1, therefore no feedback.
I changed config to 0x1, bam all changes by ESPMH and physical remote are changed back.
Hi Guys,
I'm on this amazing journey to automate my lights using milight. Over the course of 1 week I've managed to build this addon and setup the Milight Hub and manually added the lights in a lights.yaml config.
I currently have been trying to sync physical remote with hass state for over a day now without success.
I have a ceiling light with 4 light bulbs. assigned to 0x0001 DeviceID group 1 - 4. These lights are working fine with HASS.
Below automation allows me to use Group 2 of my remote to turn on the 4 lights in 0x0001 DeviceID. However, I cannot get them to sync up.
I must have read the tutorial 10+ times scanning line by line but cannot get it to work.
Please share your advice?
What is the model number of the device you're trying to control?
FUT B4 Wall panel (RGB+CCT)
What firmware version(s) have you tried?
1.10.8 (latest)
Which ESP8266 board are you using? (nodemcu, d1_mini, etc.)
Nodemcu
Which radio type are you using? (RGBW, RGB+CCT, etc.)
RGB+CCT
Have you tried controlling the device with a physical remote?
Yes
### Output of http://milight-hub.local/about and http://milight-hub.local/settings/about
/settings