database should now be good and shouldn't cause random restarts

some other minor tweask and renames to appease the watchman
This commit is contained in:
CeeWeasel
2026-02-10 09:26:10 -05:00
parent 6003d60774
commit 105fb7cf86
19 changed files with 87 additions and 50 deletions
+42 -27
View File
@@ -16,40 +16,55 @@ esphome:
name_add_mac_suffix: false
friendly_name: ${friendly_name}
api:
reboot_timeout: 15min
encryption:
key: !secret api-encryption-key
ota:
- platform: esphome
password: !secret ota-password
captive_portal:
button:
- id: !remove local_restart_button
sensor:
- id: !remove heap_free_sensor
- id: !remove loop_time_sensor
# forget all of this extending bullshit and implement this:
# https://www.home-assistant.io/integrations/universal/
switch:
- platform: template
name: "External Power Switch"
id: external_power_switch
turn_on_action:
- logger.log: "External Power Switch turned on"
- media_player.turn_on:
id: external_media_player
# - lambda: return;
turn_off_action:
- logger.log: "External Power Switch turned off"
- media_player.turn_off:
id: external_media_player
# - lambda: return;
# switch:
# - platform: template
# name: "External Power Switch"
# id: external_power_switch
# turn_on_action:
# - logger.log: "External Power Switch turned on"
# - media_player.turn_on:
# id: external_media_player
# # - lambda: return;
# turn_off_action:
# - logger.log: "External Power Switch turned off"
# - media_player.turn_off:
# id: external_media_player
# # - lambda: return;
media_player:
- id: !extend external_media_player
# media_player:
# - id: !extend external_media_player
# Define the actions Home Assistant will call
on_turn_on:
- logger.log: "Media Player Turned On via on_turn_on action"
# - lambda: |-
# // No action needed, Home Assistant can call this service
# return;
# # Define the actions Home Assistant will call
# on_turn_on:
# - logger.log: "Media Player Turned On via on_turn_on action"
# # - lambda: |-
# # // No action needed, Home Assistant can call this service
# # return;
on_turn_off:
- logger.log: "Media Player Turned Off via on_turn_off action"
# - lambda: |-
# // No action needed, Home Assistant can call this service
# return;
# on_turn_off:
# - logger.log: "Media Player Turned Off via on_turn_off action"
# # - lambda: |-
# # // No action needed, Home Assistant can call this service
# # return;