various esphome changes

This commit is contained in:
root
2025-05-18 16:35:38 +12:00
parent e60f404d05
commit 0c3ba9cad8
36 changed files with 2813 additions and 356 deletions

View File

@@ -1,6 +1,7 @@
mqtt:
sensor:
- unique_id: washing_machine_finished
device_class: timestamp
name: "Washer Finished"
state_topic: "viewroad-status/activityfeed/Washer_complete"
icon: mdi:washing-machine

View File

@@ -0,0 +1,25 @@
automation:
# Automation to turn on drying at 9pm in the master bedroom (if switched on ith the helper)
- id: master_bedroom_offpeak_dehumidify
alias: Master Bedroom Off-Peak Dehumidify
mode: single
trigger:
- platform: time
at: "21:20:00"
condition:
- condition: state
entity_id: input_boolean.master_bedroom_offpeak_dehumidify
state: "on"
action:
- service: climate.set_hvac_mode
target:
entity_id: climate.master_bedroom
data:
hvac_mode: dry
- wait_for_trigger:
- platform: time
at: "00:00:00"
- service: climate.turn_off
target:
entity_id: climate.master_bedroom

View File

@@ -13,11 +13,11 @@ input_select:
input_boolean:
heat_pump_automation:
name: Enable Heat Master Bedroom Night Cycling
name: Enable Heat Pump Master Bedroom Night Cycling
initial: off
automation:
- alias: "Master Bedroom Night Cycling"
- alias: "Master Bedroom Heat Pump Night Cycling"
description: "Turns the climate.master_bedroom to 'cool' for 15 minutes every hour if temperature is below the selected threshold."
trigger:
- platform: time_pattern # Use time_pattern to run the automation on a recurring schedule.
@@ -31,7 +31,6 @@ automation:
- condition: template
value_template: >
{{ states('sensor.master_bedroom_environment_zth01_temperature_2') | float > states('input_select.heat_pump_temperature_threshold') | float }}
# Actions: Define the steps of the automation.
action:
# Action 1: Turn on the heat pump by setting HVAC mode to "cool".
@@ -48,7 +47,6 @@ automation:
- service: climate.turn_off
target:
entity_id: climate.master_bedroom
mode: single # Ensures only one instance of this automation runs at a time.
# always switch off the automation at 5am
@@ -73,3 +71,15 @@ automation:
target:
entity_id: climate.master_bedroom
mode: single
# ensure the automation is off on a HA reboot
- alias: "Ensure Heat Pump Automation is Off on Startup"
description: "Turns off the heat pump automation (input_boolean.heat_pump_automation) when Home Assistant starts."
trigger:
- platform: homeassistant
event: start
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.heat_pump_automation
mode: single

View File

@@ -1,12 +1,12 @@
mqtt_statestream:
base_topic: hamqtt
publish_attributes: true
publish_timestamps: true
include:
entities:
- sensor.main_bathroom_humidity_change_rate
entity_globs:
- sensor.*_zt*
#mqtt_statestream:
# base_topic: hamqtt
# publish_attributes: true
# publish_timestamps: true
# include:
# entities:
# - sensor.main_bathroom_humidity_change_rate
# entity_globs:
# - sensor.*_zt*
#exclude:
# entity_globs:
# - sensor.*zoruno*
# - sensor.*zoruno*

View File

@@ -40,5 +40,5 @@ switch:
- 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.esp_downstbathswitch_relay_main_light # Foxhole Downstairs Bathroom Main Lights
- switch.tasmo_s4chan_4231_underhouselights_b # Underhouse Main Lights

View File

@@ -15,42 +15,42 @@ mqtt:
- unique_id: weewx_outTemp_C
state_topic: "weewx/outTemp_C"
name: "Weewx Outdoor Temperature"
unit_of_measurement: "C"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value | round(1) }}"
icon: "mdi:thermometer"
- unique_id: weewx_inTemp_C
state_topic: "weewx/inTemp_C"
name: "Weewx Indoor Temperature"
unit_of_measurement: "C"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value | round(1) }}"
icon: "mdi:thermometer"
- unique_id: weewx_humidex_C
state_topic: "weewx/humidex_C"
name: "Weewx Humidex"
unit_of_measurement: "C"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value | round(1) }}"
icon: "mdi:thermometer"
- unique_id: weewx_dewpoint_C
state_topic: "weewx/dewpoint_C"
name: "Weewx Dewpoint"
unit_of_measurement: "C"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value | round(1) }}"
icon: "mdi:thermometer"
- unique_id: weewx_heatindex_C
state_topic: "weewx/heatindex_C"
name: "Weewx Heat Index"
unit_of_measurement: "C"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value | round(1) }}"
icon: "mdi:thermometer"
- unique_id: weewx_windchill_C
state_topic: "weewx/windchill_C"
name: "Weewx Windchill"
unit_of_measurement: "C"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value | round(1) }}"
icon: "mdi:thermometer"