Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MQTT set issue
#4
Hi!

it is working.

I have made the switch as a group of relays.

  platform: mqtt
  name: "4sqdir000"
  unique_id: 4sqdir000
  state_topic: "relay32/xxxxxxx/state"
  command_topic: "relay32/xxxxxxxxx/set"
  payload_on:  '{{"relay17":{"on":1}}{"relay18":{"on":0}}{"relay19":{"on":0}}{"relay20":{"on":1}}{"relay21":{"on":0}}{"relay22":{"on":0}}{"relay24":{"on":1}}}'
  payload_off: '{{"relay17":{"on":0}}{"relay18":{"on":0}}{"relay19":{"on":0}}{"relay20":{"on":0}}{"relay21":{"on":0}}{"relay22":{"on":0}}{"relay24":{"on":0}}}'
  value_template: "{{value_json.relay17.on}}{{value_json.relay18.on}}{{value_json.relay19.on}}{{value_json.relay20.on}}{{value_json.relay21.on}}{{value_json.relay22.on}}{{value_json.relay24.on}}"
  state_on:  "1001001"
  state_off: "0000000"


All works fine!


Many Thanks for high effective support!

with regards,
Gene
Reply


Messages In This Thread
MQTT set issue - by gek1925 - 10-07-2021, 02:21 PM
RE: MQTT set issue - by uvrtar - 10-07-2021, 08:06 PM
RE: MQTT set issue - by admin - 10-08-2021, 12:19 AM
RE: MQTT set issue - by gek1925 - 10-08-2021, 08:08 AM
RE: MQTT set issue - by admin - 10-08-2021, 11:40 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)