|
|
|
|
@ -1,10 +1,15 @@
|
|
|
|
|
#-------------------------------------------
|
|
|
|
|
# @CCOSTAN
|
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
|
|
|
# SleepIQ - Bed presence and Sleep Number metrics.
|
|
|
|
|
#-------------------------------------------
|
|
|
|
|
######################################################################
|
|
|
|
|
## SleepIQ sensors and automation helpers.
|
|
|
|
|
# @CCOSTAN - Follow Me on X
|
|
|
|
|
# For more info visit https://www.vcloudinfo.com/click-here
|
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
|
|
|
# -------------------------------------------------------------------
|
|
|
|
|
# SleepIQ - Bed presence and Sleep Number metrics
|
|
|
|
|
# SleepIQ sensors, helpers, and bed-related automations.
|
|
|
|
|
# -------------------------------------------------------------------
|
|
|
|
|
# Related Issue: 1568
|
|
|
|
|
# Notes: "Carlo Snore" (input_boolean) can be voice-controlled via Alexa.
|
|
|
|
|
# Preset option strings may differ per bed; adjust "Snore"/"Flat"
|
|
|
|
|
# below if needed to match your select entity's options.
|
|
|
|
|
######################################################################
|
|
|
|
|
homeassistant:
|
|
|
|
|
customize_glob:
|
|
|
|
|
@ -43,6 +48,11 @@ sleepiq:
|
|
|
|
|
# duration:
|
|
|
|
|
# hours: 24
|
|
|
|
|
|
|
|
|
|
input_boolean:
|
|
|
|
|
carlo_snore:
|
|
|
|
|
name: Carlo Snore
|
|
|
|
|
icon: mdi:bed
|
|
|
|
|
|
|
|
|
|
group:
|
|
|
|
|
bed:
|
|
|
|
|
entities:
|
|
|
|
|
@ -69,3 +79,53 @@ automation:
|
|
|
|
|
- service: button.press
|
|
|
|
|
target:
|
|
|
|
|
entity_id: button.carlo_homepc_carlo_homepc_monitorsleep
|
|
|
|
|
|
|
|
|
|
- alias: "SLEEPIQ - Carlo Snore On (Foundation Right)"
|
|
|
|
|
id: 7bc879bb-9cc9-4b30-8eea-4b15a9fb7b25
|
|
|
|
|
mode: single
|
|
|
|
|
trigger:
|
|
|
|
|
- platform: state
|
|
|
|
|
entity_id: input_boolean.carlo_snore
|
|
|
|
|
from: "off"
|
|
|
|
|
to: "on"
|
|
|
|
|
action:
|
|
|
|
|
- service: select.select_option
|
|
|
|
|
continue_on_error: true
|
|
|
|
|
target:
|
|
|
|
|
entity_id: select.sleepnumber_carlo_foundation_preset_right
|
|
|
|
|
data:
|
|
|
|
|
option: "Snore"
|
|
|
|
|
|
|
|
|
|
- alias: "SLEEPIQ - Carlo Snore Off (Foundation Right Flat)"
|
|
|
|
|
id: 2f80d533-73f1-4079-9e91-4375cfabf8dc
|
|
|
|
|
mode: single
|
|
|
|
|
trigger:
|
|
|
|
|
- platform: state
|
|
|
|
|
entity_id: input_boolean.carlo_snore
|
|
|
|
|
from: "on"
|
|
|
|
|
to: "off"
|
|
|
|
|
action:
|
|
|
|
|
- service: select.select_option
|
|
|
|
|
continue_on_error: true
|
|
|
|
|
target:
|
|
|
|
|
entity_id: select.sleepnumber_carlo_foundation_preset_right
|
|
|
|
|
data:
|
|
|
|
|
option: "Flat"
|
|
|
|
|
|
|
|
|
|
- alias: "SLEEPIQ - Auto Disable Carlo Snore When Out Of Bed 20m"
|
|
|
|
|
id: 962c51d9-3ca7-4ebb-a516-5fc650b4b1a8
|
|
|
|
|
mode: single
|
|
|
|
|
trigger:
|
|
|
|
|
- platform: state
|
|
|
|
|
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
|
|
|
|
from: "on"
|
|
|
|
|
to: "off"
|
|
|
|
|
for: "00:20:00"
|
|
|
|
|
condition:
|
|
|
|
|
- condition: state
|
|
|
|
|
entity_id: input_boolean.carlo_snore
|
|
|
|
|
state: "on"
|
|
|
|
|
action:
|
|
|
|
|
- service: input_boolean.turn_off
|
|
|
|
|
target:
|
|
|
|
|
entity_id: input_boolean.carlo_snore
|
|
|
|
|
|