Hi
Autodiscovery into Hass.io is easy:
send a message to this topic: /homeassistant/light/110/config and push the payload like this:
{
“name”: “110 Dimmer”,
“command_topic”: “Home/Mq2/commands/MQTTtoRF2”,
“payload_on”: “{“unit”:0,“groupBit”:0,“period”:261,“address”:888110,“switchType”:1}”,
“payload_off”: “{“unit”:0,“groupBit”:0,“period”:261,“address”:888110,“switchType”:0}”,
}
That automagically creates a switch on the dashboard.
But I wat a dimmer .
I can send dim commands through MQTT like this :
topic: Home/Mq2/commands/MQTTtoRF2
payload: {
“unit”: 0,
“groupBit”: 0,
“period”: 261,
“address”: 888110,
“switchType”: 2,
“dim”: 10
}
So… now I want to push an autodiscovery to Hass.io ( Home Assistant ) so that I get a nice dimmable light.
Tried different things. No luck. Who knows how to get it done?
Thanks,