HomeAssistant - PowerCable MQTTflex configuration update

From wiki.netio-products.com
Revision as of 10:31, 2 September 2021 by Djestrab (talk | contribs) (Created page with "Example configuration of PowerCable with Moqsuitto MQTT broker integration PowerCable MQTT-flex configuration: <nowiki> { "broker":{ "url":"192.168.1.150",...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Example configuration of PowerCable with Moqsuitto MQTT broker integration


PowerCable MQTT-flex configuration:

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