Search found 3 matches

by ddragas
Friday 15 December 2017 19:58
Forum: PHP and all others
Topic: JSON + MQTT
Replies: 3
Views: 2961

Re: JSON + MQTT

I've managed to trigger switch with command

Code: Select all

mosquitto_pub -t "domoticz/in" -m '{"command": "switchlight", "idx": 66, "switchcmd": "Set Level", "level":"40"}'
if some else need it

Cheers and thnx for help
by ddragas
Friday 15 December 2017 18:44
Forum: PHP and all others
Topic: JSON + MQTT
Replies: 3
Views: 2961

Re: JSON + MQTT

Hi
thnx for your reply … but still without success … I really need to sort out how to properly trigger switch …
by ddragas
Friday 15 December 2017 8:04
Forum: PHP and all others
Topic: JSON + MQTT
Replies: 3
Views: 2961

JSON + MQTT

Hi all I'm having problem with publishing MQTT message to Domoticz and running script that is behind that switch. Switch type is Selector Switch (multiple values) that behind every value has a script that is executed. This switch normally works trough Domoticz interface and script is being triggered ...