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