feel like I’m getting close. i’ve addapted the code to this:
light:
- platform: mqtt
name: rgb1
schema: json
command_topic: "milight/0xAAAA/rgb_cct/1/"
state_topic: "milight/0xAAAA/rgb_cct/1/state"
qos: 1
now when I use MQTT developer tools to listen to # topic, i receive the following config:
Message 19 received on homeassistant/light/milight_hub_3009912/rgb_cct_0xAAAA_1/config at 9:50 AM:
{
"schema": "json",
"name": "Ledstrip2",
"command_topic": "milight/0xAAAA/rgb_cct/1",
"state_topic": "milight/0xAAAA/rgb_cct/1/state",
"device": {
"manufacturer": "esp8266_milight_hub",
"sw_version": "1.10.5",
"identifiers": [
3009912,
43690,
"rgb_cct",
1
]
},
"availability_topic": "milight/0xAAAA/rgb_cct/1/status",
"payload_available": "connected",
"payload_not_available": "disconnected",
"brightness": true,
"effect": true,
"effect_list": [
"night_mode",
"white_mode",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"rgb": true,
"color_temp": true
}
QoS: 0 - Retain: true
If I turn on the light via the milight hub itself (through it’s ip address), i get:
Message 24 received on milight/0xAAAA/rgb_cct/1/update at 9:59 AM:
{
"state": "ON"
}
QoS: 0 - Retain: false
and the the state info:
Message 25 received on milight/0xAAAA/rgb_cct/1/state at 9:59 AM:
{
"state": "ON",
"brightness": 252,
"color_temp": 266,
"bulb_mode": "white",
"color": {
"r": 255,
"g": 255,
"b": 255
}
}
If I turn on the light via home assistant entity ledstrip" i see:
Message 36 received on milight/0xAAAA/rgb_cct/1/update at 10:01 AM:
{
"state": "ON"
}
which is exactly the same as when I do it via the hub itself… only… the light doesn’t turn on…
the complete setup in milight hub MQTT is this:
what am i missing? i’m losing it, really, something that should be so simple doesn’t seem to work…