esphome mi 1s lamp

This commit is contained in:
root
2024-09-04 22:46:30 +12:00
parent 74d1c18615
commit 83549c6c1e
26 changed files with 2934 additions and 929 deletions

View File

@@ -0,0 +1,7 @@
sensor:
- platform: anniversary
name: events
multiple: false
anniversaries:
- event: "Holiday"
date: "2024-9-14"

View File

@@ -2,7 +2,7 @@ mqtt:
switch:
- unique_id: mollies.internet
name: "Mollie's Internet Blocking"
state_topic: "viewroad-status/firewall/block-unblock-mollie-iphone7"
state_topic: "viewroad-status/firewall/block-unblock-mollie-iphone8"
command_topic: "viewroad-commands/firewall/block-unblock-mollie-devices"
payload_off: "Unblocked"
payload_on: "Blocked"
@@ -21,3 +21,9 @@ mqtt:
payload_press: "Unblocked"
icon: mdi:web
retain: false
- unique_id: mollies.internet.temp.unblock.1hr
name: "Mollie's Internet (1hr Unblock)"
command_topic: "viewroad-commands/firewall/tempunblock-mollie-devices-1hr"
payload_press: "Unblocked"
icon: mdi:web
retain: false

View File

@@ -0,0 +1,45 @@
automation:
- id: publish_fridge_temps_drinks_fridge
alias: publish_fridge_temps_drinks_fridge
trigger:
- platform: state
entity_id: sensor.drinks_fridge_environment_lcd_btt01_temperature
not_to:
- "unavailable"
- "unknown"
action:
- service: mqtt.publish
data:
topic: "viewroad-status/fridges/drinks-fridge"
payload: "{{ trigger.to_state.state }}"
mode: single
- id: publish_freezer_temps_drinks_fridge
alias: pub_freezer_temps_drinks_fridge
trigger:
- platform: state
entity_id: sensor.drinks_freezer_environment_lcd_btt02_temperature
not_to:
- "unavailable"
- "unknown"
action:
- service: mqtt.publish
data:
topic: "viewroad-status/fridges/drinks-freezer"
payload: "{{ trigger.to_state.state }}"
mode: single
- id: publish_main_kitchen_fridge_temp_zth08
alias: publish_main_kitchen_fridge_temp_zth08
trigger:
- platform: state
entity_id: sensor.main_kitchen_fridge_temp_zth08
not_to:
- "unavailable"
- "unknown"
action:
- service: mqtt.publish
data:
topic: "viewroad-status/fridges/mainkitchen_fridge"
payload: "{{ trigger.to_state.state }}"
mode: single

View File

@@ -1,5 +1,5 @@
media_player:
# MPD Media Player on Lounge Touchscreen
- platform: mpd
host: !secret lounge_mpd_player
scan_interval: 1
#media_player:
# MPD Media Player on Lounge Touchscreen
# - platform: mpd
# host: !secret lounge_mpd_player
# scan_interval: 1

View File

@@ -0,0 +1,20 @@
input_text:
teams_status:
name: Microsoft Teams status
icon: mdi:microsoft-teams
teams_activity:
name: Microsoft Teams activity
icon: mdi:phone-off
sensor:
- platform: template
sensors:
teams_status:
friendly_name: "Microsoft Teams status"
value_template: "{{states('input_text.teams_status')}}"
icon_template: "{{state_attr('input_text.teams_status','icon')}}"
unique_id: sensor.teams_status
teams_activity:
friendly_name: "Microsoft Teams activity"
value_template: "{{states('input_text.teams_activity')}}"
unique_id: sensor.teams_activity

View File

@@ -0,0 +1,17 @@
automation:
- alias: Turn on pool light with downstairs lounge switch
trigger:
platform: state
entity_id: switch.tasmo_ks811t_0707_downstloun_2c
to: "on"
action:
service: homeassistant.turn_on
entity_id: switch.tasmo_athplug_5103_1
- alias: Turn off pool light with downstairs lounge switch
trigger:
platform: state
entity_id: switch.tasmo_ks811t_0707_downstloun_2c
to: "off"
action:
service: homeassistant.turn_off
entity_id: switch.tasmo_athplug_5103_1