Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with wall switch and HA automation
#8
I believe i solved it it! take look to the code

- name: 'sw1'
unique_id: sw-1
state_topic: 'server/XXXXXXXXXXXXXXXXXX/state'
value_template: "{{ state_attr('value_json.sw1' , 'on') }}"
payload_on: '1'
payload_off: '0'
Reply


Messages In This Thread
RE: Problem with wall switch and HA automation - by Dober - 09-29-2022, 06:55 PM

Forum Jump:


Users browsing this thread: