various incl zha quirks

This commit is contained in:
root
2024-12-13 14:33:44 +13:00
parent 20044d73ea
commit 70ed59fef8
34 changed files with 1432 additions and 902 deletions

View File

@@ -0,0 +1,44 @@
sensor:
- platform: group
name: Battery Levels
type: min
entities:
# Moes Multi Button Scene Switches (CR2430)
- sensor.master_bedroom_scene_switch_east_zss02_battery
- sensor.master_bedroom_scene_switch_west_zss01_battery
# Xiaomi Round Buttons (Button cell 2032)
- sensor.laundry_drier_start_button_zbt01_battery
# Xiaomi Vibration Sensor (Button cell 2032)
- sensor.vibration_sensor_1_zvi01_battery
# Smoke Detectors (CR123A) NO BATTERY INFO
#NO READING- sensor.main_lounge_smoke_detector_zsm01_battery
#NO READING- sensor.downstairs_lounge_lounge_smoke_detector_zsm02_battery
# Xiaomi Leak Detection (Button cell 2032)
- sensor.main_kitchen_sink_leak_zlk01_battery
- sensor.guest_bathroom_laundry_sink_leak_zlk02_battery
- sensor.basement_laundry_floor_leak_zlk03_battery
# offline - sensor.downstairs_kitchen_sink_leak_zlk04_battery
# Tuya Leak Detection (2x AA Batteries)
- sensor.downstairs_kitchen_sink_leak_zlk05_battery
- sensor.downstairs_bathroom_leak_zlk06_battery
# Xiaomi Temp, Humidity Sensors (Button cell 2032)
- sensor.master_bedroom_temperature_zth01_battery
- sensor.bedroom_2_temperature_zth02_battery
- sensor.bedroom_3_temperature_zth03_battery
- sensor.main_bathroom_temperature_zth04_battery
- sensor.storage_loft_temperature_zth05_battery
- sensor.downstairs_bedroom_1_temperature_zth06_battery
# Tuya Temp, Humidity Sensors (2x AAA Batteries)
- sensor.humidor_environment_zth07_battery
- sensor.main_kitchen_fridge_temp_zth08_battery
# Fantem multisensor Sensors (2X CR123A OR 5V MicroUSB)
#TEMP DISABLE - sensor.main_kitchen_multisensor_zms01_battery
- sensor.data_cupboard_multisensor_zms02_battery
# Tuya LCD Temp, Humidity Sensors (2x AAA Batteries)
- sensor.office_lcd_temperature_ztl01_battery
- sensor.master_bedroom_lcd_temperature_ztl02_battery
- sensor.downstairs_lounge_lcd_temperature_ztl03_battery
# Sonoff PIR (CR2450)
- sensor.piano_pir_zir01_battery
# Tuya Reed Switch (2x AAA Batteries)
#NO READING - sensor.downstairs_bedrooms_hatch_zrs01_battery

View File

@@ -0,0 +1,95 @@
# input_select for dropdown menu to select the timer duration or cancel
input_select:
master_bedroom_climate_timer_duration:
name: Master Bedroom Aircon Sleep
options:
- "1 hour"
- "2 hours"
- "3 hours"
- "Cancel sleep timer"
initial: "Cancel sleep timer"
icon: mdi:timer-outline
# Single timer for managing the countdown
timer:
master_bedroom_climate_timer:
name: Master Bedroom Aircon Timer
duration: "00:00:00" # Initial duration; will be set dynamically
# Automation to start or cancel the timer based on the dropdown selection
automation:
- alias: "Start or Cancel Master Bedroom Climate Timer"
trigger:
- platform: state
entity_id: input_select.master_bedroom_climate_timer_duration
action:
- service: timer.cancel
entity_id: timer.master_bedroom_climate_timer
- choose:
- conditions:
- condition: state
entity_id: input_select.master_bedroom_climate_timer_duration
state: "1 hour"
sequence:
- service: timer.start
data:
entity_id: timer.master_bedroom_climate_timer
duration: "01:00:00"
- conditions:
- condition: state
entity_id: input_select.master_bedroom_climate_timer_duration
state: "1 minute"
sequence:
- service: timer.start
data:
entity_id: timer.master_bedroom_climate_timer
duration: "00:01:00"
- conditions:
- condition: state
entity_id: input_select.master_bedroom_climate_timer_duration
state: "2 hours"
sequence:
- service: timer.start
data:
entity_id: timer.master_bedroom_climate_timer
duration: "02:00:00"
- conditions:
- condition: state
entity_id: input_select.master_bedroom_climate_timer_duration
state: "3 hours"
sequence:
- service: timer.start
data:
entity_id: timer.master_bedroom_climate_timer
duration: "03:00:00"
- conditions:
- condition: state
entity_id: input_select.master_bedroom_climate_timer_duration
state: "Cancel sleep timer"
sequence:
- service: timer.cancel
entity_id: timer.master_bedroom_climate_timer
- service: climate.turn_off
target:
entity_id: climate.master_bedroom
# Automation to turn off the climate entity when the timer finishes
- alias: "Turn Off Master Bedroom Climate on Timer Completion"
trigger:
- platform: event
event_type: timer.finished
event_data:
entity_id: timer.master_bedroom_climate_timer
action:
- service: climate.turn_off
target:
entity_id: climate.master_bedroom
- service: input_select.select_option
data:
entity_id: input_select.master_bedroom_climate_timer_duration
option: "Cancel sleep timer" # Reset to the initial value

View File

