Product Link from Banggood -
Sonoff RF Bridge 433: [ Ссылка ]
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: [ Ссылка ]
Patreon: [ Ссылка ]
Twitter: [ Ссылка ]
Instagram: [ Ссылка ]
FlashEZ: [ Ссылка ]
OMG.bin: [ Ссылка ]
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
![](https://i.ytimg.com/vi/Ega4U1KRlso/mqdefault.jpg)