Last active
August 11, 2023 03:40
-
-
Save Snipercaine/889024b0f13302928c7251e1578734d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
binary_sensor: | |
- platform: mqtt | |
state_topic: "tele/RF_Bridge/RESULT" | |
name: 'Garage Motion' | |
value_template: '{{value_json.RfReceived.Data}}' | |
payload_on: 'D54C1E' | |
off_delay: 10 | |
device_class: motion | |
qos: 1 | |
retain: false | |
- platform: mqtt | |
name: "Garage Fridge" | |
state_topic: "tele/RF_Bridge/RESULT" | |
value_template: '{{value_json.RfReceived.Data}}' | |
payload_on: "DF000A" | |
payload_off: "DF000E" | |
device_class: Cold | |
qos: 1 | |
retain: false | |
- platform: mqtt | |
name: "Shop Door" | |
state_topic: "tele/RF_Bridge/RESULT" | |
value_template: '{{value_json.RfReceived.Data}}' | |
payload_on: "F8030A" | |
payload_off: "F8030E" | |
device_class: Door | |
qos: 1 | |
retain: false | |
- platform: mqtt | |
name: "Basment Water" | |
state_topic: "tele/RF_Bridge/RESULT" | |
value_template: '{{value_json.RfReceived.Data}}' | |
payload_on: "84B90E" | |
off_delay: 10 | |
device_class: Moisture | |
qos: 1 | |
retain: false | |
- platform: mqtt | |
name: "Office Wand" | |
state_topic: "tele/RF_Bridge/RESULT" | |
value_template: '{{value_json.RfReceived.Data}}' | |
payload_on: "D31421" | |
off_delay: 10 | |
qos: 1 | |
retain: false | |
- platform: mqtt | |
name: "Office Book" | |
state_topic: "tele/RF_Bridge/RESULT" | |
value_template: '{{value_json.RfReceived.Data}}' | |
payload_on: "C7C2A1" | |
off_delay: 10 | |
qos: 1 | |
retain: false | |
##Automations for RF Sensors and Fun | |
- alias: 'Garage Fridge Open' | |
hide_entity: true | |
trigger: | |
- platform: state | |
entity_id: binary_sensor.garage_fridge | |
from: 'off' | |
to: 'on' | |
for: '00:02:00' | |
action: | |
- service: media_player.alexa_tts | |
data: | |
entity_id: media_player.kitchen_dot | |
message: "Can someone please close the garage fridge?" | |
- service: tts.google_say | |
data: | |
entity_id: media_player.adenaudiocast | |
message: "Can someone please close the garage fridge?" | |
- alias: 'Basement Water Leak' | |
hide_entity: true | |
trigger: | |
- platform: state | |
entity_id: binary_sensor.basment_water | |
from: 'off' | |
to: 'on' | |
action: | |
- service: tts.google_say | |
data: | |
entity_id: media_player.adenaudiocast | |
message: "Holy Crap there's water in the Basement again! Call someone, do something, ahhhhhhhh?" | |
- service: media_player.alexa_tts | |
data: | |
entity_id: media_player.dads_office | |
message: "Holy Crap there's water in the Basement again! Call someone, do something, ahhhhhhhh?" | |
- service: notify.ios_justin_iphone7 | |
data: | |
title: WATER LEAK | |
message: "Holy Crap there's water in the Basement again! Call someone, do something, ahhhhhhhh?" | |
- service: input_select.select_option | |
data: | |
entity_id: input_select.all_leds | |
option: Police All | |
- alias: Office Lock Magic | |
hide_entity: true | |
initial_state: 'on' | |
trigger: | |
- platform: state | |
entity_id: binary_sensor.office_book | |
to: 'on' | |
- platform: state | |
entity_id: binary_sensor.office_wand | |
to: 'on' | |
action: | |
- service: switch.toggle | |
data: | |
entity_id: switch.office_lock | |
- service: tts.google_say | |
data: | |
entity_id: media_player.adenaudiocast | |
message: "You have chosen wisely. You may enter my realm" | |
- 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: 5 | |
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_entry | |
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nowadays we get such error on check config.
.... [retain] is an invalid option for [binary_sensor.mqtt]....