@@ -1,8 +0,0 @@
binary_sensor:
- platform: template
sensors:
inverted_quiet_time_sensor:
value_template: >-
{{ is_state('input_boolean.quiet_time', 'off') }}
#device_class: None
friendly_name: Quiet Time (Inverted)

View File

@@ -0,0 +1,45 @@
#nspanel_keepawake:
# name: Entities to keep NSPanel Awake
# unique_id: Entities_to_keep_NSPanel_Awake
# # Keeps the bedroom NSPanel Bright if any of these are true
# If 'all' is set to true, they are 'ANDed' otherwise 'ORd'
#all: true
# entities:
# - binary_sensor.inverted_quiet_time_sensor
# - light.tasmo_arlecrgb_3522_bulb_3
# - light.tasmo_ifan02_3793_bedrm1_1
# - light.tasmo_ks811t_3647_bedrm1_1b
#light:
# - platform: template
# sensors:
# inverted_quiet_time_sensor:
# value_template: >-
# {{ is_state('input_boolean.quiet_time', 'off') }}
# #device_class: None
# friendly_name: Quiet Time (Inverted)
light:
- platform: template
lights:
inverted_quiet_time_as_light:
friendly_name: "Inverted Quiet time as light"
unique_id: "inverted quiet time as light"
value_template: "{{ is_state('input_boolean.quiet_time', 'off') }}"
turn_on:
service: light.turn_on
target:
entity_id: light.inverted_quiet_time_light
turn_off:
service: light.turn_off
target:
entity_id: light.inverted_quiet_time_as_light
- platform: group
name: "Entities to keep NSPanel Awake"
unique_id: "Entities to keep NSPanel Awake"
entities:
- light.inverted_quiet_time_as_light
- light.tasmo_arlecrgb_3522_bulb_3
- light.tasmo_ifan02_3793_bedrm1_1
- light.tasmo_ks811t_3647_bedrm1_1b

View File

@@ -0,0 +1,44 @@
#simulation_lights:
# name: Simulation Lights
# # Lights included in 'away from home' random patterns
# entities:
# - switch.tasmo_ks811d_1242_entrance_a # Entranceway Main Lights
# - switch.tasmo_ks811d_0302_entrybath_a # Entranceway Guest Bathroom Lights
# - switch.tasmo_ks811d_6110_kitchen_a # Main Kitchen, Main Lights
# - switch.tasmo_ks811d_6110_kitchen_b # Main Kitchen, Bench Lights
# - switch.tasmo_ks811s_2940_hallway_1a # Hallway Main Lights
# - switch.tasmo_ks811d_1701_stairs_2a # Stairs, Lower ceiling lights
# - switch.tasmo_ks811t_0702_lounge_3a # Lounge Main, South
# - switch.tasmo_ks811t_0702_lounge_3b # Lounge Main, Middle
# - switch.tasmo_ks811t_0702_lounge_3c # Lounge Main, North (above stairs)
# - switch.tasmo_ks811t_0707_downstloun_2a # Foxhole Lounge Main Lights
# - switch.tasmo_ks811t_0707_downstloun_2b # Foxhole Lounge Wall Lights
# - switch.tasmo_ks811s_3136_downstbed2_1a # Foxhole Craft Room Lights
# - switch.tasmo_ks811t_3642_downstbed1_1a # Foxhole Main Bedroom, Main Lights
# - switch.tasmo_ks811t_2192_downstkitch_1a # Foxhole Kitchen Entry Lights
# - switch.tasmo_ks811t_2192_downstkitch_1b # Foxhole Kitchen Main Lights
# - switch.tasmo_ks811t_1181_downstbath_a # Foxhole Downstairs Bathroom Main Lights
# - switch.tasmo_s4chan_4231_underhouselights_b # Underhouse Main Lights
switch:
- platform: group
name: Simulation Lights
# Lights included in 'away from home' random patternsentities:
entities:
- switch.tasmo_ks811d_1242_entrance_a # Entranceway Main Lights
- switch.tasmo_ks811d_0302_entrybath_a # Entranceway Guest Bathroom Lights
- switch.tasmo_ks811d_6110_kitchen_a # Main Kitchen, Main Lights
- switch.tasmo_ks811d_6110_kitchen_b # Main Kitchen, Bench Lights
- switch.main_hallway_lightswitch_tasmo_ks811s_2940_hallway_1a # Hallway Main Lights
- switch.tasmo_ks811d_1701_stairs_2a # Stairs, Lower ceiling lights
- switch.tasmo_ks811t_0702_lounge_3a # Lounge Main, South
- switch.tasmo_ks811t_0702_lounge_3b # Lounge Main, Middle
- switch.tasmo_ks811t_0702_lounge_3c # Lounge Main, North (above stairs)
- switch.tasmo_ks811t_0707_downstloun_2a # Foxhole Lounge Main Lights
- switch.tasmo_ks811t_0707_downstloun_2b # Foxhole Lounge Wall Lights
- switch.tasmo_ks811s_3136_downstbed2_1a # Foxhole Craft Room Lights
- switch.tasmo_ks811t_3642_downstbed1_1a # Foxhole Main Bedroom, Main Lights
- switch.tasmo_ks811t_2192_downstkitch_1a # Foxhole Kitchen Entry Lights
- switch.tasmo_ks811t_2192_downstkitch_1b # Foxhole Kitchen Main Lights
- switch.tasmo_ks811t_1181_downstbath_a # Foxhole Downstairs Bathroom Main Lights
- switch.tasmo_s4chan_4231_underhouselights_b # Underhouse Main Lights

View File

@@ -1 +0,0 @@