mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-18 19:26:57 +00:00
Updated code for when we are in bed.
This commit is contained in:
43
README.md
43
README.md
@@ -100,48 +100,5 @@ SUNSET:
|
|||||||
I've moved this entire section to the [issues section](https://github.com/CCOSTAN/Home-AssistantConfig/issues) on github.
|
I've moved this entire section to the [issues section](https://github.com/CCOSTAN/Home-AssistantConfig/issues) on github.
|
||||||
|
|
||||||
|
|
||||||
#Lab notes:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
|
|
||||||
Add codesend backup to RF Plugs!
|
|
||||||
@CCOSTAN I followed the info here: https://home-assistant.io/components/switch.command_line/
|
|
||||||
command_on: "/var/www/html/rfoutlet/codesend 4543795 -l 177 -p 0"
|
|
||||||
|
|
||||||
{%- if now().month in [01, 11, 12] -%} Yes {%- else -%} NO {%- endif %}
|
|
||||||
|
|
||||||
|
|
||||||
#Great Template Sensor Example
|
|
||||||
- platform: template
|
|
||||||
sensors:
|
|
||||||
front_door_lock_alarm_state:
|
|
||||||
value_template: >
|
|
||||||
'{{
|
|
||||||
{
|
|
||||||
'21': 'Secured using Key or inside thumb-turn',
|
|
||||||
'22': 'Un-Secured using Key or inside thumb-turn',
|
|
||||||
'26': 'Auto Secured – Bolt Jammed',
|
|
||||||
'27': 'Auto Secured – Successful',
|
|
||||||
'17': 'Secured at Keypad – Bolt Jammed',
|
|
||||||
'18': 'Secured at Keypad – Successful',
|
|
||||||
'19': 'Un-Secured by User at Keypad',
|
|
||||||
'23': 'Secured by Controller – Bolt Jammed',
|
|
||||||
'24': 'Secured by Controller – Successful',
|
|
||||||
'25': 'Un-Secured by Controller – Successful',
|
|
||||||
'112': 'New User Code added to the lock',
|
|
||||||
'32': 'All User Codes deleted from lock',
|
|
||||||
'161': 'Failed User Code attempt at Keypad',
|
|
||||||
'162': 'Attempted access by user outside of schedule',
|
|
||||||
'167': 'Low battery level',
|
|
||||||
'168': 'Critical battery level',
|
|
||||||
'169': 'Battery level too low to operate lock'
|
|
||||||
}[states('sensor.kwikset_touchpad_electronic_deadbolt_alarm_type_26_0')]
|
|
||||||
}}'
|
|
||||||
friendly_name: 'Deadbolt Status:'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -40,3 +40,4 @@
|
|||||||
- service: script.interior_off
|
- service: script.interior_off
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -15,7 +15,7 @@
|
|||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data_template:
|
data_template:
|
||||||
value1: >
|
value1: >
|
||||||
"Welcome Home {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }}. Here are the main points for today:
|
"Welcome Home {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }}. Here is what's going on around the house right now:
|
||||||
{%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%}
|
{%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%}
|
||||||
Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is garbage day. Please be sure to tell the kids to take out the trash.
|
Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is garbage day. Please be sure to tell the kids to take out the trash.
|
||||||
{%endif%}
|
{%endif%}
|
||||||
|
@@ -4,11 +4,16 @@
|
|||||||
- alias: 'Late Night Helper'
|
- alias: 'Late Night Helper'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.upstairs_away_mode
|
entity_id:
|
||||||
|
- binary_sensor.upstairs_away_mode
|
||||||
|
- binary_sensor.downstairs_away_mode
|
||||||
state: 'off'
|
state: 'off'
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.downstairs_away_mode
|
entity_id:
|
||||||
state: 'off'
|
- binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
||||||
|
- binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
||||||
|
state: 'on'
|
||||||
|
for: '00:05:00'
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: group.family
|
entity_id: group.family
|
||||||
state: home
|
state: home
|
||||||
@@ -17,6 +22,7 @@
|
|||||||
state: 'open'
|
state: 'open'
|
||||||
for: '00:01:30'
|
for: '00:01:30'
|
||||||
|
|
||||||
|
|
||||||
condition:
|
condition:
|
||||||
condition: and
|
condition: and
|
||||||
conditions:
|
conditions:
|
||||||
|
Reference in New Issue
Block a user