Skip to content

Instantly share code, notes, and snippets.

import paho.mqtt.client as mqtt
import json
client = mqtt.Client()
client.username_pw_set("z2muser", "z2pass")
client.connect("192.168.0.201", 1883)
topic = "zigbee2mqtt/tradfi_alpha/set"
from time import sleep