Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
home assistant RC 2022.6 mqtt config update for configuration.yaml
#46
switch:
- platform: mqtt
name: 'output-1'
unique_id: output-1
state_topic: 'server/xxxxxxxxxxxxxxxxxxxxxxxx/state'
command_topic: 'server/xxxxxxxxxxxxxxxxxxxxxxxx/set'
payload_on: '{"relay1":{"on":1}}'
payload_off: '{"relay1":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0

compare with these code, your config code have some SPACE, you need to delete.
Reply


Messages In This Thread
RE: home assistant RC 2022.6 mqtt config update for configuration.yaml - by admin - 01-25-2024, 10:36 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)