In this video I take an outdoor PIR sensor that I bought at a rummage sale for $3, and connect it to a Tasmotized Sonoff SV that I had already set up as a garage door button In Home Assistant and Google Home.
Included is the wiring, mounting, assembly, and set-up of the Tasmota software and the Home Assistant software to make this work in my system to replace my RING doorbell motion sensor that fails more than it works.
If you want to skip ahead to programming, here are some time syncs:
20:34 – Start of Tasmota configuration of the Sonoff SV
26:53 – Start of Home Assistant programming
Episode 3:
Video related links:
Tasmotizer:
https://github.com/tasmota/tasmotizer
WIKI for Sonoff SV:
https://github.com/arendst/Tasmota/wiki/sonoff-SV
Amazon Link to buy Sonoff SV:
https://www.amazon.com/Wireless-Control-Support-Secondary-Development/dp/B07MNH9XS6
Channel Links to contact me:
What are we Fixing Today Homepage / Website:
https://www.WhatAreWeFixing.Today/
Channel Link URL: (WhatAreWeFixingToday)
https://bit.ly/WhatAreWeFixingTodaysYT
What are we Fixing Today Facebook page (Sir GoodEnough):
https://bit.ly/WhatAreWeFixingTodaybFB
What are we Fixing Today Twitter Account (Sir GoodEnough):
https://bit.ly/WhatAreWeFixingTodayTW
Discord Account: (Sir_Goodenough#9683)
https://discord.gg/Uhmhu3B
Please help support the channel:
Patreon: https://www.patreon.com/WhatAreWeFixingToday
Buy me Coffee: https://www.buymeacoffee.com/SirGoodenough
PayPal one-off donation link: https://www.paypal.me/SirGoodenough
Cash App $CASHTAG: https://cash.me/$SirGoodenough
Venmo cash link: https://venmo.com/SirGoodenough
If you would like to donate anything to this channel, please use this address:
C/O: Sirius GoodEnough
322 Buena Vista Ave.
Department: DYT
Waukesha, Wisconsin, 53188-3602
Home Assistant YAML Code:
binary_sensor:
- platform: mqtt
name: “Yard Light PIR”
device_class: motion
state_topic: garage_door/stat/POWER2
payload_on: ‘ON’
payload_off: ‘OFF’
force_update: false
availability_topic: garage_door/tele/LWT
payload_available: Online
payload_not_available: Offline
automations:
- id: yard_light_pir
alias: Yard Light PIR
initial_state: ‘on’
trigger:
- entity_id: binary_sensor.yard_light_pir
platform: state
from: ‘off’
to: ‘on’ - entity_id: binary_sensor.back_door_motion
platform: state
from: ‘off’
to: ‘on’
condition:
condition: state
entity_id: binary_sensor.dark_outside
state: ‘on’
action: - service: script.turn_on
entity_id: script.garage_lights_on - service: script.turn_on
entity_id: script.garage_lights_start_timeout
- entity_id: binary_sensor.yard_light_pir
YouTube Link: https://youtu.be/5Yi9K1giIXg