05-07-2022, 05:16 PM
Dear Sir,
I am using home assistant on raspberry pi, and I am also using the following commands for on/off my H32B relay control module.
It works fine. But I need JUST ONE RELAY with INCHING feature, because i want to use that relay to open/close my garage door.
Thank you
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
- platform: mqtt
name: 'relay32B-2'
unique_id: relay32B-2
state_topic: 'relay32/80f9caa4068e7805b09f9a6a/state'
command_topic: '80f9caa4068e7805b09f9a6a/set'
payload_on: '{"relay2":{"on":1}}'
payload_off: '{"relay2":{"on":0}}'
value_template: '{{ value_json.relay2.on }}'
state_on: 1
state_off: 0
- platform: mqtt
name: 'relay32B-3'
unique_id: relay32B-3
state_topic: 'relay32/80f9caa4068e7805b09f9a6a/state'
command_topic: 'relay32/80f9caa4068e7805b09f9a6a/set'
payload_on: '{"relay3":{"on":1}}'
payload_off: '{"relay3":{"on":0}}'
value_template: '{{ value_json.relay3.on }}'
state_on: 1
state_off: 0
I am using home assistant on raspberry pi, and I am also using the following commands for on/off my H32B relay control module.
It works fine. But I need JUST ONE RELAY with INCHING feature, because i want to use that relay to open/close my garage door.
Thank you
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
- platform: mqtt
name: 'relay32B-2'
unique_id: relay32B-2
state_topic: 'relay32/80f9caa4068e7805b09f9a6a/state'
command_topic: '80f9caa4068e7805b09f9a6a/set'
payload_on: '{"relay2":{"on":1}}'
payload_off: '{"relay2":{"on":0}}'
value_template: '{{ value_json.relay2.on }}'
state_on: 1
state_off: 0
- platform: mqtt
name: 'relay32B-3'
unique_id: relay32B-3
state_topic: 'relay32/80f9caa4068e7805b09f9a6a/state'
command_topic: 'relay32/80f9caa4068e7805b09f9a6a/set'
payload_on: '{"relay3":{"on":1}}'
payload_off: '{"relay3":{"on":0}}'
value_template: '{{ value_json.relay3.on }}'
state_on: 1
state_off: 0