ESP-MQTT-JSON-Digital-LEDs
ESP-MQTT-JSON-Digital-LEDs copied to clipboard
Mqtt
If I use your script and didn't change any MQTT topics, how will a MQTT message needs look to trigger one effect?
I'm just trying to trigger the lights thru NodeRed.
use the mosquittoclient and listen to the same topic as the one that the nodemcu is listening to. send some commands to ur led strip through homeasssistant. the answer will be in the logs from mosquittoclient.
I am not using homeassistant but openhab with MQTT
Is there an other way to find out how to trigger the effects with MQTT commands ?
Can someone show me what's the message json format should be sent to MQTT broker from mqtt client if using mosquitto_pub for debugging purpose ( my broker working ok, nodemcu has been properly upload this firmware ), e.g. to trigger "rainbow" effect and rest setting, pls kindly give me a message example, thank you !
mosquitto_pub -t 'SmartHome/Office/LED/set' -m '{"effect":"sine hue","state":"ON"}'