MQTT Publish command types Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
petercal
Posts: 7
Joined: Wednesday 12 September 2018 17:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

MQTT Publish command types

Post 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
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: MQTT Publish command types

Post by emme »

The most dangerous phrase in any language is:
"We always done this way"
petercal
Posts: 7
Joined: Wednesday 12 September 2018 17:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MQTT Publish command types

Post by petercal »

In the wiki, there's only the examples, i think there must be a lot of different types.
petercal
Posts: 7
Joined: Wednesday 12 September 2018 17:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

[Solved] MQTT Publish command types

Post by petercal »

Solved : I think i can find most of it here :

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

br;
Peter
diegoflyer
Posts: 8
Joined: Wednesday 31 January 2018 13:39
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: IT
Contact:

Re: MQTT Publish command types

Post 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
Raspberry Pi 3b+ - Domoticz 2023.1
NodeRED
Solaredge inverter
User avatar
waltervl
Posts: 5152
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT Publish command types

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests