05-11-2022, 12:39 AM
Can you please enter this command "relay ON -> delay 0.5s -> relay OFF." where necessary please
switch:
- platform: mqtt
name: 'relay32B-1'
unique_id: relay32B-1
state_topic: 'relay32/80f9caa4068e7805b09f9a6a/state'
command_topic: 'relay32/80f9caa4068e7805b09f9a6a/set'
payload_on: '{"relay1":{"on":1}}'
payload_off: '{"relay1":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0
switch:
- platform: mqtt
name: 'relay32B-1'
unique_id: relay32B-1
state_topic: 'relay32/80f9caa4068e7805b09f9a6a/state'
command_topic: 'relay32/80f9caa4068e7805b09f9a6a/set'
payload_on: '{"relay1":{"on":1}}'
payload_off: '{"relay1":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0