Page 1 of 1

MQTT Publish command types

Posted: Friday 28 September 2018 14:20
by petercal
Hi,

Does anyone know where i can find an overview of the command types i.e "switchlight" used in MQTT publish ?

{"command": "switchlight", "idx": 2450, "switchcmd": "On" }
{"command": "setcolbrightnessvalue", "idx": 2450, "color": {"m":3,"t":0,"r":0,"g":0,"b":50,"cw":0,"ww":0}, "brightness": 40}
{"command": "switchscene", "idx": 24, "switchcmd": "On" }
{"command": "switchscene", "idx": 24, "switchcmd": "Toggle" }
{"command": "sendnotification", "subject": "My Subject", "body": "My Body", "priority": 0, "sound": "mysound" }

thanks
Peter

Re: MQTT Publish command types

Posted: Friday 28 September 2018 14:26
by emme

Re: MQTT Publish command types

Posted: Friday 28 September 2018 14:28
by petercal
In the wiki, there's only the examples, i think there must be a lot of different types.

[Solved] MQTT Publish command types

Posted: Friday 28 September 2018 15:05
by petercal
Solved : I think i can find most of it here :

https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's

br;
Peter

Re: MQTT Publish command types

Posted: Friday 03 February 2023 17:42
by diegoflyer
Guys I need help!
I have installed nodered and it looks working.
Now I have to update sensors/switch in domoticz.
One way is with MQTT with MQTT server in the middle and I am not expert on it, where can I find a guide?
Another way is JSON, I think... many forum talk about this page:
https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's
so I think it's possible to update without MQTT but simply with a json command like:
/json.htm?type=command&param=switchlight&idx=99&switchcmd=<On|Off|Toggle|Stop>
am I rigth?
Thanks for the help
Diego

Re: MQTT Publish command types

Posted: Friday 03 February 2023 17:46
by waltervl
Did you check the Domoticz MQTT wiki page? https://www.domoticz.com/wiki/MQTT
There is also a specific Node-Red subforum viewforum.php?f=81