Difference between revisions of "HomeAssistant - PowerCable MQTTflex configuration update"

From wiki.netio-products.com
Jump to navigation Jump to search
(Created page with "Example configuration of PowerCable with Moqsuitto MQTT broker integration PowerCable MQTT-flex configuration: <nowiki> { "broker":{ "url":"192.168.1.150",...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Example configuration of PowerCable with Moqsuitto MQTT broker integration
+
When integrating with recent versions of Home Assistant, it is required to have <b>clientId</b> parameter set in NETIO device MQTT-flex configuration. The parameter is optional for the device, however it is needed for successful integration with Home Assistant. Without the parameter supplied, it throws the following authorization error:
 +
* 1613745264: New connection from 192.168.1.211 on port 1883.
 +
* [ERROR] Auth error with f476a2e46eb
  
  
PowerCable MQTT-flex configuration:
+
Example configuration of MQTT-flex for PowerCable device working with Moqsuitto MQTT broker: (note the <b>clientID</b> variable in "broker" section)
 
 
 
  <nowiki>
 
  <nowiki>
 
{
 
{

Latest revision as of 13:40, 6 September 2021

When integrating with recent versions of Home Assistant, it is required to have clientId parameter set in NETIO device MQTT-flex configuration. The parameter is optional for the device, however it is needed for successful integration with Home Assistant. Without the parameter supplied, it throws the 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: (note the clientID variable in "broker" section)

{
    "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"
                }
            ]
        }
    ]
}