mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
trying new Imap sensor(s), switched to influxdb on the nas, and added steam sensors for the kids
This commit is contained in:
@@ -16,7 +16,7 @@ condition:
|
||||
|
||||
action:
|
||||
- action: input_boolean.turn_off
|
||||
data:
|
||||
target:
|
||||
entity_id: input_boolean.master_bedroom_asleep
|
||||
|
||||
- delay:
|
||||
@@ -26,9 +26,10 @@ action:
|
||||
milliseconds: 0
|
||||
|
||||
- action: media_player.volume_set
|
||||
data:
|
||||
target:
|
||||
#entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
entity_id: media_player.ma_bedroom_hub
|
||||
data:
|
||||
volume_level: 0.90
|
||||
|
||||
- action: input_select.select_option
|
||||
@@ -44,15 +45,14 @@ action:
|
||||
shuffle: true
|
||||
|
||||
- action: music_assistant.play_media
|
||||
target:
|
||||
#entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
entity_id: media_player.ma_bedroom_hub
|
||||
data:
|
||||
media_type: playlist
|
||||
media_id: library://playlist/32
|
||||
media_type: playlist
|
||||
enqueue: replace
|
||||
target:
|
||||
entity_id: media_player.ma_bedroom_hub
|
||||
#media_id: >
|
||||
# {% set playlists = ['library://playlist/32','library://playlist/9'] %}
|
||||
# {{ playlists|random }}
|
||||
enqueue: replace
|
||||
|
||||
#- action: script.wake_the_bedroom
|
||||
|
||||
@@ -40,12 +40,12 @@ template:
|
||||
Return-Path: "{{ trigger.event.data['headers'].get('Return-Path',['n/a'])[0] }}"
|
||||
Received-first: "{{ trigger.event.data['headers'].get('Received',['n/a'])[0] }}"
|
||||
Received-last: "{{ trigger.event.data['headers'].get('Received',['n/a'])[-1] }}"
|
||||
# - name: PNC Balance
|
||||
# default_entity_id: sensor.pnc_balance
|
||||
# unique_id: 741fc355-76da-4a14-8c31-8d9b94bd4376
|
||||
# availability: "{{ states('sensor.balance_alert_messages') not in ['unknown', 'unavailable'] }}"
|
||||
# state: >
|
||||
# {{ trigger.event.data["text"] | regex_findall_index("\ x7491:\* \$([0-9.]+)") }}
|
||||
- name: PNC Balance
|
||||
default_entity_id: sensor.pnc_balance
|
||||
unique_id: 741fc355-76da-4a14-8c31-8d9b94bd4376
|
||||
availability: "{{ states('sensor.imap_content') not in ['unknown', 'unavailable'] }}"
|
||||
state: >
|
||||
{{ trigger.event.data["text"] | regex_findall_index("\ x7491:\* \$([0-9.]+)") }}
|
||||
binary_sensor:
|
||||
- name: Low Balance
|
||||
device_class: problem
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
influxdb:
|
||||
# host: a0d7b954-influxdb
|
||||
# port: 8086
|
||||
# database: HomeAssistant
|
||||
# username: HoAssDBAdmin
|
||||
# password: yCQv5ZANWfqjWSc
|
||||
max_retries: 3
|
||||
default_measurement: state
|
||||
# default_measurement: state
|
||||
tags_attributes:
|
||||
- friendly_name
|
||||
tags:
|
||||
instance: prod
|
||||
source: hass
|
||||
include:
|
||||
domains:
|
||||
- sensor
|
||||
- sensor
|
||||
- binary_sensor
|
||||
entity_globs:
|
||||
- sensor.pm_*
|
||||
@@ -117,6 +117,10 @@ template:
|
||||
state: >-
|
||||
{% if state_attr('sensor.steam_76561197960668089', 'game') is not none%}
|
||||
{{ state_attr('sensor.steam_76561197960668089', 'game') }}
|
||||
{% elif state_attr('sensor.steam_steam_76561199812111605', 'game') is not none%}
|
||||
{{ state_attr('sensor.steam_steam_76561199812111605', 'game') }}
|
||||
{% elif state_attr('sensor.steam_steam_76561199876700621', 'game') is not none%}
|
||||
{{ state_attr('sensor.steam_steam_76561199876700621', 'game') }}
|
||||
{% else %}
|
||||
{{ states('sensor.steam_76561197960668089') }}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user