mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
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:
@@ -46,6 +46,7 @@ rtl_433/
|
|||||||
tts/
|
tts/
|
||||||
/lovelace/private
|
/lovelace/private
|
||||||
model_cache/
|
model_cache/
|
||||||
|
www/mail_and_packages/*
|
||||||
|
|
||||||
secrets.yaml
|
secrets.yaml
|
||||||
google_calendars.yaml
|
google_calendars.yaml
|
||||||
|
|||||||
@@ -34,16 +34,16 @@ action:
|
|||||||
above: 0
|
above: 0
|
||||||
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_clint', 'entity_id'))|list)|groupby('state'))['home']|count }}"
|
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_clint', 'entity_id'))|list)|groupby('state'))['home']|count }}"
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sensor.pixel_10_pro_wifi_connection
|
entity_id: sensor.pixel_10_pro_wi_fi_connection
|
||||||
state: "DreamWeaver"
|
state: "DreamWeaver"
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sensor.pixel_10_pro_wifi_connection
|
entity_id: sensor.pixel_10_pro_wi_fi_connection
|
||||||
state: "DreamIoT-2G"
|
state: "DreamIoT-2G"
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sensor.pixel_10_pro_wifi_connection
|
entity_id: sensor.pixel_10_pro_wi_fi_connection
|
||||||
state: "pozfam"
|
state: "pozfam"
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sensor.pixel_10_pro_wifi_connection
|
entity_id: sensor.pixel_10_pro_wi_fi_connection
|
||||||
state: "pozfam-2.4G"
|
state: "pozfam-2.4G"
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: "car_home"
|
id: "car_home"
|
||||||
|
|||||||
@@ -37,16 +37,22 @@ action:
|
|||||||
target:
|
target:
|
||||||
entity_id: input_select.master_bedroom_mode
|
entity_id: input_select.master_bedroom_mode
|
||||||
|
|
||||||
|
- action: media_player.shuffle_set
|
||||||
|
target:
|
||||||
|
entity_id: media_player.ma_bedroom_hub
|
||||||
|
data:
|
||||||
|
shuffle: true
|
||||||
|
|
||||||
- action: music_assistant.play_media
|
- action: music_assistant.play_media
|
||||||
target:
|
target:
|
||||||
#entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
#entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||||
entity_id: media_player.ma_bedroom_hub
|
entity_id: media_player.ma_bedroom_hub
|
||||||
data:
|
data:
|
||||||
media_type: playlist
|
media_type: playlist
|
||||||
#media_id: library://playlist/7
|
media_id: library://playlist/7
|
||||||
media_id: >
|
#media_id: >
|
||||||
{% set playlists = ['library://playlist/33','library://playlist/32','library://playlist/21','library://playlist/28','library://playlist/27','library://playlist/22','library://playlist/29','library://playlist/36','library://playlist/23','library://playlist/12','library://playlist/34','library://playlist/35','library://playlist/19'] %}
|
# {% set playlists = ['library://playlist/32','library://playlist/9'] %}
|
||||||
{{ playlists|random }}
|
# {{ playlists|random }}
|
||||||
enqueue: replace
|
enqueue: replace
|
||||||
|
|
||||||
- action: script.wake_the_bedroom
|
- action: script.wake_the_bedroom
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ recorder:
|
|||||||
- sensor.mail_updated
|
- sensor.mail_updated
|
||||||
- light.upstairs_public
|
- light.upstairs_public
|
||||||
- sensor.nws_alerts_last_updated
|
- sensor.nws_alerts_last_updated
|
||||||
|
- sensor.pixel_7_active_notification_count
|
||||||
- sensor.pixel_10_pro_active_notification_count
|
- sensor.pixel_10_pro_active_notification_count
|
||||||
entity_globs:
|
entity_globs:
|
||||||
- sensor.*_text
|
- sensor.*_text
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
lovelace:
|
lovelace:
|
||||||
mode: yaml
|
resource_mode: yaml
|
||||||
resources: !include ../../lovelace/resources.yaml
|
resources: !include ../../lovelace/resources.yaml
|
||||||
dashboards:
|
dashboards:
|
||||||
lovelace-yaml:
|
lovelace-yaml:
|
||||||
@@ -7,7 +7,7 @@ lovelace:
|
|||||||
title: Daddy's House
|
title: Daddy's House
|
||||||
icon: mdi:home
|
icon: mdi:home
|
||||||
show_in_sidebar: true
|
show_in_sidebar: true
|
||||||
filename: ui-lovelace.yaml
|
filename: ui-cleverhome.yaml
|
||||||
data-yml:
|
data-yml:
|
||||||
mode: yaml
|
mode: yaml
|
||||||
title: Data
|
title: Data
|
||||||
@@ -37,7 +37,7 @@ lovelace:
|
|||||||
title: Casting
|
title: Casting
|
||||||
icon: mdi:cast
|
icon: mdi:cast
|
||||||
show_in_sidebar: false
|
show_in_sidebar: false
|
||||||
filename: ui-cast.yaml
|
filename: ui-casting.yaml
|
||||||
details-yml:
|
details-yml:
|
||||||
mode: yaml
|
mode: yaml
|
||||||
title: Details
|
title: Details
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ template:
|
|||||||
- unique_id: templatebinarysensor.pixel_10_pro_connected_to_traverse
|
- unique_id: templatebinarysensor.pixel_10_pro_connected_to_traverse
|
||||||
default_entity_id: binary_sensor.pixel_10_pro_connected_to_traverse
|
default_entity_id: binary_sensor.pixel_10_pro_connected_to_traverse
|
||||||
icon: mdi:cellphone-key
|
icon: mdi:cellphone-key
|
||||||
name: Pixel 7 Connected to Traverse
|
name: Pixel 10 Connected to Traverse
|
||||||
state: "{{ '30:C3:D9:B0:CA:E4 (Chevrolet MyLink)' in state_attr('sensor.pixel_10_pro_bluetooth_connection','connected_paired_devices') }}"
|
state: "{{ '30:C3:D9:B0:CA:E4 (Chevrolet MyLink)' in state_attr('sensor.pixel_10_pro_bluetooth_connection','connected_paired_devices') }}"
|
||||||
|
|
||||||
- unique_id: templatebinarysensor.humidity_too_low
|
- unique_id: templatebinarysensor.humidity_too_low
|
||||||
|
|||||||
@@ -16,40 +16,55 @@ esphome:
|
|||||||
name_add_mac_suffix: false
|
name_add_mac_suffix: false
|
||||||
friendly_name: ${friendly_name}
|
friendly_name: ${friendly_name}
|
||||||
|
|
||||||
|
api:
|
||||||
|
reboot_timeout: 15min
|
||||||
|
encryption:
|
||||||
|
key: !secret api-encryption-key
|
||||||
|
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
password: !secret ota-password
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
|
|
||||||
button:
|
button:
|
||||||
- id: !remove local_restart_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:
|
# forget all of this extending bullshit and implement this:
|
||||||
# https://www.home-assistant.io/integrations/universal/
|
# https://www.home-assistant.io/integrations/universal/
|
||||||
|
|
||||||
switch:
|
# switch:
|
||||||
- platform: template
|
# - platform: template
|
||||||
name: "External Power Switch"
|
# name: "External Power Switch"
|
||||||
id: external_power_switch
|
# id: external_power_switch
|
||||||
turn_on_action:
|
# turn_on_action:
|
||||||
- logger.log: "External Power Switch turned on"
|
# - logger.log: "External Power Switch turned on"
|
||||||
- media_player.turn_on:
|
# - media_player.turn_on:
|
||||||
id: external_media_player
|
# id: external_media_player
|
||||||
# - lambda: return;
|
# # - lambda: return;
|
||||||
turn_off_action:
|
# turn_off_action:
|
||||||
- logger.log: "External Power Switch turned off"
|
# - logger.log: "External Power Switch turned off"
|
||||||
- media_player.turn_off:
|
# - media_player.turn_off:
|
||||||
id: external_media_player
|
# id: external_media_player
|
||||||
# - lambda: return;
|
# # - lambda: return;
|
||||||
|
|
||||||
media_player:
|
# media_player:
|
||||||
- id: !extend external_media_player
|
# - id: !extend external_media_player
|
||||||
|
|
||||||
# Define the actions Home Assistant will call
|
# # Define the actions Home Assistant will call
|
||||||
on_turn_on:
|
# on_turn_on:
|
||||||
- logger.log: "Media Player Turned On via on_turn_on action"
|
# - logger.log: "Media Player Turned On via on_turn_on action"
|
||||||
# - lambda: |-
|
# # - lambda: |-
|
||||||
# // No action needed, Home Assistant can call this service
|
# # // No action needed, Home Assistant can call this service
|
||||||
# return;
|
# # return;
|
||||||
|
|
||||||
on_turn_off:
|
# on_turn_off:
|
||||||
- logger.log: "Media Player Turned Off via on_turn_off action"
|
# - logger.log: "Media Player Turned Off via on_turn_off action"
|
||||||
# - lambda: |-
|
# # - lambda: |-
|
||||||
# // No action needed, Home Assistant can call this service
|
# # // No action needed, Home Assistant can call this service
|
||||||
# return;
|
# # return;
|
||||||
@@ -9,8 +9,10 @@ cards:
|
|||||||
- type: entities
|
- type: entities
|
||||||
title: Smart Devices
|
title: Smart Devices
|
||||||
entities:
|
entities:
|
||||||
|
- entity: sensor.pixel_10_pro_battery_level
|
||||||
|
name: Pixel 10 Pro
|
||||||
- entity: sensor.pixel_7_battery_level
|
- entity: sensor.pixel_7_battery_level
|
||||||
name: Clint's Phone
|
name: Pixel 7
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Ecowitt Batteries
|
title: Ecowitt Batteries
|
||||||
entities:
|
entities:
|
||||||
|
|||||||
@@ -26,3 +26,15 @@ cards:
|
|||||||
- entity: sensor.pixel_10_pro_charger_type
|
- entity: sensor.pixel_10_pro_charger_type
|
||||||
- entity: binary_sensor.pixel_10_pro_android_auto
|
- entity: binary_sensor.pixel_10_pro_android_auto
|
||||||
title: Phone
|
title: Phone
|
||||||
|
header:
|
||||||
|
type: buttons
|
||||||
|
entities:
|
||||||
|
- entity: script.pixel_7_to_silent
|
||||||
|
icon: mdi:volume-mute
|
||||||
|
name: Silent
|
||||||
|
- entity: script.pixel_7_to_vibrate
|
||||||
|
icon: mdi:vibrate
|
||||||
|
name: Vibrate
|
||||||
|
- entity: script.pixel_10_to_normal_mode
|
||||||
|
icon: mdi:phone-ring
|
||||||
|
name: Normal
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ sections:
|
|||||||
cards:
|
cards:
|
||||||
- type: markdown
|
- type: markdown
|
||||||
content: >-
|
content: >-
|
||||||
<h2> Missing Services: {{ states.sensor.watchman_missing_services.state }}</h2>
|
<h2> Missing Actions: {{ states.sensor.watchman_missing_actions.state }}</h2>
|
||||||
{%- for item in state_attr("sensor.watchman_missing_services","entities") %}
|
{%- for item in state_attr("sensor.watchman_missing_actions","entities") %}
|
||||||
<hr><table><tr><td><ha-icon icon='mdi:cloud-alert'></ha-icon> {{item.id }}
|
<hr><table><tr><td><ha-icon icon='mdi:cloud-alert'></ha-icon> {{item.id }}
|
||||||
<a title="{{item.occurrences}}">{{item.occurrences.split('/')[-1].split(':')[0]}}
|
<a title="{{item.occurrences}}">{{item.occurrences.split('/')[-1].split(':')[0]}}
|
||||||
</a></td></tr></table>
|
</a></td></tr></table>
|
||||||
@@ -59,7 +59,7 @@ badges:
|
|||||||
show_name: true
|
show_name: true
|
||||||
show_state: true
|
show_state: true
|
||||||
show_icon: true
|
show_icon: true
|
||||||
entity: sensor.watchman_missing_services
|
entity: sensor.watchman_missing_actions
|
||||||
name: Missing Services
|
name: Missing Actions
|
||||||
tap_action:
|
tap_action:
|
||||||
action: none
|
action: none
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ elements:
|
|||||||
# left: 76%
|
# left: 76%
|
||||||
# top: 9%
|
# top: 9%
|
||||||
- type: state-icon
|
- type: state-icon
|
||||||
entity: binary_sensor.master_bathroom_too_humid
|
entity: binary_sensor.bathroom_multisensor_too_humid
|
||||||
style:
|
style:
|
||||||
left: 76%
|
left: 76%
|
||||||
top: 9%
|
top: 9%
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ elements:
|
|||||||
# left: 76%
|
# left: 76%
|
||||||
# top: 9%
|
# top: 9%
|
||||||
- type: state-icon
|
- type: state-icon
|
||||||
entity: binary_sensor.utility_room_too_humid
|
entity: binary_sensor.utility_room_multisensor_too_humid
|
||||||
style:
|
style:
|
||||||
left: 76%
|
left: 76%
|
||||||
top: 9%
|
top: 9%
|
||||||
|
|||||||
@@ -386,7 +386,7 @@ cards:
|
|||||||
var temp = parseFloat(entity.state.replace("°", ""));
|
var temp = parseFloat(entity.state.replace("°", ""));
|
||||||
if (temp < 58)
|
if (temp < 58)
|
||||||
return "temp-freeze";
|
return "temp-freeze";
|
||||||
else if (temp < 64)
|
else if (temp < 68)
|
||||||
return "temp-low";
|
return "temp-low";
|
||||||
else if (temp < 75)
|
else if (temp < 75)
|
||||||
return "temp-medium";
|
return "temp-medium";
|
||||||
|
|||||||
@@ -447,13 +447,13 @@ badges:
|
|||||||
|
|
||||||
- type: conditional
|
- type: conditional
|
||||||
conditions:
|
conditions:
|
||||||
- entity: sensor.watchman_missing_services
|
- entity: sensor.watchman_missing_actions
|
||||||
state_not: unavailable
|
state_not: unavailable
|
||||||
- entity: sensor.watchman_missing_services
|
- entity: sensor.watchman_missing_actions
|
||||||
state_not: "0"
|
state_not: "0"
|
||||||
chip:
|
chip:
|
||||||
type: entity
|
type: entity
|
||||||
entity: sensor.watchman_missing_services
|
entity: sensor.watchman_missing_actions
|
||||||
tap_action:
|
tap_action:
|
||||||
action: navigate
|
action: navigate
|
||||||
navigation_path: /details-yml/watchman
|
navigation_path: /details-yml/watchman
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 63 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB |
Reference in New Issue
Block a user