In "MQTT out node", what should I set as the topic?
Currently it is: zigbee2mqtt/bar_switch
And what do I set the payload to, in order to toggle it for test purposes?
I've tried many combinations of "state_l1:TOGGLE" , "l1:TOGGLE" and adding "/l1" to the topic.
A Linux server is running docker with Node-red , MQTT, Zigbee2MQTT , locally.
the broker name is "zigbee2mqtt" device name "bar_switch"
device: Namron 4512768 control via MQTT | Zigbee2MQTT
Not sure what you mean by " * Have you tried a simple back-to-back test with a local broker?"
Zigbee2MQTT controls it just fine.
Additional information: NodeRed is processing many incoming zigbee devices, this is just the only one that I am trying to send data to. So the basic setup is working, I just need to know what the topic, and the payload is to be set to, in order to turn on a switch. (or toggle it)
To control this switch publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"state_l2": "ON"} , {"state_l2": "OFF"} or {"state_l2": "TOGGLE"} .
ok, this is kind of embarrassing, but I did not look there for help on what I thought was a NodeRed -specific question, apparently the format is quite universal.
MQTT Explorer is used by a few here to see what messages are being sent to and from the Broker. Takes out the guess work, as you can test by publishing your own commands directly, this would eliminate things like Node-RED causing problems (hastily adding - which it doesn't).