Product Link from Banggood -
Sonoff RF Bridge 433: bit.ly/2JcmKs1
www.DrZzs.com
for blog post with Transcript and links.
UPDATE: if you have trouble with the OpenMQTTGateway asking for a password try: your_password
IMPORTANT LINKS:
Amazon Link: amzn.to/2rCQPcw
Patreon: / drzzs
Twitter: / dr_zzs
Instagram: / drzzs
FlashEZ: github.com/let...
OMG.bin: tinyurl.com/yb...
Home Assistant binary_sensor yaml:
binary_sensor
- platform: mqtt
name: "Garage Motion"
state_topic: "home/OpenMQTTGateway/SRFBtoMQTT"
payload_on: "123456"
payload_off: "123456off"
device_class: Motion
optimistic: false
qos: 1
retain: false
Home Assistant reset to 'off' automation yaml:
- alias: Reset RF Motion State
hide_entity: true
initial_state: 'on'
trigger:
- platform: state
entity_id: binary_sensor.garage_motion
to: 'on'
for:
seconds: 5
action:
- service: mqtt.publish
data:
topic: home/OpenMQTTGateway/SRFBtoMQTT
payload: 123456off
Home Assistant other automations yaml:
#automations:
- alias: Garage Lights Off
hide_entity: true
initial_state: 'on'
trigger:
- platform: state
entity_id: binary_sensor.garage_motion
from: 'on'
to: 'off'
for:
minutes: 30
action:
- service: switch.turn_off
data:
entity_id: switch.garage_lights
- alias: Garage Lights On
hide_entity: true
initial_state: 'on'
trigger:
- platform: state
entity_id: binary_sensor.shop_door
to: 'on'
- platform: state
entity_id: binary_sensor.garage_door
to: 'on'
- platform: state
entity_id: binary_sensor.garage_motion
to: 'on'
condition:
- condition: state
entity_id: switch.garage_lights
state: 'off'
action:
service: switch.turn_on
data:
entity_id: switch.garage_lights
7 сен 2024