HomeAssistant - PowerCable MQTTflex configuration update
Jump to navigation
Jump to search
In recent versions of Home Assistant, it is also required to have clientId variable in NETIO device MQTT-flex configuration. Without the parameter supplied, Home Assistant throws following authorization error:
- 1613745264: New connection from 192.168.1.211 on port 1883.
- [ERROR] Auth error with f476a2e46eb
Example configuration of MQTT-flex for PowerCable device working with Moqsuitto MQTT broker:
{
"broker":{
"url":"192.168.1.150",
"protocol":"mqtt",
"port":1883,
"ssl":false,
"type":"generic",
"username":"netio",
"password":"netio",
"clientId":"Netio"
},
"subscribe":[
{
"topic":"netio/${DEVICE_NAME}/output/1/action",
"qos":0,
"target":"OUTPUTS/1/ACTION",
"action":"${payload}"
}
],
"publish":[
{
"topic":"netio/${DEVICE_NAME}/output/1/state",
"qos":0,
"retain":true,
"payload":"${OUTPUTS/1/STATE}",
"events":[
{
"type":"timer",
"period":"1000"
}
]
}
]
}