Compare commits

...

133 Commits

Author SHA1 Message Date
65309bfa39 Merge branch 'weatheralerts_migration' into dev 2026-04-03 05:21:16 -04:00
8ea1d4ca2b Several necessary changes for the new WeatherAlerts integration 2026-04-03 05:20:18 -04:00
9f6f35c848 Update .HA_VERSION 2026-04-03 05:18:44 -04:00
25fe4bef13 Add tornado warnings to long-term databases 2026-04-01 02:47:15 -04:00
ea1985cf91 Trigger lightning warning if Tempest binary sensor shows lightning 2026-04-01 02:46:48 -04:00
cdfbb6023b Add bedtime reminder for E 2026-03-29 22:56:20 -04:00
6157abce18 Fix bubble card modules to use the correct accent color variable 2026-03-29 22:55:54 -04:00
379de46d05 Update .gitignore 2026-03-29 22:55:31 -04:00
f6c2f99b11 Update .HA_VERSION 2026-03-29 22:55:09 -04:00
f4e809317b Merge branch 'temp_fixes' into dev 2026-03-20 23:06:46 -04:00
71c4affd3c Revert Weatherflow fixes as integration appears to work now 2026-03-20 22:50:13 -04:00
eef92467de Temp disable animated_scenes 2026-03-20 22:50:12 -04:00
eab0a507b7 Temp fixes until Weatherflow Forecast integration is fixed 2026-03-20 22:50:06 -04:00
979e253ff0 Turn recorder on after reboot, if it was off 2026-03-20 22:48:24 -04:00
3aa5a1a462 Ensure only heat or AC can be active at the same time in E's bedroom 2026-03-20 22:48:11 -04:00
fc9bcc9db6 Add alert for when windows are open and it gets too hot or cold outside 2026-03-20 22:47:43 -04:00
57023115f1 Replace binary windows open sensor with proper template 2026-03-20 22:46:23 -04:00
faeeb64696 Update .HA_VERSION 2026-03-20 22:45:26 -04:00
cc2f328dec Move response time sensors from recorder to InfluxDB/Prometheus 2026-03-12 13:56:59 -04:00
8e8430cba0 Remove some noisy sensors from recorder 2026-03-12 13:56:28 -04:00
7f91e3ed04 Remove parts of InfluxDB config that have moved to UI 2026-03-09 02:05:10 -04:00
802fb39608 Update .HA_VERSION 2026-03-07 01:48:50 -05:00
9bc654bc70 Fix incorrect entities in history stat sensors for E's aircon 2026-03-06 06:18:17 -05:00
6e9e35a6a4 Fix wrong entity used for E's scheduled climate mode in nightly briefing 2026-03-06 05:45:11 -05:00
bf094bf56a Update .gitignore 2026-03-05 02:17:07 -05:00
f614b3965f Update .HA_VERSION 2026-03-05 02:16:40 -05:00
2c8e062666 Update .HA_VERSION 2026-03-04 05:51:08 -05:00
5dd003e994 Don't reset basement briefing if I'm still down here 2026-02-24 03:28:59 -05:00
6cf0b6daee Temp solution for #260 2026-02-24 03:15:33 -05:00
6b2747c518 Add proper opponent collisions to inhibit sensors for college hockey 2026-02-23 01:57:23 -05:00
b3f8df03d4 Rewrite rainbow lights script to also support the basement 2026-02-23 01:56:55 -05:00
e51143f2ba Recorder toggle automation 2026-02-23 01:56:30 -05:00
d245b90092 Update .HA_VERSION 2026-02-23 01:55:35 -05:00
aad02f646b Updated readme 2026-02-01 19:32:40 -05:00
5e9d0efdca Reorder apparent temperature entity priority for INWS 2026-02-01 19:32:07 -05:00
4fa09ba107 Make hot/cold thresholds configurable 2026-02-01 18:39:53 -05:00
8e3a98a30a Update .HA_VERSION 2026-02-01 18:39:36 -05:00
9bdaabcb7d Update .HA_VERSION 2026-01-22 01:03:21 -05:00
9cb977feba Fix Xia desktop idle sensor 2026-01-16 17:12:33 -05:00
c850ac65d2 Fix PC notify groups 2026-01-16 17:12:14 -05:00
5562d1dbc3 Move wife's PC from IOTLink to HASS.Agent 2026-01-16 17:11:53 -05:00
c83cb58534 Remove IOTLink commands for my desktop 2026-01-16 17:11:38 -05:00
e4a4fff6ec Update .HA_VERSION 2026-01-16 17:10:53 -05:00
877d339a90 Merge branch 'tony_pc_mqtt' into dev 2025-12-28 03:34:44 -05:00
e222337fa1 Remove manual MQTT sensors, add templates, remove iotlink from filename 2025-12-28 03:24:16 -05:00
2721bd6659 Update idle sensor to utilize new macro and sensors 2025-12-28 01:14:14 -05:00
f264412639 Desktop notifications for Tony's meds 2025-12-28 01:12:59 -05:00
6cddca76f7 time_diff macro 2025-12-28 01:12:42 -05:00
f57c41868e Facilitate PC notifications via HASS.Agent 2025-12-28 01:12:00 -05:00
d091cadacf Adjustments for new Todoist API 2025-12-23 22:16:21 -05:00
92adc64d72 AdGuard sensors excluded from recorder and added to Influx/Prometheus 2025-12-23 22:16:02 -05:00
259757a537 Update .HA_VERSION 2025-12-23 22:12:54 -05:00
d0d8d0477f Migrate to new core integration for Uptime Kuma
#257
2025-12-23 22:11:38 -05:00
ac6f7978be Updated readme
#257
2025-12-16 21:28:29 -05:00
28e3b93441 Updated readme 2025-12-16 19:23:28 -05:00
bdca4c702a Remove battery notes from config as it's all UI-based now 2025-12-15 21:19:08 -05:00
4b57efcd74 Add extra_module_url for card-mod 2025-12-15 19:32:30 -05:00
7255422ca1 Fix E's white noise not turning on at bedtime
#256
2025-12-15 19:32:29 -05:00
5ae5e5021e Integrate E's bedroom heater with existing automations and scheduling
#256
2025-12-13 20:16:31 -05:00
bd9c7190ed Update weather templates to current syntax 2025-12-13 18:25:58 -05:00
f176e3b867 Update .HA_VERSION 2025-12-13 18:13:02 -05:00
1b52cc31a8 Update .HA_VERSION 2025-12-09 20:16:17 -05:00
8993196366 Add college hockey teams to sports tracking #255 2025-12-09 20:16:00 -05:00
210434e4ad Prevent trying to report team record when it is not provided 2025-12-09 20:15:39 -05:00
e37ac9d504 Re-enable K's night meds tracker 2025-12-09 20:13:57 -05:00
bf19984b47 Fix recliner mode not marking basement as occupied 2025-11-28 00:47:23 -05:00
4634b66866 Change deprecated Powercalc config 2025-11-26 20:27:16 -05:00
001dcbe625 Update .HA_VERSION 2025-11-26 20:26:34 -05:00
f70be6ceee Update .HA_VERSION 2025-11-10 22:38:58 -05:00
265e129c06 Try to fix weird changing of climate modes in E's bedroom 2025-10-30 18:14:02 -04:00
00bea40b6b Update .HA_VERSION 2025-10-30 18:13:22 -04:00
f94bce3381 Update .HA_VERSION 2025-10-18 00:21:58 -04:00
2de7d82e20 Sensors to indicate health of media server items 2025-10-03 19:29:28 -04:00
83c3c10a5a Add structured output to AI med notification prompts 2025-10-03 19:29:07 -04:00
f7ac1b915b Update .HA_VERSION 2025-10-03 19:28:27 -04:00
1d3398752e Fix deprecated Google AI calls 2025-10-03 02:59:00 -04:00
837ed779c9 Add reminder booleans for other med trackers 2025-10-02 19:10:00 -04:00
bc3a58875d Fix typo in lighting_fx 2025-10-02 18:24:17 -04:00
3c018a922b Remove old gas sensors from configs 2025-10-02 18:24:05 -04:00
10188d553a Update .HA_VERSION and .gitignore 2025-10-02 18:20:39 -04:00
341200deb0 Disable K night meds as currently unneeded 2025-09-23 18:34:58 -04:00
b930cb28b5 Update .HA_VERSION 2025-09-23 18:34:24 -04:00
c31158448c Update .gitignore 2025-09-16 02:10:39 -04:00
9e9c1fcf11 Update .HA_VERSION 2025-09-16 02:09:23 -04:00
02e3252e62 Update .HA_VERSION 2025-09-11 04:36:21 -04:00
32907081c6 Add input numbers for AC auto mode switching 2025-09-02 02:40:36 -04:00
67931ccfcd Update school lunch menu 2025-09-02 02:40:09 -04:00
c5d1b14ac9 Add reminder count to AI prompt for med reminders 2025-09-02 02:39:34 -04:00
3ed56ff745 Fix some nighttime lighting weirdness on the second floor 2025-08-26 02:07:05 -04:00
eb9cc4c42d Update sensor light blueprint 2025-08-26 02:06:27 -04:00
df020c92c1 Update .HA_VERSION 2025-08-26 02:01:46 -04:00
b97838a13f Fix formatting in custom weather package templates 2025-08-16 18:20:28 -04:00
9678ccd2a3 Attempting to figure out the cause of #251 2025-08-16 18:20:07 -04:00
13ef9c58f8 Fix indentation on clothing forecast template 2025-08-16 18:18:05 -04:00
1ea19c317c Update .HA_VERSION 2025-08-16 17:25:37 -04:00
a89963f9f0 Update .HA_VERSION 2025-08-11 19:14:44 -04:00
993a65529b Update .HA_VERSION 2025-07-30 21:30:36 -04:00
a11bb624db Remove obsolete template sensors for min/avg/max pings 2025-07-30 03:21:10 -04:00
131ffcd05f Stop new ping sensors from flooding the database 2025-07-30 03:20:51 -04:00
4ac9247852 Add specific SPC risk sensors for dashboard purposes 2025-07-27 06:32:27 -04:00
52d651fcaa Fix not being a tornado possible sensor like there was supposed to be 2025-07-27 06:32:04 -04:00
96244550de Update .HA_VERSION 2025-07-27 06:31:31 -04:00
5f2b840899 Add styling to icons in state color button module 2025-07-17 22:37:16 -04:00
f08d1452f2 Update .HA_VERSION 2025-07-16 22:29:01 -04:00
034419f954 Turn off wife's night meds when she gets to work #243 2025-07-13 21:43:36 -04:00
f5953d23e6 Remove Main Button State Red as no longer used 2025-07-13 21:42:01 -04:00
473526390e Updated readme 2025-07-09 17:01:02 -04:00
a5a9d081d2 Early stages of a rotating icon module 2025-07-08 06:52:34 -04:00
0f25ce6f6a State Color Button module 2025-07-08 03:56:47 -04:00
eced9a763e Update .gitignore 2025-07-07 22:25:16 -04:00
5331c0d08a Popup timer bubble card module 2025-07-07 21:57:54 -04:00
c9e4a11604 Fix VSCode throwing a fit about no backticks 2025-07-07 21:32:42 -04:00
d55ad66264 Restructure bubble card modules folder 2025-07-07 20:57:47 -04:00
d56d899588 More bubble card modules 2025-07-07 18:23:26 -04:00
6afb3b7cb7 Main button state red now applies styles directly to DOM elements 2025-07-07 17:31:56 -04:00
e2ea214832 New modules I wrote for bubble cards 2025-07-07 05:06:06 -04:00
b1543676d5 Experimenting with trend sensor for local average gas price trends 2025-07-07 05:05:49 -04:00
bc45d6b7fd Update .HA_VERSION 2025-07-07 05:05:11 -04:00
1a706153a8 Fix handling of MLB rain delays, close #252 2025-06-26 17:27:26 -04:00
95b2c8cfc5 Update .HA_VERSION 2025-06-26 17:27:02 -04:00
61b04c05c6 Update time macros 2025-06-15 18:13:55 -04:00
41141e94df Add entity to denote ongoing server maintenance 2025-06-15 17:44:07 -04:00
cc9ec0b211 Update .HA_VERSION 2025-06-15 17:43:46 -04:00
adf881a106 Adjust scheduling to help K's room when it's hot upstairs 2025-06-13 20:09:52 -04:00
6ee298a3d2 Update .HA_VERSION 2025-06-13 20:09:35 -04:00
aa6358ce19 Merge branch 'sunset-rework' into dev 2025-05-29 17:32:50 -04:00
abe62888b2 Add outdoor lux threshold and triggered boolean for sunset lights
home_automation/HA-NerdFlows#32
2025-05-27 21:26:24 -04:00
0cabab0462 Adjustments to Recliner Mode 2025-05-26 00:01:21 -04:00
034cf2f972 Adaptive lighting should reset after tornado warnings #229 2025-05-25 19:22:25 -04:00
1d246e8018 Use locally calculated SLP in template weather provider 2025-05-24 20:17:12 -04:00
5cffb7208f Add rain intensity awareness to weather briefings
#247
2025-05-23 20:57:04 -04:00
a7b1a53754 Fix storm warning code I apparently wrote in my sleep... 2025-05-23 20:56:40 -04:00
de5efd39b4 Update .HA_VERSION 2025-05-23 20:56:02 -04:00
59 changed files with 4151 additions and 3508 deletions

View File

@@ -1 +1 @@
2025.5.2 2026.4.0

5
.gitignore vendored
View File

@@ -4,6 +4,7 @@
/.google.token /.google.token
/.ssh /.ssh
/.codegpt /.codegpt
/.cache
# ignore some directories. # ignore some directories.
/www/* /www/*
@@ -20,6 +21,9 @@
/glances/ /glances/
/downloads/ /downloads/
/lightwand/ /lightwand/
/bubble/Scratchpad/
/custom_icons
/bubble_card
# ignore any of these files no matter where they are using double * # ignore any of these files no matter where they are using double *
**.DS_Store **.DS_Store
@@ -66,6 +70,7 @@
**jsconfig* **jsconfig*
.markdownlint.json .markdownlint.json
**test.jinja **test.jinja
**.ha_run.lock
# exceptions # exceptions
!/www/bubble/ !/www/bubble/

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
blueprint: blueprint:
name: Sensor Light name: Sensor Light
description: "# \U0001F4A1 Sensor Light\n**Version: 8.1**\n\nYour lighting experience, description: "# \U0001F4A1 Sensor Light\n**Version: 8.3**\n\nYour lighting experience,
your way - take control and customize it to perfection! \U0001F4A1✨\n\n**If you your way - take control and customize it to perfection! \U0001F4A1✨\n\n**If you
like my blueprints, and would like to show your support or just say thank you?** like my blueprints, and would like to show your support or just say thank you?**
[Click Here](https://www.paypal.com/donate/?hosted_button_id=WAZS3QSDTPGA8) \U0001F642\n\n<details> [Click Here](https://www.paypal.com/donate/?hosted_button_id=WAZS3QSDTPGA8) \U0001F642\n\n<details>
@@ -27,17 +27,19 @@ blueprint:
Light Sensing Options:**\n - Set up an Ambient Light Sensor for activation Light Sensing Options:**\n - Set up an Ambient Light Sensor for activation
in low-light conditions, customizable with specified LUX values.\n\n - **Time-Based in low-light conditions, customizable with specified LUX values.\n\n - **Time-Based
Options:**\n - Specify precise start and end times along with weekday selections Options:**\n - Specify precise start and end times along with weekday selections
to define when the automation should run.\n\n - **Device Tracker Options:**\n to define when the automation can run.\n\n - **State Control Option:**\n -
\ - Utilize \"Device Tracker\" to activate automation when home or within specified Allows the automation to run when the entity is in its selected activation state
zones, preventing unnecessary activations. This feature is particularly useful (ON or OFF).\n\n - **Device Tracker Options:**\n - Utilize \"Device Tracker\"
to prevent unnecessary lighting activations when pets trigger sensors while no to activate automation when home or within specified zones, preventing unnecessary
one is home.\n\n - **Night Lights Mode:**\n - Enable \"Night Lights\" for activations. This feature is particularly useful to prevent unnecessary lighting
softer illumination during night time activities, automatically enabled based activations when pets trigger sensors while no one is home.\n\n - **Night Lights
on conditions.\n - Opt to use \"Night Glow\". This feature activates a low-level Mode:**\n - Enable \"Night Lights\" for softer illumination during night time
light when no trigger is detected, creating a subtle ambient glow perfect for activities, automatically enabled based on conditions.\n - Opt to use \"Night
nighttime use.\n\n - **HA Restart Safeguards:**\n - Benefit from built-in Glow\". This feature activates a low-level light when no trigger is detected,
safeguards for Home Assistant restarts.\n\n - **Blueprint Add-On Integration:**\n creating a subtle ambient glow perfect for nighttime use.\n\n - **HA Restart
\ - Sensor Light Add-On - Enhances media control automation. [Click Here](https://community.home-assistant.io/t/591824) Safeguards:**\n - Benefit from built-in safeguards for Home Assistant restarts.\n\n
\ - **Blueprint Add-On Integration:**\n - Sensor Light Add-On - Enhances media
control automation. [Click Here](https://community.home-assistant.io/t/591824)
to learn more.\n - Bathroom Humidity Exhaust Fan - Keeps the lights ON when to learn more.\n - Bathroom Humidity Exhaust Fan - Keeps the lights ON when
showering. [Click Here](https://community.home-assistant.io/t/509992) to learn showering. [Click Here](https://community.home-assistant.io/t/509992) to learn
more.\n</details>\n\nNeed help?\n- The Settings & Best Practice Guidelines: [Click more.\n</details>\n\nNeed help?\n- The Settings & Best Practice Guidelines: [Click
@@ -75,6 +77,7 @@ blueprint:
- binary_sensor - binary_sensor
- schedule - schedule
multiple: true multiple: true
reorder: false
lights_settings: lights_settings:
name: Lights * name: Lights *
icon: mdi:lightbulb-outline icon: mdi:lightbulb-outline
@@ -118,6 +121,7 @@ blueprint:
- domain: - domain:
- input_boolean - input_boolean
multiple: false multiple: false
reorder: false
end_scenes: end_scenes:
name: Scenes - Scripts To Turn OFF name: Scenes - Scripts To Turn OFF
description: 'If you have selected a scene or a script to be turned ON above description: 'If you have selected a scene or a script to be turned ON above
@@ -134,6 +138,7 @@ blueprint:
- domain: - domain:
- scene - scene
- script - script
reorder: false
time_delay: time_delay:
name: Time Delay name: Time Delay
description: 'The time delay determines how long the lights, switches, scenes, description: 'The time delay determines how long the lights, switches, scenes,
@@ -171,8 +176,8 @@ blueprint:
value: use_brightness value: use_brightness
- label: Use Transition - label: Use Transition
value: use_transition value: use_transition
custom_value: false
sort: false sort: false
custom_value: false
light_brightness: light_brightness:
name: Brightness name: Brightness
description: 'The brightness setting for the lights when they are turned description: 'The brightness setting for the lights when they are turned
@@ -237,9 +242,9 @@ blueprint:
value: use_rgbww_colour value: use_rgbww_colour
- label: Disable Colour Control - label: Disable Colour Control
value: disable_colour_control value: disable_colour_control
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
light_colour_temperature: light_colour_temperature:
name: Colour Temperature name: Colour Temperature
description: 'The colour temperature setting for the lights when they are description: 'The colour temperature setting for the lights when they are
@@ -357,9 +362,9 @@ blueprint:
value: enable_time_controled_brightness_inv value: enable_time_controled_brightness_inv
- label: 13 - Time Controlled - Colour Temp + Brightness - label: 13 - Time Controlled - Colour Temp + Brightness
value: enable_time_controled_colour_brightness value: enable_time_controled_colour_brightness
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
dynamic_lighting_lux_sensor: dynamic_lighting_lux_sensor:
name: Dynamic Lighting - Ambient Light Sensor name: Dynamic Lighting - Ambient Light Sensor
description: '**Used in options 1, 2, 8 or 9** - Enter the specific ambient description: '**Used in options 1, 2, 8 or 9** - Enter the specific ambient
@@ -375,6 +380,7 @@ blueprint:
device_class: device_class:
- illuminance - illuminance
multiple: false multiple: false
reorder: false
dynamic_lighting_max_lux: dynamic_lighting_max_lux:
name: Dynamic Lighting - Max Lux Value name: Dynamic Lighting - Max Lux Value
description: '**Used in options 1, 2, 8 or 9** - Specify the maximum lux description: '**Used in options 1, 2, 8 or 9** - Specify the maximum lux
@@ -459,6 +465,7 @@ blueprint:
- domain: - domain:
- input_boolean - input_boolean
multiple: false multiple: false
reorder: false
dynamic_lighting_max_colour_temp: dynamic_lighting_max_colour_temp:
name: Dynamic Lighting - Max Colour Temperature name: Dynamic Lighting - Max Colour Temperature
description: '**Used in options 3, 6, 7, 8, 9, 10 or 13** - Specify the description: '**Used in options 3, 6, 7, 8, 9, 10 or 13** - Specify the
@@ -679,9 +686,9 @@ blueprint:
value: enable_state_control value: enable_state_control
- label: Disable State Control Option - label: Disable State Control Option
value: disable_state_control value: disable_state_control
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
dynamic_lighting_state_control_activation_state: dynamic_lighting_state_control_activation_state:
name: Dynamic Lighting - State Control Activation State name: Dynamic Lighting - State Control Activation State
description: 'Select the state the entity must be in to activate dynamic description: 'Select the state the entity must be in to activate dynamic
@@ -698,9 +705,9 @@ blueprint:
value: 'on' value: 'on'
- label: OFF State - label: OFF State
value: 'off' value: 'off'
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
dynamic_lighting_state_control_entity: dynamic_lighting_state_control_entity:
name: Dynamic Lighting - State Control Entity name: Dynamic Lighting - State Control Entity
description: 'If the state control option above is enabled, select the entity description: 'If the state control option above is enabled, select the entity
@@ -734,8 +741,8 @@ blueprint:
- label: 3 - Enable the Bypass - Keep the Lights Current State - label: 3 - Enable the Bypass - Keep the Lights Current State
value: bypass_enabled_stop value: bypass_enabled_stop
multiple: true multiple: true
custom_value: false
sort: false sort: false
custom_value: false
motion_bypass_lights_on: motion_bypass_lights_on:
name: Bypass Switch - Turn the Lights ON name: Bypass Switch - Turn the Lights ON
description: 'Select the switches that will turn your lights ON, bypass description: 'Select the switches that will turn your lights ON, bypass
@@ -748,6 +755,7 @@ blueprint:
selector: selector:
entity: entity:
multiple: true multiple: true
reorder: false
motion_bypass_lights_off: motion_bypass_lights_off:
name: Bypass Switch - Turn the Lights OFF name: Bypass Switch - Turn the Lights OFF
description: 'Select the switches that will turn your lights OFF, bypass description: 'Select the switches that will turn your lights OFF, bypass
@@ -760,6 +768,7 @@ blueprint:
selector: selector:
entity: entity:
multiple: true multiple: true
reorder: false
motion_bypass_lights_stop: motion_bypass_lights_stop:
name: Bypass Switch - Keep the Lights Current State name: Bypass Switch - Keep the Lights Current State
description: 'Select the switches that will keep your lights current state, description: 'Select the switches that will keep your lights current state,
@@ -772,6 +781,7 @@ blueprint:
selector: selector:
entity: entity:
multiple: true multiple: true
reorder: false
bypass_time_delay: bypass_time_delay:
name: Bypass - Time Delay name: Bypass - Time Delay
description: "This is only used in two specific bypass scenarios when your description: "This is only used in two specific bypass scenarios when your
@@ -807,8 +817,8 @@ blueprint:
State State
value: bypass_auto_off_enabled_stop value: bypass_auto_off_enabled_stop
multiple: true multiple: true
custom_value: false
sort: false sort: false
custom_value: false
bypass_auto_off_delay: bypass_auto_off_delay:
name: Bypass Auto OFF - Time Delay name: Bypass Auto OFF - Time Delay
description: 'Set the bypass auto OFF time delay. The time delay starts description: 'Set the bypass auto OFF time delay. The time delay starts
@@ -848,9 +858,9 @@ blueprint:
value: sun_enabled value: sun_enabled
- label: Disable the sun option - label: Disable the sun option
value: sun_disabled value: sun_disabled
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
sun_elevation: sun_elevation:
name: Sun Elevation Falling name: Sun Elevation Falling
description: 'The sun elevation falling refers to the angle between the description: 'The sun elevation falling refers to the angle between the
@@ -906,9 +916,9 @@ blueprint:
value: ambient_enabled value: ambient_enabled
- label: Disable the ambient options - label: Disable the ambient options
value: ambient_disabled value: ambient_disabled
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
ambient_light_sensor: ambient_light_sensor:
name: Ambient Light Sensor name: Ambient Light Sensor
description: 'Select the ambient sensor to be used. description: 'Select the ambient sensor to be used.
@@ -923,6 +933,7 @@ blueprint:
device_class: device_class:
- illuminance - illuminance
multiple: false multiple: false
reorder: false
ambient_light_options: ambient_light_options:
name: Ambient Light Sensor - Site Conditions name: Ambient Light Sensor - Site Conditions
description: 'In some cases when your lights turn ON, your ambient light description: 'In some cases when your lights turn ON, your ambient light
@@ -942,9 +953,9 @@ blueprint:
value: ambient_light_option_enabled value: ambient_light_option_enabled
- label: NO - My Ambient Light Sensor is not affected by the Lights - label: NO - My Ambient Light Sensor is not affected by the Lights
value: ambient_light_option_disabled value: ambient_light_option_disabled
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
ambient_light_value: ambient_light_value:
name: Ambient Light - Low Lux Value name: Ambient Light - Low Lux Value
description: 'Set the Ambient Light Low Lux Value. The light will turn ON description: 'Set the Ambient Light Low Lux Value. The light will turn ON
@@ -1001,9 +1012,9 @@ blueprint:
value: time_enabled value: time_enabled
- label: Disable the time options - label: Disable the time options
value: time_disabled value: time_disabled
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
after_time: after_time:
name: Start Time name: Start Time
description: 'Set the start time. description: 'Set the start time.
@@ -1054,8 +1065,57 @@ blueprint:
value: sat value: sat
- label: Sunday - label: Sunday
value: sun value: sun
custom_value: false
sort: false sort: false
custom_value: false
state_control_settings:
name: State Control
icon: mdi:toggle-switch-outline
collapsed: true
input:
include_state_control:
name: Use The State Control Option (Optional)
description: 'This option is used to add a condition that only allows the
automation to run when the entity is in its selected activation state
below.
'
default: state_control_disabled
selector:
select:
options:
- label: Enable State Control Option
value: state_control_enabled
- label: Disable State Control Option
value: state_control_disabled
multiple: false
sort: false
custom_value: false
state_control_activation_state:
name: Activation State
description: 'Select the state (ON or OFF) the entity must be in so the
automation can run.
'
default: 'off'
selector:
select:
options:
- label: ON State
value: 'on'
- label: OFF State
value: 'off'
multiple: false
sort: false
custom_value: false
state_control_entity:
name: Control Entity
description: 'If State Control is enabled, select the entity that will allow
the automation to run based on the activation state selected above.
'
default: []
selector:
entity: {}
device_tracker_settings: device_tracker_settings:
name: Device Tracker name: Device Tracker
icon: mdi:account-multiple-check-outline icon: mdi:account-multiple-check-outline
@@ -1083,9 +1143,9 @@ blueprint:
value: zone_people_enabled value: zone_people_enabled
- label: Disable the device tracker options - label: Disable the device tracker options
value: device_tracker_disabled value: device_tracker_disabled
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
zone: zone:
name: Device Tracker - Zone name: Device Tracker - Zone
description: 'Choose the zone that will track your devices and/or people description: 'Choose the zone that will track your devices and/or people
@@ -1099,6 +1159,7 @@ blueprint:
- domain: - domain:
- zone - zone
multiple: false multiple: false
reorder: false
people: people:
name: Device Tracker - People name: Device Tracker - People
description: 'Select the people you would like to track in the zone selected description: 'Select the people you would like to track in the zone selected
@@ -1112,6 +1173,7 @@ blueprint:
filter: filter:
- domain: - domain:
- person - person
reorder: false
night_lights_trigger_settings: night_lights_trigger_settings:
name: Night Lights Settings name: Night Lights Settings
icon: mdi:weather-night icon: mdi:weather-night
@@ -1137,9 +1199,9 @@ blueprint:
value: night_lights_enabled value: night_lights_enabled
- label: Disable the night lights options - label: Disable the night lights options
value: night_lights_disabled value: night_lights_disabled
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
night_lights_conditions: night_lights_conditions:
name: Night Lights Conditions (Required For Night Lights) name: Night Lights Conditions (Required For Night Lights)
description: 'Select any night light condition from the options provided description: 'Select any night light condition from the options provided
@@ -1161,8 +1223,8 @@ blueprint:
value: time_enabled value: time_enabled
- label: Enable sun elevation option - label: Enable sun elevation option
value: sun_enabled value: sun_enabled
custom_value: false
sort: false sort: false
custom_value: false
night_lights_entity_state: night_lights_entity_state:
name: Night Lights - Entity State name: Night Lights - Entity State
description: 'Select an entity that will trigger the activation of night description: 'Select an entity that will trigger the activation of night
@@ -1179,6 +1241,7 @@ blueprint:
selector: selector:
entity: entity:
multiple: true multiple: true
reorder: false
night_lights_after_time: night_lights_after_time:
name: Night Lights - Start Time name: Night Lights - Start Time
description: 'Set the start time. description: 'Set the start time.
@@ -1270,6 +1333,7 @@ blueprint:
- domain: - domain:
- input_boolean - input_boolean
multiple: false multiple: false
reorder: false
night_time_delay: night_time_delay:
name: Night Lights - Time Delay name: Night Lights - Time Delay
description: 'The time delay determines how long the night lights will remain description: 'The time delay determines how long the night lights will remain
@@ -1315,8 +1379,8 @@ blueprint:
value: if_lights_are_on_adjust_when_crossing_over value: if_lights_are_on_adjust_when_crossing_over
- label: Yes - Manage OFF script when crossing over - label: Yes - Manage OFF script when crossing over
value: manage_scripts_crossing_over value: manage_scripts_crossing_over
custom_value: false
sort: false sort: false
custom_value: false
night_light_brightness: night_light_brightness:
name: Night Lights - Brightness name: Night Lights - Brightness
description: 'The brightness setting of the lights when they are turned description: 'The brightness setting of the lights when they are turned
@@ -1379,9 +1443,9 @@ blueprint:
value: use_rgbww_colour value: use_rgbww_colour
- label: Disable Colour Control - label: Disable Colour Control
value: disable_colour_control value: disable_colour_control
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
night_light_colour_temperature: night_light_colour_temperature:
name: Night Lights - Colour Temperature name: Night Lights - Colour Temperature
description: 'The colour temperature setting for the lights when they are description: 'The colour temperature setting for the lights when they are
@@ -1460,9 +1524,9 @@ blueprint:
value: night_glow_enabled value: night_glow_enabled
- label: Disable night glow - label: Disable night glow
value: night_glow_disabled value: night_glow_disabled
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
night_glow_lights: night_glow_lights:
name: Night Glow - Lights name: Night Glow - Lights
description: 'The lights, switches, scenes, and scripts to be used for a description: 'The lights, switches, scenes, and scripts to be used for a
@@ -1501,8 +1565,8 @@ blueprint:
value: use_brightness value: use_brightness
- label: Use transition - label: Use transition
value: use_transition value: use_transition
custom_value: false
sort: false sort: false
custom_value: false
night_glow_light_brightness: night_glow_light_brightness:
name: Night Glow - Brightness name: Night Glow - Brightness
description: 'The brightness setting of the lights when they are turned description: 'The brightness setting of the lights when they are turned
@@ -1565,9 +1629,9 @@ blueprint:
value: use_rgbww_colour value: use_rgbww_colour
- label: Disable Colour Control - label: Disable Colour Control
value: disable_colour_control value: disable_colour_control
custom_value: false
sort: false
multiple: false multiple: false
sort: false
custom_value: false
night_glow_light_colour_temperature: night_glow_light_colour_temperature:
name: Night Glow - Colour Temperature name: Night Glow - Colour Temperature
description: 'The colour temperature setting for the lights when they are description: 'The colour temperature setting for the lights when they are
@@ -1683,6 +1747,9 @@ variables:
after_time: !input after_time after_time: !input after_time
before_time: !input before_time before_time: !input before_time
weekday_options: !input weekday_options weekday_options: !input weekday_options
include_state_control: !input include_state_control
state_control_activation_state: !input state_control_activation_state
state_control_entity: !input state_control_entity
include_device_tracker: !input include_device_tracker include_device_tracker: !input include_device_tracker
zone: !input zone zone: !input zone
people: !input people people: !input people
@@ -1963,8 +2030,16 @@ triggers:
id: t16 id: t16
entity_id: !input dynamic_lighting_state_control_entity entity_id: !input dynamic_lighting_state_control_entity
from: !input dynamic_lighting_state_control_activation_state from: !input dynamic_lighting_state_control_activation_state
- trigger: homeassistant - trigger: state
id: t17 id: t17
entity_id: !input state_control_entity
to: !input state_control_activation_state
- trigger: state
id: t18
entity_id: !input state_control_entity
from: !input state_control_activation_state
- trigger: homeassistant
id: t19
event: start event: start
condition: condition:
- condition: or - condition: or
@@ -2288,6 +2363,40 @@ condition:
conditions: conditions:
- condition: trigger - condition: trigger
id: t17 id: t17
- condition: state
entity_id: !input motion_trigger
state: 'on'
match: any
- condition: template
value_template: '{{ include_state_control == ''state_control_enabled'' }}'
- condition: and
conditions:
- condition: trigger
id: t18
- condition: template
value_template: '{{ include_state_control == ''state_control_enabled'' }}'
- condition: or
conditions:
- '{{ (expand(light_switch.entity_id) | selectattr(''state'', ''=='', ''on'')
| list | count > 0) }}'
- '{{ (include_night_lights == ''night_lights_enabled'') and (expand(night_lights.entity_id)
| selectattr(''state'', ''=='', ''on'') | list | count > 0) }}'
- '{{ (include_night_lights == ''night_lights_enabled'') and (include_night_glow
== ''night_glow_enabled'') and (expand(night_glow_lights.entity_id) | selectattr(''state'',
''=='', ''on'') | list | count > 0) }}'
- condition: template
value_template: "{% if boolean_scenes_scripts != [] %}\n {{ is_state(boolean_scenes_scripts,
'on') }}\n{% endif %}"
- condition: template
value_template: "{% if night_boolean_scenes_scripts != [] %}\n {{ is_state(night_boolean_scenes_scripts,
'on') }}\n{% endif %}"
- condition: template
value_template: "{% if dynamic_lighting_boolean != [] %}\n {{ is_state(dynamic_lighting_boolean,
'on') }}\n{% endif %}"
- condition: and
conditions:
- condition: trigger
id: t19
- condition: or - condition: or
conditions: conditions:
- '{{ (expand(light_switch.entity_id) | selectattr(''state'', ''=='', ''on'') - '{{ (expand(light_switch.entity_id) | selectattr(''state'', ''=='', ''on'')
@@ -2306,7 +2415,7 @@ condition:
- condition: and - condition: and
conditions: conditions:
- condition: trigger - condition: trigger
id: t17 id: t19
- condition: state - condition: state
entity_id: !input motion_trigger entity_id: !input motion_trigger
match: any match: any
@@ -2314,7 +2423,7 @@ condition:
- condition: and - condition: and
conditions: conditions:
- condition: trigger - condition: trigger
id: t17 id: t19
- '{{ (''bypass_auto_off_enabled_on'' in include_bypass_auto_off) or (''bypass_auto_off_enabled_off'' - '{{ (''bypass_auto_off_enabled_on'' in include_bypass_auto_off) or (''bypass_auto_off_enabled_off''
in include_bypass_auto_off) or (''bypass_auto_off_enabled_stop'' in include_bypass_auto_off) in include_bypass_auto_off) or (''bypass_auto_off_enabled_stop'' in include_bypass_auto_off)
}}' }}'
@@ -2407,7 +2516,7 @@ condition:
- t8_on - t8_on
- t8_off - t8_off
- t8_stop - t8_stop
- t17 - t19
- condition: or - condition: or
conditions: conditions:
- '{{ include_sun == ''sun_disabled'' }}' - '{{ include_sun == ''sun_disabled'' }}'
@@ -2502,6 +2611,26 @@ condition:
- t8_off - t8_off
- t8_stop - t8_stop
- t11 - t11
- condition: or
conditions:
- condition: template
value_template: '{{ include_state_control == ''state_control_disabled'' }}'
- condition: and
conditions:
- condition: template
value_template: '{{ include_state_control == ''state_control_enabled'' }}'
- condition: state
entity_id: !input state_control_entity
state: !input state_control_activation_state
- condition: trigger
id:
- t7_on
- t7_off
- t7_stop
- t8_on
- t8_off
- t8_stop
- t18
- condition: or - condition: or
conditions: conditions:
- '{{ include_device_tracker == ''device_tracker_disabled'' }}' - '{{ include_device_tracker == ''device_tracker_disabled'' }}'
@@ -3318,6 +3447,15 @@ action:
- condition: time - condition: time
after: !input before_time after: !input before_time
before: !input after_time before: !input after_time
- condition: and
conditions:
- condition: template
value_template: '{{ include_state_control == ''state_control_enabled''
}}'
- condition: template
value_template: '{% set opposite = ''off'' if state_control_activation_state
== ''on'' else ''on'' %} {{ is_state(state_control_entity, opposite)
}}'
sequence: sequence:
- alias: Wait the number of minutes set in the by-pass time delay - alias: Wait the number of minutes set in the by-pass time delay
delay: delay:
@@ -3591,13 +3729,14 @@ action:
entity_id: '{{ crossover_night_lights_light_on }}' entity_id: '{{ crossover_night_lights_light_on }}'
data: '{{ night_light_data }}' data: '{{ night_light_data }}'
- choose: - choose:
- alias: Sun, ambient & time above setting to turn off - alias: Sun, ambient, time & state control above setting to turn off
conditions: conditions:
- condition: trigger - condition: trigger
id: id:
- t9 - t9
- t10 - t10
- t11 - t11
- t18
sequence: sequence:
- choose: - choose:
- alias: If transition is selected - alias: If transition is selected
@@ -3834,7 +3973,7 @@ action:
- alias: Safe Guard when HA restarts - alias: Safe Guard when HA restarts
conditions: conditions:
- condition: trigger - condition: trigger
id: t17 id: t19
sequence: sequence:
- choose: - choose:
- alias: Check all by-pass are off and check conditions if enabled - alias: Check all by-pass are off and check conditions if enabled
@@ -5310,6 +5449,15 @@ action:
after: !input before_time after: !input before_time
before: !input after_time before: !input after_time
- '{{ include_time == ''time_enabled'' }}' - '{{ include_time == ''time_enabled'' }}'
- condition: and
conditions:
- condition: template
value_template: '{{ include_state_control == ''state_control_enabled''
}}'
- condition: template
value_template: '{% set opposite = ''off'' if state_control_activation_state
== ''on'' else ''on'' %} {{ is_state(state_control_entity, opposite)
}}'
sequence: sequence:
- alias: Wait the number of minutes set in the by-pass time delay - alias: Wait the number of minutes set in the by-pass time delay
delay: delay:
@@ -5663,13 +5811,14 @@ action:
data: data:
entity_id: !input dynamic_lighting_boolean entity_id: !input dynamic_lighting_boolean
- choose: - choose:
- alias: Sun, ambient & time above setting to turn off - alias: Sun, ambient, time & state control above setting to turn off
conditions: conditions:
- condition: trigger - condition: trigger
id: id:
- t9 - t9
- t10 - t10
- t11 - t11
- t18
sequence: sequence:
- choose: - choose:
- alias: If transition is selected - alias: If transition is selected
@@ -5905,7 +6054,7 @@ action:
- alias: Safe Guard when HA restarts - alias: Safe Guard when HA restarts
conditions: conditions:
- condition: trigger - condition: trigger
id: t17 id: t19
sequence: sequence:
- choose: - choose:
- alias: Check all by-pass are off and check conditions if enabled - alias: Check all by-pass are off and check conditions if enabled
@@ -6286,7 +6435,11 @@ action:
delay: delay:
minutes: !input dynamic_lighting_heartbeat minutes: !input dynamic_lighting_heartbeat
- alias: If dynamic lighting brightness is in the dead zone - alias: If dynamic lighting brightness is in the dead zone
conditions: '{{ in_dead_zone }}' conditions:
- condition: template
value_template: '{{ in_dead_zone }}'
- condition: template
value_template: '{{ repeat.index != 1 }}'
sequence: sequence:
- alias: Dynamic lighting heartbeat - alias: Dynamic lighting heartbeat
delay: delay:
@@ -6426,7 +6579,11 @@ action:
delay: delay:
minutes: !input dynamic_lighting_heartbeat minutes: !input dynamic_lighting_heartbeat
- alias: If dynamic lighting brightness is in the dead zone - alias: If dynamic lighting brightness is in the dead zone
conditions: '{{ in_dead_zone }}' conditions:
- condition: template
value_template: '{{ in_dead_zone }}'
- condition: template
value_template: '{{ repeat.index != 1 }}'
sequence: sequence:
- alias: Dynamic lighting heartbeat - alias: Dynamic lighting heartbeat
delay: delay:
@@ -7492,7 +7649,11 @@ action:
delay: delay:
minutes: !input dynamic_lighting_heartbeat minutes: !input dynamic_lighting_heartbeat
- alias: If dynamic lighting brightness is in the dead zone - alias: If dynamic lighting brightness is in the dead zone
conditions: '{{ in_dead_zone }}' conditions:
- condition: template
value_template: '{{ in_dead_zone }}'
- condition: template
value_template: '{{ repeat.index != 1 }}'
sequence: sequence:
- alias: Dynamic lighting heartbeat - alias: Dynamic lighting heartbeat
delay: delay:
@@ -7853,7 +8014,11 @@ action:
delay: delay:
minutes: !input dynamic_lighting_heartbeat minutes: !input dynamic_lighting_heartbeat
- alias: If dynamic lighting brightness is in the dead zone - alias: If dynamic lighting brightness is in the dead zone
conditions: '{{ in_dead_zone }}' conditions:
- condition: template
value_template: '{{ in_dead_zone }}'
- condition: template
value_template: '{{ repeat.index != 1 }}'
sequence: sequence:
- alias: Dynamic lighting heartbeat - alias: Dynamic lighting heartbeat
delay: delay:

View File

@@ -0,0 +1,156 @@
blueprint:
name: WeatherAlerts Persistent Notification and Cleanup
description: 'Persistent notification for Weather Alerts from a weatheralerts integration sensor,
plus automatic cleanup when no active alerts remain for 30 minutes. New alerts
and alerts less than 30 minutes old will display as a full alert message in the
psrsistent notification. Alerts older than 30 minutes will only display as a
short alert event title in the persistent notification.
'
domain: automation
input:
sensor:
name: WeatherAlerts Sensor
description: The weatheralerts sensor to monitor
selector:
entity:
domain:
- sensor
integration: weatheralerts
multiple: false
reorder: false
source_url: https://github.com/custom-components/weatheralerts/raw/refs/heads/master/blueprints/weatheralerts_persistent_notification_original.yaml
trigger:
- platform: homeassistant
event: start
- platform: event
event_type: component reload
event_data:
domain: weatheralerts
- platform: state
entity_id: !input sensor
attribute: alert_tracking
variables:
sensor: !input sensor
integration: '{{ state_attr(sensor, ''integration'') or ''weatheralerts'' }}'
zone: '{{ state_attr(sensor, ''zone'') or ''unknown'' }}'
zone_name: '{{ state_attr(sensor, ''zone_name'') or ''unknown'' }}'
notif_id: '{{ integration }}_{{ zone | replace('','',''_'') | lower }}'
alert_ids: '{{ state_attr(sensor, ''alert_tracking'') or [] }}'
alerts: '{{ state_attr(sensor, ''alerts'') or [] }}'
now_ts: '{{ now().timestamp() | float }}'
action:
- choose:
- conditions:
- condition: template
value_template: "{% set new_ids = alert_ids | selectattr('status','eq','new')
| map(attribute='id') | list %} {% set new_alerts_full = alerts | selectattr('id','in',
new_ids) | list %} {% set ids = namespace(valid=[]) %} {% for item in alert_ids
%}\n {% if item.status == 'old'\n and item.sent is defined and item.sent
not in ['null','',none]\n and item.expires is defined and item.expires
not in ['null','',none] %}\n {% set sent_ts = as_timestamp(item.sent, default=0)
%}\n {% set exp_ts = as_timestamp(item.expires, default=0) %}\n {% if
exp_ts > now().timestamp() and (now().timestamp() - sent_ts) < 1800 %}\n {%
set ids.valid = ids.valid + [item.id] %}\n {% endif %}\n {% endif %}\n{%
endfor %} {% set old_alerts_full = alerts | selectattr('id','in', ids.valid)
| list %} {% set ids2 = namespace(valid=[]) %} {% for item in alert_ids %}\n
\ {% if item.status == 'old'\n and item.sent is defined and item.sent
not in ['null','',none]\n and item.expires is defined and item.expires
not in ['null','',none] %}\n {% set sent_ts = as_timestamp(item.sent, default=0)
%}\n {% set exp_ts = as_timestamp(item.expires, default=0) %}\n {% if
exp_ts > now().timestamp() and (now().timestamp() - sent_ts) >= 1800 %}\n
\ {% set ids2.valid = ids2.valid + [item.id] %}\n {% endif %}\n {%
endif %}\n{% endfor %} {% set old_alerts_title = alerts | selectattr('id','in',
ids2.valid) | list %} {{ new_alerts_full | length > 0 or old_alerts_full |
length > 0 or old_alerts_title | length > 0 }}"
sequence:
- service: persistent_notification.create
data:
notification_id: '{{ notif_id }}'
title: Weather Alerts for {{ zone_name }}
message: "{% set new_ids = alert_ids | selectattr('status','eq','new') | map(attribute='id')
| list %}\n{% set new_alerts_full = alerts | selectattr('id','in', new_ids)
| list %}\n{% set ids = namespace(valid=[]) %}\n{% for item in alert_ids
%}\n {% if item.status == 'old'\n and item.sent is defined and item.sent
not in ['null','',none]\n and item.expires is defined and item.expires
not in ['null','',none] %}\n {% set sent_ts = as_timestamp(item.sent,
default=0) %}\n {% set exp_ts = as_timestamp(item.expires, default=0)
%}\n {% if exp_ts > now().timestamp() and (now().timestamp() - sent_ts)
< 1800 %}\n {% set ids.valid = ids.valid + [item.id] %}\n {% endif
%}\n {% endif %}\n{% endfor %}\n{% set old_alerts_full = alerts | selectattr('id','in',
ids.valid) | list %}\n{% set ids2 = namespace(valid=[]) %}\n{% for item
in alert_ids %}\n {% if item.status == 'old'\n and item.sent is defined
and item.sent not in ['null','',none]\n and item.expires is defined
and item.expires not in ['null','',none] %}\n {% set sent_ts = as_timestamp(item.sent,
default=0) %}\n {% set exp_ts = as_timestamp(item.expires, default=0)
%}\n {% if exp_ts > now().timestamp() and (now().timestamp() - sent_ts)
>= 1800 %}\n {% set ids2.valid = ids2.valid + [item.id] %}\n {%
endif %}\n {% endif %}\n{% endfor %}\n{% set old_alerts_title = alerts
| selectattr('id','in', ids2.valid) | list %}\n{% for alert in new_alerts_full
%}\n{# — Clean up title — #}\n{% set clean_title = alert.title\n | replace('\\n\\n','<br>')\n
\ | replace('\\n',' ')\n | trim %}\n{# — Clean up headline — #}\n{% if
alert.NWSheadline and alert.NWSheadline != 'null' %}\n {% set clean_headline
= alert.NWSheadline\n | replace('\\n\\n','<br>')\n | replace('\\n','
')\n | trim %}\n{% else %}\n {% set clean_headline = \"\" %}\n{% endif
%}\n{# — Clean up description — #}\n{% set clean_description = alert.description\n
\ | replace('\\n\\n','<br>')\n | replace('\\n',' ')\n | replace('<br>','<br>\\n')\n
\ | regex_replace('([A-Z ]+?\\\\.\\\\.\\\\.)', '* <strong>\\\\1</strong>')\n
\ | replace('**','*')\n | trim %}\n{# — Optional instruction — #}\n{%
if alert.instruction and alert.instruction != 'null' %}\n {% set clean_instruction
= alert.instruction\n | replace('\\n\\n','<br>')\n | replace('\\n','
')\n | trim %}\n{% else %}\n {% set clean_instruction = \"\" %}\n{%
endif %}\n{# — Area — #}\n{% set clean_area = alert.area\n | replace('\\n\\n','<br>')\n
\ | replace('\\n',' ')\n | trim %}\n<font color=\"orange\">\n <ha-icon
icon=\"{{ alert.icon }}\"></ha-icon>\n</font>\n<strong>\n <font color=\"red\">{{
clean_title }}</font>\n</strong><br>\n{% if clean_headline and clean_headline
!= 'null' %}\n {{ clean_headline }}<br>\n{% endif %}\n{{ clean_description
}}<br>\n* <strong> AREA…</strong> {{ clean_area }}<br><br>\n{% if clean_instruction
and clean_instruction != 'null' %}\n{{ clean_instruction }}<br><br>\n{%
endif %}\n{% if alert.sent and alert.sent != 'null' %}\n<strong>Alert Sent:</strong>
{{ alert.sent }}<br>\n{% endif %}\n{% if alert.effective and alert.effective
!= 'null' %}\n<strong>Effective:</strong> {{ alert.effective }}<br>\n{%
endif %}\n{% if alert.expires and alert.expires != 'null' %}\n<strong>Expires:</strong>
{{ alert.expires }}<br>\n{% endif %}\n{% if alert.onset and alert.onset
!= 'null' %}\n<strong>Onset:</strong> {{ alert.onset }}<br>\n{% endif %}\n{%
if alert.ends and alert.ends != 'null' %}\n<strong>Ends:</strong> {{ alert.ends
}}<br>\n{% endif %}\n{% if not loop.last %}\n <hr>\n{% endif %}\n{% endfor
%}\n\n{% if old_alerts_full %}\n <hr>\n{% for alert in old_alerts_full
%}\n{# — Clean up title — #}\n{% set clean_title = alert.title\n | replace('\\n\\n','<br>')\n
\ | replace('\\n',' ')\n | trim %}\n{# — Clean up headline — #}\n{% if
alert.NWSheadline and alert.NWSheadline != 'null' %}\n {% set clean_headline
= alert.NWSheadline\n | replace('\\n\\n','<br>')\n | replace('\\n','
')\n | trim %}\n{% else %}\n {% set clean_headline = \"\" %}\n{% endif
%}\n{# — Clean up description — #}\n{% set clean_description = alert.description\n
\ | replace('\\n\\n','<br>')\n | replace('\\n',' ')\n | replace('<br>','<br>\\n')\n
\ | regex_replace('([A-Z ]+?\\\\.\\\\.\\\\.)', '* <strong>\\\\1</strong>')\n
\ | replace('**','*')\n | trim %}\n{# — Optional instruction — #}\n{%
if alert.instruction and alert.instruction != 'null' %}\n {% set clean_instruction
= alert.instruction\n | replace('\\n\\n','<br>')\n | replace('\\n','
')\n | trim %}\n{% else %}\n {% set clean_instruction = \"\" %}\n{%
endif %}\n{# — Area — #}\n{% set clean_area = alert.area\n | replace('\\n\\n','<br>')\n
\ | replace('\\n',' ')\n | trim %}\n<font color=\"orange\">\n <ha-icon
icon=\"{{ alert.icon }}\"></ha-icon>\n</font>\n<strong>\n <font color=\"red\">{{
clean_title }}</font>\n</strong><br>\n{% if clean_headline and clean_headline
!= 'null' %}\n {{ clean_headline }}<br>\n{% endif %}\n{{ clean_description
}}<br>\n* <strong>AREA…</strong> {{ clean_area }}<br>\n{% if clean_instruction
and clean_instruction != 'null' %}\n{{ clean_instruction }}<br>\n{% endif
%}\n{% if alert.sent and alert.sent != 'null' %}\n<strong>Alert Sent:</strong>
{{ alert.sent }}<br>\n{% endif %}\n{% if alert.effective and alert.effective
!= 'null' %}\n<strong>Effective:</strong> {{ alert.effective }}<br>\n{%
endif %}\n{% if alert.expires and alert.expires != 'null' %}\n<strong>Expires:</strong>
{{ alert.expires }}<br>\n{% endif %}\n{% if alert.onset and alert.onset
!= 'null' %}\n<strong>Onset:</strong> {{ alert.onset }}<br>\n{% endif %}\n{%
if alert.ends and alert.ends != 'null' %}\n<strong>Ends:</strong> {{ alert.ends
}}<br>\n{% endif %}\n{% if not loop.last %}\n <hr>\n{% endif %}\n{% endfor
%}\n{% endif %}\n\n{% if old_alerts_title %}\n<hr>\n{% if new_alerts_full
%}\n<strong>Other Active Alerts:</strong><br>\n{% else %}\n<strong>Active
Alerts:</strong><br>\n{% endif %}\n{% for alert in old_alerts_title %}\n*
<font color=\"orange\">\n <ha-icon icon=\"{{ alert.icon }}\"></ha-icon>\n
\ </font>\n <strong>{{ alert.title }}<strong><br>\n{% endfor %}\n{% endif
%}\n"
default:
- delay: 00:30:00
- service: persistent_notification.dismiss
data:
notification_id: '{{ notif_id }}'
mode: restart

View File

@@ -0,0 +1,42 @@
`${(() => {
const occupancy = hass?.states[this.config?.main_button_floors?.occupancy_entity]?.state || '';
const hot = hass?.states[this.config?.main_button_floors?.hot_entity]?.state || '';
const cold = hass?.states[this.config?.main_button_floors?.cold_entity]?.state || '';
let bg_color = 'var(--bubble-main-background-color)';
let occupied_color = 'var(--bubble-accent-color)';
let hot_color = 'var(--error-color)';
let cold_color = 'var(--purple-color)';
// Main button background
const mainButton = card?.querySelector('.bubble-button-background');
if (mainButton) {
mainButton.style.opacity = '1';
mainButton.style.backgroundColor = occupancy === 'on' ? occupied_color : bg_color;
mainButton.style.transition = 'background-color 1s';
}
// Sub button 1
const subButton1 = card?.querySelector('.bubble-sub-button-1');
if (subButton1) {
if (hot === 'on') {
subButton1.style.backgroundColor = hot_color;
} else if (cold === 'on') {
subButton1.style.backgroundColor = cold_color;
} else if (occupancy === 'on') {
subButton1.style.backgroundColor = occupied_color;
} else {
subButton1.style.backgroundColor = bg_color;
}
}
// Unavailable state
if (mainButton && occupancy === 'unavailable') {
mainButton.classList.add('is-unavailable');
} else if (mainButton) {
mainButton.classList.remove('is-unavailable');
}
// No CSS string needed
return '';
})()}`

View File

@@ -0,0 +1,22 @@
- type: expandable
title: Entity Configuration
icon: mdi:format-list-bulleted
schema:
- name: occupancy_entity
label: Occupancy Entity
selector:
entity:
device_class: occupancy
required: false
- name: hot_entity
label: Hot Entity
selector:
entity:
device_class: heat
required: false
- name: cold_entity
label: Cold Entity
selector:
entity:
device_class: cold
required: false

View File

@@ -0,0 +1,73 @@
main_button_floors:
name: Main Button Floors
version: '1.2.1'
creator: Tony Stork
supported:
- button
description: Module to provide theming for the main indoor floor buttons
code: |
${(() => {
const occupancy = hass?.states[this.config?.main_button_floors?.occupancy_entity]?.state || '';
const hot = hass?.states[this.config?.main_button_floors?.hot_entity]?.state || '';
const cold = hass?.states[this.config?.main_button_floors?.cold_entity]?.state || '';
let bg_color = 'var(--bubble-main-background-color)';
let occupied_color = 'var(--bubble-accent-color)';
let hot_color = 'var(--error-color)';
let cold_color = 'var(--purple-color)';
// Main button background
const mainButton = card?.querySelector('.bubble-button-background');
if (mainButton) {
mainButton.style.opacity = '1';
mainButton.style.backgroundColor = occupancy === 'on' ? occupied_color : bg_color;
mainButton.style.transition = 'background-color 1s';
}
// Sub button 1
const subButton1 = card?.querySelector('.bubble-sub-button-1');
if (subButton1) {
if (hot === 'on') {
subButton1.style.backgroundColor = hot_color;
} else if (cold === 'on') {
subButton1.style.backgroundColor = cold_color;
} else if (occupancy === 'on') {
subButton1.style.backgroundColor = occupied_color;
} else {
subButton1.style.backgroundColor = bg_color;
}
}
// Unavailable state
if (mainButton && occupancy === 'unavailable') {
mainButton.classList.add('is-unavailable');
} else if (mainButton) {
mainButton.classList.remove('is-unavailable');
}
// No CSS string needed
return '';
})()}
editor:
- type: expandable
title: Entity Configuration
icon: mdi:format-list-bulleted
schema:
- name: occupancy_entity
label: Occupancy Entity
selector:
entity:
device_class: occupancy
required: false
- name: hot_entity
label: Hot Entity
selector:
entity:
device_class: heat
required: false
- name: cold_entity
label: Cold Entity
selector:
entity:
device_class: cold
required: false

View File

@@ -0,0 +1,24 @@
`${(() => {
const occupancy = hass?.states[this.config?.main_button_outdoors?.occupancy_entity]?.state || '';
let bg_color = 'var(--bubble-main-background-color)';
let occupied_color = 'var(--bubble-accent-color)';
// Main button background
const mainButton = card?.querySelector('.bubble-button-background');
if (mainButton) {
mainButton.style.opacity = '1';
mainButton.style.backgroundColor = occupancy === 'on' ? occupied_color : bg_color;
mainButton.style.transition = 'background-color 1s';
}
// Unavailable state
if (mainButton && occupancy === 'unavailable') {
mainButton.classList.add('is-unavailable');
} else if (mainButton) {
mainButton.classList.remove('is-unavailable');
}
// No CSS string needed
return '';
})()}`

View File

@@ -0,0 +1,10 @@
- type: expandable
title: Entity Configuration
icon: mdi:format-list-bulleted
schema:
- name: occupancy_entity
label: Occupancy Entity
selector:
entity:
device_class: occupancy
required: false

View File

@@ -0,0 +1,43 @@
main_button_outdoors:
name: Main Button Outdoors
version: '1.2.1'
creator: Tony Stork
supported:
- button
description: Module to provide theming for outdoor floor buttons
code: |
${(() => {
const occupancy = hass?.states[this.config?.main_button_outdoors?.occupancy_entity]?.state || '';
let bg_color = 'var(--bubble-main-background-color)';
let occupied_color = 'var(--bubble-accent-color)';
// Main button background
const mainButton = card?.querySelector('.bubble-button-background');
if (mainButton) {
mainButton.style.opacity = '1';
mainButton.style.backgroundColor = occupancy === 'on' ? occupied_color : bg_color;
mainButton.style.transition = 'background-color 1s';
}
// Unavailable state
if (mainButton && occupancy === 'unavailable') {
mainButton.classList.add('is-unavailable');
} else if (mainButton) {
mainButton.classList.remove('is-unavailable');
}
// No CSS string needed
return '';
})()}
editor:
- type: expandable
title: Entity Configuration
icon: mdi:format-list-bulleted
schema:
- name: occupancy_entity
label: Occupancy Entity
selector:
entity:
device_class: occupancy
required: false

View File

@@ -0,0 +1,24 @@
`${(() => {
const state = hass?.states[this.config?.entity]?.state || '';
let bg_color = 'var(--background-color-2)';
let accent_color = 'var(--bubble-accent-color)';
// Main button background
const mainButton = card?.querySelector('.bubble-button-background');
if (mainButton) {
mainButton.style.opacity = '1';
mainButton.style.backgroundColor = state === 'on' ? accent_color : bg_color;
mainButton.style.transition = 'background-color 1s';
}
// Unavailable state
if (mainButton && state === 'unavailable') {
mainButton.classList.add('is-unavailable');
} else if (mainButton) {
mainButton.classList.remove('is-unavailable');
}
// No CSS string needed
return '';
})()}`

View File

@@ -0,0 +1,33 @@
popup_accent_color_button:
name: Popup Accent Color Button
version: '1.1'
creator: Tony Stork
supported:
- button
description: Will turn the button to accent color variable if config entity is on, otherwise default style applies
code: |-
${(() => {
const state = hass?.states[this.config?.entity]?.state || '';
let bg_color = 'var(--background-color-2)';
let accent_color = 'var(--bubble-accent-color)';
// Main button background
const mainButton = card?.querySelector('.bubble-button-background');
if (mainButton) {
mainButton.style.opacity = '1';
mainButton.style.backgroundColor = state === 'on' ? accent_color : bg_color;
mainButton.style.transition = 'background-color 1s';
}
// Unavailable state
if (mainButton && state === 'unavailable') {
mainButton.classList.add('is-unavailable');
} else if (mainButton) {
mainButton.classList.remove('is-unavailable');
}
// No CSS string needed
return '';
})()}
editor: ''

View File

@@ -0,0 +1,24 @@
`${(() => {
const state = hass?.states[this.config?.entity]?.state || '';
let bg_color = 'var(--background-color-2)';
let red_color = 'var(--error-color)';
// Main button background
const mainButton = card?.querySelector('.bubble-button-background');
if (mainButton) {
mainButton.style.opacity = '1';
mainButton.style.backgroundColor = state === 'on' ? red_color : bg_color;
mainButton.style.transition = 'background-color 1s';
}
// Unavailable state
if (mainButton && state === 'unavailable') {
mainButton.classList.add('is-unavailable');
} else if (mainButton) {
mainButton.classList.remove('is-unavailable');
}
// No CSS string needed
return '';
})()}`

View File

@@ -0,0 +1,33 @@
popup_security_button:
name: Popup Security Button
version: '1.0'
creator: Tony Stork
supported:
- button
description: Will turn the button red if there is a security fault, otherwise default style applies
code: |-
${(() => {
const state = hass?.states[this.config?.entity]?.state || '';
let bg_color = 'var(--background-color-2)';
let red_color = 'var(--error-color)';
// Main button background
const mainButton = card?.querySelector('.bubble-button-background');
if (mainButton) {
mainButton.style.opacity = '1';
mainButton.style.backgroundColor = state === 'on' ? red_color : bg_color;
mainButton.style.transition = 'background-color 1s';
}
// Unavailable state
if (mainButton && state === 'unavailable') {
mainButton.classList.add('is-unavailable');
} else if (mainButton) {
mainButton.classList.remove('is-unavailable');
}
// No CSS string needed
return '';
})()}
editor: ''

View File

@@ -0,0 +1,32 @@
`${(() => {
const hot = hass?.states[this.config?.popup_temperature_button?.hot_entity]?.state || '';
const cold = hass?.states[this.config?.popup_temperature_button?.cold_entity]?.state || '';
let bg_color = 'var(--background-color-2)';
let hot_color = 'var(--error-color)';
let cold_color = 'var(--cyan-color)';
// Main button background
const mainButton = card?.querySelector('.bubble-button-background');
if (mainButton) {
mainButton.style.opacity = '1';
if (hot === 'on') {
mainButton.style.backgroundColor = hot_color;
} else if (cold === 'on') {
mainButton.style.backgroundColor = cold_color;
} else {
mainButton.style.backgroundColor = bg_color;
}
mainButton.style.transition = 'background-color 1s';
}
// Unavailable state
if (mainButton && state === 'unavailable') {
mainButton.classList.add('is-unavailable');
} else if (mainButton) {
mainButton.classList.remove('is-unavailable');
}
// No CSS string needed
return '';
})()}`

View File

@@ -0,0 +1,14 @@
- type: expandable
title: Entity Configuration
icon: mdi:format-list-bulleted
schema:
- name: hot_entity
label: Hot Entity
selector:
entity:
device_class: heat
- name: cold_entity
label: Cold Entity
selector:
entity:
device_class: cold

View File

@@ -0,0 +1,55 @@
popup_temperature_button:
name: Popup Temperature Button
version: '1.0'
creator: Tony Stork
supported:
- button
description: Will turn the button red if the room is too hot, cyan if too cold, otherwise default style applies
code: |-
${(() => {
const hot = hass?.states[this.config?.popup_temperature_button?.hot_entity]?.state || '';
const cold = hass?.states[this.config?.popup_temperature_button?.cold_entity]?.state || '';
let bg_color = 'var(--background-color-2)';
let hot_color = 'var(--error-color)';
let cold_color = 'var(--cyan-color)';
// Main button background
const mainButton = card?.querySelector('.bubble-button-background');
if (mainButton) {
mainButton.style.opacity = '1';
if (hot === 'on') {
mainButton.style.backgroundColor = hot_color;
} else if (cold === 'on') {
mainButton.style.backgroundColor = cold_color;
} else {
mainButton.style.backgroundColor = bg_color;
}
mainButton.style.transition = 'background-color 1s';
}
// Unavailable state
if (mainButton && state === 'unavailable') {
mainButton.classList.add('is-unavailable');
} else if (mainButton) {
mainButton.classList.remove('is-unavailable');
}
// No CSS string needed
return '';
})()}
editor:
- type: expandable
title: Entity Configuration
icon: mdi:format-list-bulleted
schema:
- name: hot_entity
label: Hot Entity
selector:
entity:
device_class: heat
- name: cold_entity
label: Cold Entity
selector:
entity:
device_class: cold

View File

@@ -0,0 +1,92 @@
:host{
--circle-color: var(--bubble-accent-color, var(--accent-color));
--percentage: ${(() => {
card.timerEntity = hass.states[entity];
const now = new Date();
const endTime = new Date(card.timerEntity.attributes.finishes_at);
const runningTime = Math.round((endTime - now) / 1000);
const maxtime = Math.round(new Date("1970-01-01 " + card.timerEntity.attributes.duration + " UTC") / 1000);
const remainingTime = Math.round(new Date("1970-01-01 " + card.timerEntity.attributes.remaining + " UTC") / 1000);
var percentage = 0;
if (isNaN(runningTime)) {
percentage = 100 - Math.round( 100.0 * remainingTime / maxtime);
} else {
percentage = 100 - Math.round( 100.0 * runningTime / maxtime);
}
if (isNaN(percentage)) {
return "0%";
} else {
return "" + percentage +"%";
}
})()};
}
.bubble-icon-container {
background: radial-gradient(
var(--card-background-color) 60%,
transparent 0%
), conic-gradient(
var(--circle-color) var(--percentage) 0%,
var(--card-background-color) 0% 100%
) !important;
}
.bubble-icon-container:after {
content: "" !important;
height: 100% !important;
width: 100% !important;
position: absolute !important;
border-radius: 50% !important;
background: (var(--bubble-button-icon-background-color), 0.1) !important;
}
${(() => {
function UpdateState(){
try {
let now = new Date();
let endTime = new Date(card.timerEntity.attributes.finishes_at);
let runningTime = Math.round((endTime - now)/1000);
let hours = Math.floor(runningTime / 3600);
let minutes = Math.floor((runningTime - (hours * 3600)) / 60);
let remainingSeconds = runningTime % 60;
card.querySelector('.bubble-state').innerText =
(hours > 0 ? (hours + ":") : "") +
("0" + minutes).slice(-2) + ":" +
("0" + remainingSeconds).slice(-2);
} catch (error) {
card.querySelector('.bubble-state').innerText = card.timerEntity.attributes.duration;
}
};
if (card.timer == null && card.timerEntity.state === 'active') {
card.timer = setInterval(()=>{UpdateState()}, 500);
}else if (card.timerEntity.state != 'active'){
clearInterval(card.timer);
card.timer = null;
if (card.timerEntity.state !='paused') {
card.querySelector('.bubble-state').innerText = card.timerEntity.attributes.duration;
} else if(card.timerEntity.state==='paused') {
card.querySelector('.bubble-state').innerText = card.timerEntity.attributes.remaining;
}
}
})()}
${(() => {
subButtonIcon[0].setAttribute("icon",card.timerEntity.state != 'active' ?'mdi:play' : 'mdi:replay');
})()}
${(() => {
if (card.timerEntity.state != 'active') {
card.querySelector('.bubble-sub-button-2').classList.add("hidden");
}
})()}
${(() => {
if (card.timerEntity.state === 'idle') {
card.querySelector('.bubble-sub-button-3').classList.add("hidden");
}
})()}
${(() => {
if (card.timerEntity.state === 'idle') {
card.querySelector('.bubble-sub-button-4').classList.add("hidden");
}
})()}

View File

@@ -0,0 +1,101 @@
popup_timer_card:
name: Popup Timer Card
version: '1.0'
creator: Tony Stork
supported:
- button
description: Will turn the button red if the entity state is on, otherwise default style applies
code: |-
:host{
--circle-color: var(--bubble-accent-color, var(--accent-color));
--percentage: ${(() => {
card.timerEntity = hass.states[entity];
const now = new Date();
const endTime = new Date(card.timerEntity.attributes.finishes_at);
const runningTime = Math.round((endTime - now) / 1000);
const maxtime = Math.round(new Date("1970-01-01 " + card.timerEntity.attributes.duration + " UTC") / 1000);
const remainingTime = Math.round(new Date("1970-01-01 " + card.timerEntity.attributes.remaining + " UTC") / 1000);
var percentage = 0;
if (isNaN(runningTime)) {
percentage = 100 - Math.round( 100.0 * remainingTime / maxtime);
} else {
percentage = 100 - Math.round( 100.0 * runningTime / maxtime);
}
if (isNaN(percentage)) {
return "0%";
} else {
return "" + percentage +"%";
}
})()};
}
.bubble-icon-container {
background: radial-gradient(
var(--card-background-color) 60%,
transparent 0%
), conic-gradient(
var(--circle-color) var(--percentage) 0%,
var(--card-background-color) 0% 100%
) !important;
}
.bubble-icon-container:after {
content: "" !important;
height: 100% !important;
width: 100% !important;
position: absolute !important;
border-radius: 50% !important;
background: (var(--bubble-button-icon-background-color), 0.1) !important;
}
${(() => {
function UpdateState(){
try {
let now = new Date();
let endTime = new Date(card.timerEntity.attributes.finishes_at);
let runningTime = Math.round((endTime - now)/1000);
let hours = Math.floor(runningTime / 3600);
let minutes = Math.floor((runningTime - (hours * 3600)) / 60);
let remainingSeconds = runningTime % 60;
card.querySelector('.bubble-state').innerText =
(hours > 0 ? (hours + ":") : "") +
("0" + minutes).slice(-2) + ":" +
("0" + remainingSeconds).slice(-2);
} catch (error) {
card.querySelector('.bubble-state').innerText = card.timerEntity.attributes.duration;
}
};
if (card.timer == null && card.timerEntity.state === 'active') {
card.timer = setInterval(()=>{UpdateState()}, 500);
}else if (card.timerEntity.state != 'active'){
clearInterval(card.timer);
card.timer = null;
if (card.timerEntity.state !='paused') {
card.querySelector('.bubble-state').innerText = card.timerEntity.attributes.duration;
} else if(card.timerEntity.state==='paused') {
card.querySelector('.bubble-state').innerText = card.timerEntity.attributes.remaining;
}
}
})()}
${(() => {
subButtonIcon[0].setAttribute("icon",card.timerEntity.state != 'active' ?'mdi:play' : 'mdi:replay');
})()}
${(() => {
if (card.timerEntity.state != 'active') {
card.querySelector('.bubble-sub-button-2').classList.add("hidden");
}
})()}
${(() => {
if (card.timerEntity.state === 'idle') {
card.querySelector('.bubble-sub-button-3').classList.add("hidden");
}
})()}
${(() => {
if (card.timerEntity.state === 'idle') {
card.querySelector('.bubble-sub-button-4').classList.add("hidden");
}
})()}
editor: ''

View File

@@ -0,0 +1,21 @@
rotating_icon:
name: Rotating Icon
version: '0.1'
creator: Tony Stork
supported:
- button
- climate
- media-player
- pop-up
- separator
- horizontal-buttons-stack
description: Simple, make the icon rotate when the config entity is on
code: |-
.bubble-icon {
animation: ${state === 'on' ? 'slow-rotate 2s linear infinite' : ''};
}
@keyframes slow-rotate {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
editor: ''

View File

@@ -0,0 +1,41 @@
`${(() => {
let state;
if (this.config?.state_color_button?.alt_entity) {
state = hass?.states[this.config?.state_color_button?.alt_entity]?.state || '';
} else {
state = hass?.states[this.config?.entity]?.state || '';
}
let bg_color = 'var(--bubble-main-background-color)';
// Use the configured color or default to accent color
let on_color = this.config?.state_color_button?.color
? `var(--${this.config.state_color_button.color})`
: 'var(--bubble-accent-color)';
// Main button background
const mainButton = card?.querySelector('.bubble-button-background');
if (mainButton) {
mainButton.style.opacity = '1';
mainButton.style.backgroundColor = state === 'on' ? on_color : bg_color;
mainButton.style.transition = 'background-color 1s';
}
// Icon color
const icon = card?.querySelector('.bubble-icon');
if (icon) {
icon.style.color = state === 'on' ? on_color : 'var(--bubble-main-icon-color)';
icon.style.transition = 'color 1s';
}
// Unavailable state
if (mainButton && state === 'unavailable') {
mainButton.style.opacity = '0.5';
mainButton.classList.add('is-unavailable');
} else if (mainButton) {
mainButton.classList.remove('is-unavailable');
}
// No CSS string needed
return '';
})()}`

View File

@@ -0,0 +1,10 @@
- name: color
label: Color (CSS Variable)
selector:
text: {}
required: false
- name: alt_entity
label: Entity (Optional, overrides main config)
selector:
entity: {}
required: false

View File

@@ -0,0 +1,68 @@
state_color_button:
name: State Color Button
version: 1.2.0
creator: Tony Stork
supported:
- button
description: |-
Module for status buttons that turn a color based on the state of the config entity. Will default to the accent color in your theme. Use the name of a CSS variable. You can also specify an alternate entity to get state from, this will override the main card config.
<br><br>
Example:
<br><br>
<code-block><pre>
color: error-color
alt_entity: sensor.your_face
</pre></code-block>
code: |-
${(() => {
let state;
if (this.config?.state_color_button?.alt_entity) {
state = hass?.states[this.config?.state_color_button?.alt_entity]?.state || '';
} else {
state = hass?.states[this.config?.entity]?.state || '';
}
let bg_color = 'var(--bubble-main-background-color)';
// Use the configured color or default to accent color
let on_color = this.config?.state_color_button?.color
? `var(--${this.config.state_color_button.color})`
: 'var(--bubble-accent-color)';
// Main button background
const mainButton = card?.querySelector('.bubble-button-background');
if (mainButton) {
mainButton.style.opacity = '1';
mainButton.style.backgroundColor = state === 'on' ? on_color : bg_color;
mainButton.style.transition = 'background-color 1s';
}
// Icon color
const icon = card?.querySelector('.bubble-icon');
if (icon) {
icon.style.color = state === 'on' ? on_color : 'var(--bubble-main-icon-color)';
icon.style.transition = 'color 1s';
}
// Unavailable state
if (mainButton && state === 'unavailable') {
mainButton.style.opacity = '0.5';
mainButton.classList.add('is-unavailable');
} else if (mainButton) {
mainButton.classList.remove('is-unavailable');
}
// No CSS string needed
return '';
})()}
editor:
- name: color
label: Color (CSS Variable)
selector:
text: {}
required: false
- name: alt_entity
label: Entity (Optional, overrides main config)
selector:
entity: {}
required: false

View File

@@ -33,6 +33,7 @@ frontend:
- /hacsfiles/hass-hue-icons/hass-hue-icons.js - /hacsfiles/hass-hue-icons/hass-hue-icons.js
- /hacsfiles/hass-bha-icons/hass-bha-icons.js - /hacsfiles/hass-bha-icons/hass-bha-icons.js
- /hacsfiles/material-you-utilities/material-you-utilities.min.js - /hacsfiles/material-you-utilities/material-you-utilities.min.js
- /hacsfiles/lovelace-card-mod/card-mod.js?v4.1.0
javascript_version: latest javascript_version: latest
panel_custom: panel_custom:
@@ -64,7 +65,7 @@ calendar:
rest_command: rest_command:
todoist: todoist:
method: post method: post
url: 'https://api.todoist.com/sync/v9/{{ url }}' url: 'https://api.todoist.com/api/v1/{{ url }}'
payload: '{{ payload }}' payload: '{{ payload }}'
headers: headers:
Authorization: !secret todoist_api_token Authorization: !secret todoist_api_token
@@ -107,6 +108,7 @@ recorder:
- sensor.*_count - sensor.*_count
- sensor.*memory_available* - sensor.*memory_available*
- sensor.*memory_used* - sensor.*memory_used*
- sensor.*memory_usage*
- sensor.*cpu_usage - sensor.*cpu_usage
- sensor.*cpu_temperature - sensor.*cpu_temperature
- sensor.*gpu_temperature - sensor.*gpu_temperature
@@ -117,6 +119,17 @@ recorder:
- sensor.mosquitto* - sensor.mosquitto*
- sensor.*_rssi - sensor.*_rssi
- sensor.weatherflow_hub* - sensor.weatherflow_hub*
- sensor.internet_round_trip*
- sensor.*_monitor_type
- sensor.*_certificate_expiry
- sensor.*_monitored_url
- sensor.*_response_time
- sensor.adguard*
- sensor.*iphone_info
- sensor.*ipad_info
- sensor.*airpods_info
- sensor.*airpods_pro_info
- sensor.*response_time*
entities: entities:
- sensor.avg_ping - sensor.avg_ping
- sensor.max_ping - sensor.max_ping
@@ -157,14 +170,7 @@ logger:
homeassistant.core: fatal homeassistant.core: fatal
influxdb: influxdb:
api_version: 2
host: 192.168.1.254
port: 8086
max_retries: 3 max_retries: 3
ssl: false
organization: !secret influxdb_org
token: !secret influxdb_token
bucket: home_assistant
default_measurement: state default_measurement: state
tags: tags:
source: HA source: HA
@@ -278,6 +284,14 @@ influxdb:
- binary_sensor.asus_laptop* - binary_sensor.asus_laptop*
- sensor.*ashland* - sensor.*ashland*
- sensor.*kasx* - sensor.*kasx*
- sensor.*_monitor_type
- sensor.*_certificate_expiry
- sensor.*_monitored_url
- sensor.*_response_time
- sensor.*_status
- sensor.adguard*
- sensor.*response_time*
- sensor.weatheralerts*
entities: entities:
- media_player.living_room_tv - media_player.living_room_tv
- media_player.basement_tv - media_player.basement_tv
@@ -299,18 +313,6 @@ influxdb:
- binary_sensor.people_present - binary_sensor.people_present
- weather.iron_nerd_weather_station - weather.iron_nerd_weather_station
- weather.ashland_weather_station - weather.ashland_weather_station
- sensor.circle_k
- sensor.kroger
- sensor.kecks
- sensor.the_barn
- sensor.the_big_fish
- sensor.speedway
- sensor.meijer
- sensor.ridis
- sensor.marathon_cleveland_avenue
- sensor.south_side_shell
- sensor.east_side_shell
- sensor.shell_ottawa_avenue
- sensor.current_lights_on - sensor.current_lights_on
- binary_sensor.early_night_mode - binary_sensor.early_night_mode
- input_boolean.give_me_darkness - input_boolean.give_me_darkness
@@ -340,6 +342,7 @@ influxdb:
- sensor.national_tornado_warnings - sensor.national_tornado_warnings
- sensor.national_severe_thunderstorm_warnings - sensor.national_severe_thunderstorm_warnings
- binary_sensor.severe_thunderstorm_warning - binary_sensor.severe_thunderstorm_warning
- binary_sensor.tornado_warning
logbook: logbook:
include: include:
@@ -462,6 +465,14 @@ prometheus:
- binary_sensor.asus_laptop* - binary_sensor.asus_laptop*
- sensor.*ashland* - sensor.*ashland*
- sensor.*kasx* - sensor.*kasx*
- sensor.*_monitor_type
- sensor.*_certificate_expiry
- sensor.*_monitored_url
- sensor.*_response_time
- sensor.*_status
- sensor.adguard*
- sensor.*response_time*
- sensor.weatheralerts*
include_entities: include_entities:
- media_player.living_room_tv - media_player.living_room_tv
- media_player.basement_tv - media_player.basement_tv
@@ -483,18 +494,6 @@ prometheus:
- binary_sensor.people_present - binary_sensor.people_present
- weather.iron_nerd_weather_station - weather.iron_nerd_weather_station
- weather.ashland_weather_station - weather.ashland_weather_station
- sensor.circle_k
- sensor.kroger
- sensor.kecks
- sensor.the_barn
- sensor.the_big_fish
- sensor.speedway
- sensor.meijer
- sensor.ridis
- sensor.marathon_cleveland_avenue
- sensor.south_side_shell
- sensor.east_side_shell
- sensor.shell_ottawa_avenue
- sensor.current_lights_on - sensor.current_lights_on
- binary_sensor.early_night_mode - binary_sensor.early_night_mode
- input_boolean.give_me_darkness - input_boolean.give_me_darkness
@@ -524,3 +523,4 @@ prometheus:
- sensor.national_tornado_warnings - sensor.national_tornado_warnings
- sensor.national_severe_thunderstorm_warnings - sensor.national_severe_thunderstorm_warnings
- binary_sensor.severe_thunderstorm_warning - binary_sensor.severe_thunderstorm_warning
- binary_sensor.tornado_warning

View File

@@ -825,7 +825,21 @@
'ottobre', 'ottobre',
'novembre', 'novembre',
'dicembre', 'dicembre',
] ],
'time_of_hour':{
0: '{hour}',
1: '{hour} e un minuto',
15: '{hour} ed un quarto',
30: '{hour} e mezzo',
45: '15 minuti alle {hour}',
59: 'un minuto alle {hour}',
'past_hour': '{hour} e {minute}',
'to_hour': '{hour} meno {minute}',
},
'time_of_day':{
'midnight': 'mezzanotte',
'noon': 'mezzogiorno',
}
}, },
'pt':{ 'pt':{
'_language': 'Português', '_language': 'Português',
@@ -1041,7 +1055,21 @@
'Październik', 'Październik',
'Listopad', 'Listopad',
'Grudzień', 'Grudzień',
] ],
'time_of_hour': {
0: '{hour}',
1: 'minuta po {hour}',
15: 'kwadrans po {hour}',
30: 'pół godziny po {hour}',
45: 'za kwadrans {hour}',
59: 'za minutę {hour}',
'past_hour': '{minute} po {hour}',
'to_hour': '{minute} do {hour}'
},
'time_of_day': {
'midnight': 'północ',
'noon': 'południe'
}
}, },
'ru':{ 'ru':{
'_language': 'Русский', '_language': 'Русский',
@@ -1779,9 +1807,9 @@
{%- else %} {%- else %}
{%- set t = translate('ago', language=language) %} {%- set t = translate('ago', language=language) %}
{%- if '%s' in t %} {%- if '%s' in t %}
{{ t % items }} {{- t % items }}
{%- else %} {%- else %}
{{- items }} {{ translate('ago', language=language) }} {{- items }} {{ t }}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- else %} {%- else %}
@@ -2045,7 +2073,7 @@
{%- if '%s' in t %} {%- if '%s' in t %}
{{- t % ret }} {{- t % ret }}
{%- else %} {%- else %}
{{- ret }} {{ translate('ago', language=language) }} {{- ret }} {{ t }}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}

View File

@@ -236,7 +236,7 @@
'hour': ['ч', 'час', 'часа', 'часов'], 'hour': ['ч', 'час', 'часа', 'часов'],
'minute': ['м', 'минута', 'минуты', 'минут'], 'minute': ['м', 'минута', 'минуты', 'минут'],
'second': ['с', 'секунда', 'секунды', 'секунд'], 'second': ['с', 'секунда', 'секунды', 'секунд'],
'millisecond': ['мс', 'милисекунда', 'милисекунды', 'милисекунд'], 'millisecond': ['мс', 'миллисекунда', 'миллисекунды', 'миллисекунд'],
'combine': 'и', 'combine': 'и',
'error': 'Неверная дата', 'error': 'Неверная дата',
} }
@@ -337,6 +337,22 @@
'error': 'Érvénytelen dátum', 'error': 'Érvénytelen dátum',
} }
}, },
{
'language': 'tr',
'plural_form': 'english',
'phrases': {
'year': ['yıl', 'yıl', 'yıl'],
'month': ['ay', 'ay', 'ay'],
'week': ['hf', 'hafta', 'hafta'],
'day': ['gün', 'gün', 'gün'],
'hour': ['sa', 'saat', 'saat'],
'minute': ['dk', 'dakika', 'dakika'],
'second': ['sn', 'saniye', 'saniye'],
'millisecond': ['ms', 'milisaniye', 'milisaniye'],
'combine': 've',
'error': 'Geçersiz tarih',
}
},
] -%} ] -%}
{# macro to convert the abbreviated input for the not_use and always_show lists to the full time part names #} {# macro to convert the abbreviated input for the not_use and always_show lists to the full time part names #}

View File

@@ -27,8 +27,15 @@
{% set period_str = period_str(team) %} {% set period_str = period_str(team) %}
{% set game_clock = state_attr(team,'clock') | lower %} {% set game_clock = state_attr(team,'clock') | lower %}
{% if state_attr(team,'league') == 'MLB' %} {% if state_attr(team,'league') == 'MLB' %}
{% if 'rain delay' in game_clock %}
{# Handle cases like "Rain Delay, Top 1st" #}
{% set status, inning = game_clock.split(',', 1) %}
{% set inning_parts = inning.split(' ') %}
in a {{ status | trim }} in the {{ inning_parts[1] ~ ' of the ' ~ inning_parts[2] }} {{ period_str }}
{% else %}
{% set inning_parts = game_clock.split(' ') %} {% set inning_parts = game_clock.split(' ') %}
in the {{ inning_parts[0] ~ ' of the ' ~ inning_parts[1] ~ ' ' ~ period_str }} in the {{ inning_parts[0] ~ ' of the ' ~ inning_parts[1] ~ ' ' ~ period_str }}
{% endif %}
{% else %} {% else %}
{% if ' - ' in game_clock %} {% if ' - ' in game_clock %}
{% set clock_time, quarter = game_clock.split(' - ') %} {% set clock_time, quarter = game_clock.split(' - ') %}
@@ -83,7 +90,7 @@
{% elif state_attr(team,'opponent_winner') == true %} {% elif state_attr(team,'opponent_winner') == true %}
The {{ state_attr(team,'friendly_name') }} lost their game today against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'opponent_score') }} to {{ state_attr(team,'team_score') }}. The {{ state_attr(team,'friendly_name') }} lost their game today against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'opponent_score') }} to {{ state_attr(team,'team_score') }}.
{% endif %} {% endif %}
{% if state_attr(team,'clock') not in ['postponed','Postponed'] %} {% if state_attr(team,'clock') not in ['postponed','Postponed'] and state_attr(team,'team_record') != None %}
This brings their record to {{ state_attr(team,'team_record') | replace("-"," and ") }} on the season. This brings their record to {{ state_attr(team,'team_record') | replace("-"," and ") }} on the season.
{% endif %} {% endif %}
{% elif yday == date %} {% elif yday == date %}
@@ -164,6 +171,15 @@
{% if is_state('binary_sensor.minnesota_wild_inhibit','off') %} {% if is_state('binary_sensor.minnesota_wild_inhibit','off') %}
{{ sports_pregame('sensor.minnesota_wild') }} {{ sports_pregame('sensor.minnesota_wild') }}
{% endif %} {% endif %}
{% if is_state('binary_sensor.michigan_wolverines_hockey','off') %}
{{ sports_pregame('sensor.michigan_wolverines_hockey') }}
{% endif %}
{% if is_state('binary_sensor.minnesota_golden_gophers_hockey','off') %}
{{ sports_pregame('sensor.minnesota_golden_gophers_hockey') }}
{% endif %}
{% if is_state('binary_sensor.minnesota_state_mavericks_hockey','off') %}
{{ sports_pregame('sensor.minnesota_state_mavericks_hockey') }}
{% endif %}
{% elif time == 'main' %} {% elif time == 'main' %}
{% if is_state('binary_sensor.michigan_wolverines_inhibit','off') %} {% if is_state('binary_sensor.michigan_wolverines_inhibit','off') %}
{{ sports_main('sensor.michigan_wolverines') }} {{ sports_main('sensor.michigan_wolverines') }}
@@ -192,6 +208,15 @@
{% if is_state('binary_sensor.minnesota_wild_inhibit','off') %} {% if is_state('binary_sensor.minnesota_wild_inhibit','off') %}
{{ sports_main('sensor.minnesota_wild') }} {{ sports_main('sensor.minnesota_wild') }}
{% endif %} {% endif %}
{% if is_state('binary_sensor.michigan_wolverines_hockey','off') %}
{{ sports_main('sensor.michigan_wolverines_hockey') }}
{% endif %}
{% if is_state('binary_sensor.minnesota_golden_gophers_hockey','off') %}
{{ sports_main('sensor.minnesota_golden_gophers_hockey') }}
{% endif %}
{% if is_state('binary_sensor.minnesota_state_mavericks_hockey','off') %}
{{ sports_main('sensor.minnesota_state_mavericks_hockey') }}
{% endif %}
{% endif %} {% endif %}
{% endmacro %} {% endmacro %}
{{ cleanup(data()) }} {{ cleanup(data()) }}

View File

@@ -110,3 +110,8 @@
{% macro next_twitch_stream() %} {% macro next_twitch_stream() %}
{{ custom_time('calendar.tony_s_twitch_schedule','week,day,hour') }} {{ custom_time('calendar.tony_s_twitch_schedule','week,day,hour') }}
{% endmacro %} {% endmacro %}
{% macro time_diff(sensor) %}
{% set diff = (as_timestamp(now()) - as_timestamp(states(sensor))) | int %}
{{ diff }}
{% endmacro %}

View File

@@ -6,7 +6,7 @@
{% set time = time|default('day') %} {% set time = time|default('day') %}
{% if method in ['text','dashboard'] %} {% if method in ['text','dashboard'] %}
{% if type in ['current','full'] %} {% if type in ['current','full'] %}
The current weather is {{ states('weather.iron_nerd_weather_station') | lower }}. It is {{ state_attr('weather.iron_nerd_weather_station','temperature') | round }} degrees outside and feels like {{ states('sensor.home_temperature_feels_like') | round }} degrees. The current weather is {{ states('weather.iron_nerd_weather_station') | lower }}. It is {{ state_attr('weather.iron_nerd_weather_station','temperature') | round }} degrees outside and feels like {{ state_attr('weather.iron_nerd_weather_station','apparent_temperature') | round }} degrees.
{% endif %} {% endif %}
{% if type in ['forecast','full'] %} {% if type in ['forecast','full'] %}
{% if 14400 <= ct <= 61200 %} {% if 14400 <= ct <= 61200 %}
@@ -19,18 +19,18 @@
{% if type in ['alerts','full'] %} {% if type in ['alerts','full'] %}
{% if is_state('input_boolean.tornado_alarm','on') %} {% if is_state('input_boolean.tornado_alarm','on') %}
We are under a tornado warning. If you are not already in shelter, you should be. Get on it! We are under a tornado warning. If you are not already in shelter, you should be. Get on it!
{% if state_attr('binary_sensor.tornado_warning','confirmed' == true) %} {% if state_attr('binary_sensor.tornado_warning','confirmed') == true %}
A tornado has been confirmed in the area. Please take shelter immediately! A tornado has been confirmed in the area. Please take shelter immediately!
{% endif %} {% endif %}
{% elif is_state('binary_sensor.severe_thunderstorm_warning','on') %} {% elif is_state('binary_sensor.severe_thunderstorm_warning','on') %}
We are under a severe thunderstorm warning. We are under a severe thunderstorm warning.
{% if state_attr('binary_sensor.severe_thunderstorm_warning','tornado_possible' == true) %} {% if state_attr('binary_sensor.severe_thunderstorm_warning','tornado_possible') == true %}
The incoming storm has the potential to produce a tornado, so please pay attention and prepare to take shelter! The incoming storm has the potential to produce a tornado, so please pay attention and prepare to take shelter!
{% endif %} {% endif %}
{% if state_attr('binary_sensor.severe_thunderstorm_warning','considerable_destructive' == true) %} {% if state_attr('binary_sensor.severe_thunderstorm_warning','considerable_destructive') == true %}
This storm has the potential to cause considerable damage. Please take shelter and stay safe! This storm has the potential to cause considerable damage. Please take shelter and stay safe!
{% endif %} {% endif %}
{% elif states('sensor.weatheralerts_active_alerts') > '0' and method != 'dashboard' %} {% elif states('sensor.weatheralerts_defiance_ohz004_ohc039') > '0' and method != 'dashboard' %}
Current weather alerts: {{ states('sensor.weather_alert_string') }}. Current weather alerts: {{ states('sensor.weather_alert_string') }}.
{% endif %} {% endif %}
{% if method != 'dashboard' %} {% if method != 'dashboard' %}
@@ -39,9 +39,24 @@
There is lightning in the area. Nearest strike is {{ ltgdist }} miles away. There is lightning in the area. Nearest strike is {{ ltgdist }} miles away.
{% endif %} {% endif %}
{% if is_state('binary_sensor.raining','on') %} {% if is_state('binary_sensor.raining','on') %}
{% if states('sensor.home_tempest_cloud_sensors_precipitation_intensity') not in ['unavailable','unknown','no_rain'] %}
{% set intensity = states('sensor.home_tempest_cloud_sensors_precipitation_intensity') %}
{% if intensity == 'very_light' %}
There is currently a very light drizzle falling.
{% elif intensity == 'light' %}
There is currently light rain falling. Front porch windows should be okay, but other windows should be closed.
{% elif intensity == 'moderate' %}
It is raining pretty good outside, you should probably make sure all windows are closed.
{% elif intensity in ['heavy','very_heavy'] %}
There is heavy rain falling, please make sure all doors and windows are closed at this time.
{% elif intensity == 'extreme' %}
It is raining extremely hard outside. Make sure all doors and windows are closed, and I recommend staying inside until it calms down. Perhaps check for roof leaks as well.
{% endif %}
{% else %}
It is currently raining. Make sure all doors and windows are closed! It is currently raining. Make sure all doors and windows are closed!
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %}
{% if state_attr('weather.iron_nerd_weather_station','visibility') | int < 3 %} {% if state_attr('weather.iron_nerd_weather_station','visibility') | int < 3 %}
Caution: Current outdoor visibility is {{ state_attr('weather.iron_nerd_weather_station','visibility') }} miles. Caution: Current outdoor visibility is {{ state_attr('weather.iron_nerd_weather_station','visibility') }} miles.
{% endif %} {% endif %}
@@ -54,21 +69,21 @@
{% else %} {% else %}
{% set alertStrings = ['are','alerts','They are'] %} {% set alertStrings = ['are','alerts','They are'] %}
{% endif %} {% endif %}
{% if states('sensor.weatheralerts_active_alerts') > '0' %} {% if states('sensor.weatheralerts_defiance_ohz004_ohc039') > '0' %}
"There {{ alertStrings[0] }} {{ alerts }} weather {{ alertStrings[1] }} active. {{ alertStrings[2] }}, " "There {{ alertStrings[0] }} {{ alerts }} weather {{ alertStrings[1] }} active. {{ alertStrings[2] }}, "
{{ states('sensor.weather_alert_string') }}. {{ states('sensor.weather_alert_string') }}.
{% endif %} {% endif %}
{% if is_state('input_boolean.tornado_alarm','on') %} {% if is_state('input_boolean.tornado_alarm','on') %}
"We are under a tornado warning. If you are not already in shelter, you should be. Get on it! " "We are under a tornado warning. If you are not already in shelter, you should be. Get on it! "
{% if state_attr('binary_sensor.tornado_warning','confirmed' == true) %} {% if state_attr('binary_sensor.tornado_warning','confirmed') == true %}
"A tornado has been confirmed in the area. Please take shelter immediately! " "A tornado has been confirmed in the area. Please take shelter immediately! "
{% endif %} {% endif %}
{% elif is_state('binary_sensor.severe_thunderstorm_warning','on') %} {% elif is_state('binary_sensor.severe_thunderstorm_warning','on') %}
"We are under a severe thunderstorm warning. " "We are under a severe thunderstorm warning. "
{% if state_attr('binary_sensor.severe_thunderstorm_warning','tornado_possible' == true) %} {% if state_attr('binary_sensor.severe_thunderstorm_warning','tornado_possible') == true %}
"The incoming storm has the potential to produce a tornado, so please pay attention and prepare to take shelter! " "The incoming storm has the potential to produce a tornado, so please pay attention and prepare to take shelter! "
{% endif %} {% endif %}
{% if state_attr('binary_sensor.severe_thunderstorm_warning','considerable_destructive' == true) %} {% if state_attr('binary_sensor.severe_thunderstorm_warning','considerable_destructive') == true %}
"This storm has the potential to cause considerable damage. Please take shelter and stay safe! " "This storm has the potential to cause considerable damage. Please take shelter and stay safe! "
{% endif %} {% endif %}
{% elif is_state('input_boolean.tornado_watch','on') %} {% elif is_state('input_boolean.tornado_watch','on') %}
@@ -90,6 +105,42 @@
"The nearest lightning strike is {{ ltgdist }} miles away. " "The nearest lightning strike is {{ ltgdist }} miles away. "
{% endif %} {% endif %}
{% if is_state('binary_sensor.raining','on') %} {% if is_state('binary_sensor.raining','on') %}
{% if states('sensor.home_tempest_cloud_sensors_precipitation_intensity') not in ['unavailable','unknown','no_rain'] %}
{% set intensity = states('sensor.home_tempest_cloud_sensors_precipitation_intensity') %}
{% if intensity == 'very_light' %}
{{ [
"There is currently a very light drizzle falling. ",
"It is drizzling outside, but it is not too bad. ",
"The sky is spitting on us. That's not very nice, but a mild inconvenience at most. "
] | random }}
{% elif intensity == 'light' %}
{{ [
"There is currently light rain falling. ",
"It is raining lightly outside, but it is not too bad. ",
"It kinda wainin outside, but just a little. "
] | random }}
"Front porch windows should be okay, but other windows should be closed. "
{% elif intensity == 'moderate' %}
{{ [
"It is raining pretty good outside, you should probably make sure all windows are closed. ",
"It is raining at a decent rate outside, please make sure all windows are closed. "
"If you look outside, you will see that it wainin. "
] | random }}
{% elif intensity in ['heavy','very_heavy'] %}
{{ [
"There is heavy rain falling, please make sure all doors and windows are closed at this time. ",
"It is raining heavily outside, please make sure all doors and windows are closed. ",
"It wainin sideways! Please make sure all doors and windows are closed. "
] | random }}
{% elif intensity == 'extreme' %}
{{ [
"It is raining extremely hard outside. ",
"There is a torrential downpour outside. ",
"Holy crap, I have never seen it rain this hard before. "
] | random }}
"Make sure all doors and windows are closed, and I recommend staying inside until it calms down. Perhaps check for roof leaks as well. "
{% endif %}
{% else %}
{{ [ {{ [
"I have looked outside and determined that it is raining. ", "I have looked outside and determined that it is raining. ",
"If you look outside the window, you will notice, it wainin. ", "If you look outside the window, you will notice, it wainin. ",
@@ -97,6 +148,7 @@
"There appears to be excessive moisture currently falling from the sky. Plan accordingly. ", "There appears to be excessive moisture currently falling from the sky. Plan accordingly. ",
] | random }} ] | random }}
{% endif %} {% endif %}
{% endif %}
{% if (state_attr('weather.iron_nerd_weather_station','visibility') | int ) < 3 %} {% if (state_attr('weather.iron_nerd_weather_station','visibility') | int ) < 3 %}
{{ [ {{ [
"It is foggy outside, please exercise caution when driving. ", "It is foggy outside, please exercise caution when driving. ",

View File

@@ -1,39 +1,3 @@
sensor.ridis:
device_class: monetary
sensor.kecks:
device_class: monetary
sensor.circle_k:
device_class: monetary
sensor.the_big_fish:
device_class: monetary
sensor.meijer:
device_class: monetary
sensor.south_side_shell:
device_class: monetary
sensor.kroger:
device_class: monetary
sensor.marathon_cleveland_avenue:
device_class: monetary
sensor.speedway:
device_class: monetary
sensor.shell_ottawa_avenue:
device_class: monetary
sensor.the_barn:
device_class: monetary
sensor.east_side_shell:
device_class: monetary
sensor.local_minimum_gas_price: sensor.local_minimum_gas_price:
device_class: monetary device_class: monetary

View File

@@ -239,6 +239,9 @@ script:
server_maintenance_annc: server_maintenance_annc:
alias: Server Maintenance Announcement alias: Server Maintenance Announcement
sequence: sequence:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.server_maintenance
- service: script.status_annc - service: script.status_annc
data: data:
who: "{{ who|default('everywhere') }}" who: "{{ who|default('everywhere') }}"
@@ -248,6 +251,9 @@ script:
server_maintenance_done_annc: server_maintenance_done_annc:
alias: Server Maintenance Done Announcement alias: Server Maintenance Done Announcement
sequence: sequence:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.server_maintenance
- service: script.status_annc - service: script.status_annc
data: data:
who: "{{ who|default('everywhere') }}" who: "{{ who|default('everywhere') }}"

View File

@@ -25,91 +25,91 @@ template:
state: "{{ states('input_datetime.kallen_fan') != states('input_datetime.kallen_bedtime') }}" state: "{{ states('input_datetime.kallen_fan') != states('input_datetime.kallen_bedtime') }}"
- name: Living Room Front Hot - name: Living Room Front Hot
unique_id: 8fd9db5e-7883-42f3-8918-e78d52c680c6 unique_id: 8fd9db5e-7883-42f3-8918-e78d52c680c6
state: "{{ states('sensor.living_room_front_temperature') | float >= 80 }}" state: "{{ (states('sensor.living_room_front_temperature') | float) >= (states('input_number.living_room_hot_threshold') | float) }}"
device_class: heat device_class: heat
- name: Living Room Front Cold - name: Living Room Front Cold
unique_id: 48494ec8-a63f-4244-b619-ff78c44f28e8 unique_id: 48494ec8-a63f-4244-b619-ff78c44f28e8
state: "{{ states('sensor.living_room_front_temperature') | float <= 60 }}" state: "{{ (states('sensor.living_room_front_temperature') | float) <= (states('input_number.living_room_cold_threshold') | float) }}"
device_class: cold device_class: cold
- name: Downstairs Bathroom Hot - name: Downstairs Bathroom Hot
unique_id: b68adefa-e30e-4454-be21-2743af0f1674 unique_id: b68adefa-e30e-4454-be21-2743af0f1674
state: "{{ states('sensor.downstairs_bathroom_temperature') | float >= 80 }}" state: "{{ (states('sensor.downstairs_bathroom_temperature') | float) >= (states('input_number.downstairs_bathroom_hot_threshold') | float) }}"
device_class: heat device_class: heat
- name: Downstairs Bathroom Cold - name: Downstairs Bathroom Cold
unique_id: c477a45e-f11c-4af5-87aa-90f006b74ac5 unique_id: c477a45e-f11c-4af5-87aa-90f006b74ac5
state: "{{ states('sensor.downstairs_bathroom_temperature') | float <= 55 }}" state: "{{ (states('sensor.downstairs_bathroom_temperature') | float) <= (states('input_number.downstairs_bathroom_cold_threshold') | float) }}"
device_class: cold device_class: cold
- name: Stairwell Bottom Hot - name: Stairwell Bottom Hot
unique_id: ebd09e52-c31e-442e-8767-a8083b99c66c unique_id: ebd09e52-c31e-442e-8767-a8083b99c66c
state: "{{ states('sensor.stairwell_bottom_temperature') | float >= 80 }}" state: "{{ (states('sensor.stairwell_bottom_temperature') | float) >= (states('input_number.stairwell_bottom_hot_threshold') | float) }}"
device_class: heat device_class: heat
- name: Stairwell Bottom Cold - name: Stairwell Bottom Cold
unique_id: 3f8b5340-0fb4-489f-8df7-c2843316009f unique_id: 3f8b5340-0fb4-489f-8df7-c2843316009f
state: "{{ states('sensor.stairwell_bottom_temperature') | float <= 60 }}" state: "{{ (states('sensor.stairwell_bottom_temperature') | float) <= (states('input_number.stairwell_bottom_cold_threshold') | float) }}"
device_class: cold device_class: cold
- name: Upstairs Bathroom Hot - name: Upstairs Bathroom Hot
unique_id: 86394cea-9499-4595-85d1-2a026e8e2b27 unique_id: 86394cea-9499-4595-85d1-2a026e8e2b27
state: "{{ states('sensor.upstairs_bathroom_temperature') | float >= 80 }}" state: "{{ (states('sensor.upstairs_bathroom_temperature') | float) >= (states('input_number.upstairs_bathroom_hot_threshold') | float) }}"
device_class: heat device_class: heat
- name: Upstairs Bathroom Cold - name: Upstairs Bathroom Cold
unique_id: 5d720614-90f0-4e69-8086-8bc0f47a78eb unique_id: 5d720614-90f0-4e69-8086-8bc0f47a78eb
state: "{{ states('sensor.upstairs_bathroom_temperature') | float <= 60 }}" state: "{{ (states('sensor.upstairs_bathroom_temperature') | float) <= (states('input_number.upstairs_bathroom_cold_threshold') | float) }}"
device_class: cold device_class: cold
- name: Emma Bedroom Hot - name: Emma Bedroom Hot
unique_id: b453e23a-f3c9-4fab-bf82-d08af05e8a94 unique_id: b453e23a-f3c9-4fab-bf82-d08af05e8a94
state: "{{ states('sensor.emma_bedroom_temperature') | float >= 75 }}" state: "{{ (states('sensor.emma_bedroom_temperature') | float) >= (states('input_number.emma_bedroom_hot_threshold') | float) }}"
device_class: heat device_class: heat
- name: Emma Bedroom Cold - name: Emma Bedroom Cold
unique_id: 41174b21-a46f-4deb-8dbc-61a356b33db1 unique_id: 41174b21-a46f-4deb-8dbc-61a356b33db1
state: "{{ states('sensor.emma_bedroom_temperature') | float <= 60 }}" state: "{{ (states('sensor.emma_bedroom_temperature') | float) <= (states('input_number.emma_bedroom_cold_threshold') | float) }}"
device_class: cold device_class: cold
- name: Basement Studio Hot - name: Basement Studio Hot
unique_id: 2c5626e9-9a3f-43b0-9595-3a15c9434b0f unique_id: 2c5626e9-9a3f-43b0-9595-3a15c9434b0f
state: "{{ states('sensor.basement_studio_temperature') | float >= 80 }}" state: "{{ (states('sensor.basement_studio_temperature') | float) >= (states('input_number.basement_studio_hot_threshold') | float) }}"
device_class: heat device_class: heat
- name: Basement Studio Cold - name: Basement Studio Cold
unique_id: 985f4f8c-2297-4d32-ace7-818534c5e4b5 unique_id: 985f4f8c-2297-4d32-ace7-818534c5e4b5
state: "{{ states('sensor.basement_studio_temperature') | float <= 60 }}" state: "{{ (states('sensor.basement_studio_temperature') | float) <= (states('input_number.basement_studio_cold_threshold') | float) }}"
device_class: cold device_class: cold
- name: Living Room Back Hot - name: Living Room Back Hot
unique_id: 9a2be430-9322-492b-a0c1-bb0f034979f5 unique_id: 9a2be430-9322-492b-a0c1-bb0f034979f5
state: "{{ states('sensor.living_room_back_temperature') | float >= 80 }}" state: "{{ (states('sensor.living_room_back_temperature') | float) >= (states('input_number.living_room_hot_threshold') | float) }}"
device_class: heat device_class: heat
- name: Living Room Back Cold - name: Living Room Back Cold
unique_id: 524c2ad1-1f44-42c0-b06b-28a40d439832 unique_id: 524c2ad1-1f44-42c0-b06b-28a40d439832
state: "{{ states('sensor.living_room_back_temperature') | float <= 60 }}" state: "{{ (states('sensor.living_room_back_temperature') | float) <= (states('input_number.living_room_cold_threshold') | float) }}"
device_class: cold device_class: cold
- name: Mud Room Hot - name: Mud Room Hot
unique_id: 920fa45e-8c6e-4518-9aea-5141e15a4350 unique_id: 920fa45e-8c6e-4518-9aea-5141e15a4350
state: "{{ states('sensor.mud_room_temperature') | float >= 80 }}" state: "{{ (states('sensor.mud_room_temperature') | float) >= (states('input_number.mud_room_hot_threshold') | float) }}"
device_class: heat device_class: heat
- name: Mud Room Cold - name: Mud Room Cold
unique_id: 459998f5-7011-4e96-aa8a-076591a1b1ce unique_id: 459998f5-7011-4e96-aa8a-076591a1b1ce
state: "{{ states('sensor.mud_room_temperature') | float <= 60 }}" state: "{{ (states('sensor.mud_room_temperature') | float) <= (states('input_number.mud_room_cold_threshold') | float) }}"
device_class: cold device_class: cold
- name: Stairwell Top Hot - name: Stairwell Top Hot
unique_id: 22d325db-e213-4d7b-81a8-a7ba3798e751 unique_id: 22d325db-e213-4d7b-81a8-a7ba3798e751
state: "{{ states('sensor.stairwell_top_temperature') | float >= 80 }}" state: "{{ (states('sensor.stairwell_top_temperature') | float) >= (states('input_number.stairwell_top_hot_threshold') | float) }}"
device_class: heat device_class: heat
- name: Stairwell Top Cold - name: Stairwell Top Cold
unique_id: 925bf2d5-cfa6-4508-98c4-b7ad185ddbc1 unique_id: 925bf2d5-cfa6-4508-98c4-b7ad185ddbc1
state: "{{ states('sensor.stairwell_top_temperature') | float <= 60 }}" state: "{{ (states('sensor.stairwell_top_temperature') | float) <= (states('input_number.stairwell_top_cold_threshold') | float) }}"
device_class: cold device_class: cold
- name: Kallen Bedroom Hot - name: Kallen Bedroom Hot
unique_id: e47ba60f-e9b2-48d4-899b-f16fdb146e75 unique_id: e47ba60f-e9b2-48d4-899b-f16fdb146e75
state: "{{ states('sensor.kallen_bedroom_temperature') | float >= 75 }}" state: "{{ (states('sensor.kallen_bedroom_temperature') | float) >= (states('input_number.kallen_bedroom_hot_threshold') | float) }}"
device_class: heat device_class: heat
- name: Kallen Bedroom Cold - name: Kallen Bedroom Cold
unique_id: 69115462-c159-4f5b-b047-ff8a2600fa7d unique_id: 69115462-c159-4f5b-b047-ff8a2600fa7d
state: "{{ states('sensor.kallen_bedroom_temperature') | float <= 60 }}" state: "{{ (states('sensor.kallen_bedroom_temperature') | float) <= (states('input_number.kallen_bedroom_cold_threshold') | float) }}"
device_class: cold device_class: cold
- name: Master Bedroom Hot - name: Master Bedroom Hot
unique_id: ca7c96e5-ea83-4698-a43c-16e09af6d6fd unique_id: ca7c96e5-ea83-4698-a43c-16e09af6d6fd
state: "{{ states('sensor.master_bedroom_temperature') | float >= 75 }}" state: "{{ (states('sensor.master_bedroom_temperature') | float) >= (states('input_number.master_bedroom_hot_threshold') | float) }}"
device_class: heat device_class: heat
- name: Master Bedroom Cold - name: Master Bedroom Cold
unique_id: 1577cb2c-234d-41c8-a12e-5111a77df958 unique_id: 1577cb2c-234d-41c8-a12e-5111a77df958
state: "{{ states('sensor.master_bedroom_temperature') | float <= 60 }}" state: "{{ (states('sensor.master_bedroom_temperature') | float) <= (states('input_number.master_bedroom_cold_threshold') | float) }}"
device_class: cold device_class: cold
- sensor: - sensor:
- name: "Master Bedroom Target Temp" - name: "Master Bedroom Target Temp"
@@ -324,6 +324,13 @@ input_number:
step: 1 step: 1
unit_of_measurement: °F unit_of_measurement: °F
icon: mdi:thermometer icon: mdi:thermometer
master_bedroom_mode_switch_threshold:
name: Master Bedroom Mode Switch Threshold
min: 60
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer
emma_bedroom_daytime_temp: emma_bedroom_daytime_temp:
name: Emma Bedroom Daytime Temp name: Emma Bedroom Daytime Temp
min: 65 min: 65
@@ -345,6 +352,20 @@ input_number:
step: 1 step: 1
unit_of_measurement: °F unit_of_measurement: °F
icon: mdi:thermometer icon: mdi:thermometer
emma_bedroom_heater_run_threshold:
name: Emma Bedroom Heater Run Threshold
min: 40
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer
emma_bedroom_heater_shutoff_threshold:
name: Emma Bedroom Heater Shutoff Threshold
min: 40
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer
emma_bedroom_aircon_run_threshold: emma_bedroom_aircon_run_threshold:
name: Emma Bedroom Aircon Run Threshold name: Emma Bedroom Aircon Run Threshold
min: 40 min: 40
@@ -373,6 +394,13 @@ input_number:
step: 1 step: 1
unit_of_measurement: °F unit_of_measurement: °F
icon: mdi:thermometer icon: mdi:thermometer
emma_bedroom_mode_switch_threshold:
name: Emma Bedroom Mode Switch Threshold
min: 60
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer
kallen_fan_threshold: kallen_fan_threshold:
name: Kallen Fan Threshold name: Kallen Fan Threshold
min: 40 min: 40
@@ -429,6 +457,146 @@ input_number:
step: 1 step: 1
unit_of_measurement: °F unit_of_measurement: °F
icon: mdi:thermometer icon: mdi:thermometer
living_room_hot_threshold:
name: Living Room Hot Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-up
living_room_cold_threshold:
name: Living Room Cold Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-down
downstairs_bathroom_hot_threshold:
name: Downstairs Bathroom Hot Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-up
downstairs_bathroom_cold_threshold:
name: Downstairs Bathroom Cold Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-down
stairwell_bottom_hot_threshold:
name: Stairwell Bottom Hot Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-up
stairwell_bottom_cold_threshold:
name: Stairwell Bottom Cold Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-down
upstairs_bathroom_hot_threshold:
name: Upstairs Bathroom Hot Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-up
upstairs_bathroom_cold_threshold:
name: Upstairs Bathroom Cold Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-down
emma_bedroom_hot_threshold:
name: Emma Bedroom Hot Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-up
emma_bedroom_cold_threshold:
name: Emma Bedroom Cold Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-down
basement_studio_hot_threshold:
name: Basement Studio Hot Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-up
basement_studio_cold_threshold:
name: Basement Studio Cold Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-down
mud_room_hot_threshold:
name: Mud Room Hot Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-up
mud_room_cold_threshold:
name: Mud Room Cold Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-down
stairwell_top_hot_threshold:
name: Stairwell Top Hot Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-up
stairwell_top_cold_threshold:
name: Stairwell Top Cold Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-down
kallen_bedroom_hot_threshold:
name: Kallen Bedroom Hot Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-up
kallen_bedroom_cold_threshold:
name: Kallen Bedroom Cold Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-down
master_bedroom_hot_threshold:
name: Master Bedroom Hot Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-up
master_bedroom_cold_threshold:
name: Master Bedroom Cold Threshold
min: 50
max: 80
step: 1
unit_of_measurement: °F
icon: mdi:thermometer-chevron-down
climate: climate:
- platform: generic_thermostat - platform: generic_thermostat

View File

@@ -1,6 +1,6 @@
weather: template:
- platform: template - weather:
name: "Iron Nerd Weather Station" - name: "Iron Nerd Weather Station"
condition_template: > condition_template: >
{% set stations = [ {% set stations = [
states.weather.home_tempest_forecast_home, states.weather.home_tempest_forecast_home,
@@ -34,9 +34,9 @@ weather:
{{ states(sensor) | float }} {{ states(sensor) | float }}
apparent_temperature_template: > apparent_temperature_template: >
{% set apparent_temps = [ {% set apparent_temps = [
states.sensor.home_tempest_feels_like,
states.sensor.home_temperature_feels_like,
states.sensor.pirateweather_apparent_temperature, states.sensor.pirateweather_apparent_temperature,
states.sensor.home_temperature_feels_like,
states.sensor.home_tempest_feels_like,
states.sensor.stratton_ave_apparent_temperature states.sensor.stratton_ave_apparent_temperature
] %} ] %}
{% set sensor = apparent_temps | selectattr('state','ne','unavailable') | selectattr('state','ne','unknown') | map(attribute='entity_id') | list | first %} {% set sensor = apparent_temps | selectattr('state','ne','unavailable') | selectattr('state','ne','unknown') | map(attribute='entity_id') | list | first %}
@@ -68,6 +68,7 @@ weather:
{{ forecasts | selectattr('forecast','defined') | map(attribute='forecast') | list | first }} {{ forecasts | selectattr('forecast','defined') | map(attribute='forecast') | list | first }}
pressure_template: > pressure_template: >
{% set pressures = [ {% set pressures = [
states.sensor.home_tempest_local_slp,
states.sensor.home_tempest_cloud_sensors_sea_level_pressure, states.sensor.home_tempest_cloud_sensors_sea_level_pressure,
states.sensor.home_pressure, states.sensor.home_pressure,
states.sensor.kdfi_barometric_pressure states.sensor.kdfi_barometric_pressure
@@ -111,8 +112,8 @@ weather:
{{ states(result) | float }} {{ states(result) | float }}
precipitation_unit: in precipitation_unit: in
- platform: template - weather:
name: "Iron Nerd Weather Station - Hourly" - name: "Iron Nerd Weather Station - Hourly"
condition_template: > condition_template: >
{% set stations = [ {% set stations = [
states.weather.home_tempest_forecast_home, states.weather.home_tempest_forecast_home,
@@ -147,9 +148,9 @@ weather:
{{ states(sensor) | float }} {{ states(sensor) | float }}
apparent_temperature_template: > apparent_temperature_template: >
{% set apparent_temps = [ {% set apparent_temps = [
states.sensor.home_tempest_feels_like,
states.sensor.home_temperature_feels_like,
states.sensor.pirateweather_apparent_temperature, states.sensor.pirateweather_apparent_temperature,
states.sensor.home_temperature_feels_like,
states.sensor.home_tempest_feels_like,
states.sensor.stratton_ave_apparent_temperature states.sensor.stratton_ave_apparent_temperature
] %} ] %}
{% set sensor = apparent_temps | selectattr('state','ne','unavailable') | selectattr('state','ne','unknown') | map(attribute='entity_id') | list | first %} {% set sensor = apparent_temps | selectattr('state','ne','unavailable') | selectattr('state','ne','unknown') | map(attribute='entity_id') | list | first %}
@@ -173,6 +174,7 @@ weather:
{{ forecasts | selectattr('forecast','defined') | map(attribute='forecast') | list | first }} {{ forecasts | selectattr('forecast','defined') | map(attribute='forecast') | list | first }}
pressure_template: > pressure_template: >
{% set pressures = [ {% set pressures = [
states.sensor.home_tempest_local_slp,
states.sensor.home_tempest_cloud_sensors_sea_level_pressure, states.sensor.home_tempest_cloud_sensors_sea_level_pressure,
states.sensor.home_pressure, states.sensor.home_pressure,
states.sensor.kdfi_barometric_pressure states.sensor.kdfi_barometric_pressure
@@ -216,8 +218,8 @@ weather:
{{ states(result) | float }} {{ states(result) | float }}
precipitation_unit: in precipitation_unit: in
- platform: template - weather:
name: "Ashland Weather Station" - name: "Ashland Weather Station"
condition_template: > condition_template: >
{% set stations = [ {% set stations = [
states.weather.ashland, states.weather.ashland,
@@ -297,77 +299,6 @@ weather:
{{ states(result) | float }} {{ states(result) | float }}
precipitation_unit: in precipitation_unit: in
# binary_sensor:
# - platform: bayesian
# unique_id: 3e9640d9-57a0-4495-8731-e64b34774065
# name: Raining Bayesian
# prior: 0.17
# probability_threshold: 0.6
# observations:
# - entity_id: "sensor.pirateweather_precip"
# prob_given_true: 0.13
# prob_given_false: 0.005
# platform: "state"
# to_state: "rain"
# - entity_id: "sensor.openweathermap_precipitation_kind"
# prob_given_true: 0.75
# prob_given_false: 0.005
# platform: "state"
# to_state: "rain"
# - entity_id: "sensor.tomorrow_io_stratton_ave_precipitation_type"
# prob_given_true: 0.99
# prob_given_false: 0.2
# platform: "state"
# to_state: "rain"
# - entity_id: "sensor.stratton_ave_precipitation"
# prob_given_true: 0.99
# prob_given_false: 0.2
# platform: "numeric_state"
# above: 0
sensor:
- platform: weatheralerts
state: OH
zone: 4
county: 39
# - platform: statistics
# unique_id: b5996cb4-b715-4fc9-b3d8-98fc12c2b7dd
# name: Outside Temp Average
# entity_id: sensor.pirateweather_temperature
# state_characteristic: average_linear
# max_age:
# days: 7
# - platform: statistics
# unique_id: 6192c95a-8fd1-4ba0-87de-d06fdc071d6b
# name: Apparent Temp Average
# entity_id: sensor.stratton_ave_apparent_temperature
# state_characteristic: average_linear
# max_age:
# days: 7
# - platform: statistics
# unique_id: 7b9c269c-40b7-4255-a051-2d1b7a6af017
# name: Wind Speed Average
# entity_id: sensor.pirateweather_wind_speed
# state_characteristic: average_linear
# max_age:
# days: 7
# - platform: statistics
# unique_id: b43d053f-aafb-4237-a742-a2ca841498fa
# name: Visibility Stats Average
# entity_id: sensor.kdfi_visibility
# state_characteristic: average_linear
# max_age:
# days: 7
# - platform: statistics
# unique_id: b1206da2-fa00-4f7d-9af4-f2cf6794bd24
# name: Humidity Stats Average
# entity_id: sensor.pirateweather_humidity
# state_characteristic: average_linear
# max_age:
# days: 7
template:
- trigger: - trigger:
- platform: time_pattern - platform: time_pattern
minutes: /15 minutes: /15
@@ -768,7 +699,7 @@ template:
{% endif %} {% endif %}
- name: "Lightning Warning" - name: "Lightning Warning"
unique_id: edaddfc4-f7f0-4d75-aada-a2c588afe029 unique_id: edaddfc4-f7f0-4d75-aada-a2c588afe029
state: "{{ states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour') | int > 0 }}" state: "{{ (states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour') | int > 0) or is_state('binary_sensor.home_tempest_cloud_binary_sensors_is_lightning','on') }}"
device_class: safety device_class: safety
attributes: attributes:
current_strikes: "{{ states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour') | int }}" current_strikes: "{{ states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour') | int }}"
@@ -806,6 +737,11 @@ template:
states('sensor.home_tempest_cloud_sensors_precipitation_description') in ['rain','heavy_rain'] or states('sensor.home_tempest_cloud_sensors_precipitation_description') in ['rain','heavy_rain'] or
is_state('binary_sensor.home_tempest_cloud_binary_sensors_is_raining','on') }} is_state('binary_sensor.home_tempest_cloud_binary_sensors_is_raining','on') }}
icon: "{{ 'mdi:weather-rainy' if this.state == 'on' else 'mdi:weather-cloudy' }}" icon: "{{ 'mdi:weather-rainy' if this.state == 'on' else 'mdi:weather-cloudy' }}"
- name: Tornado Possible
unique_id: 541fed1d-2086-47ee-be1b-3f1ea4199e1f
state: "{{ state_attr('binary_sensor.severe_thunderstorm_warning','tornado_possible') }}"
device_class: safety
icon: "{{ 'mdi:weather-tornado' if this.state == 'on' else 'mdi:close' }}"
- sensor: - sensor:
# - name: Total Rain Sensors # - name: Total Rain Sensors
# unique_id: b7c2e709-8f5c-4263-aa1d-fa8280afcddb # unique_id: b7c2e709-8f5c-4263-aa1d-fa8280afcddb
@@ -858,30 +794,30 @@ template:
icon: mdi:weather-sunny icon: mdi:weather-sunny
state: >- state: >-
{% from 'formatting.jinja' import cleanup %} {% from 'formatting.jinja' import cleanup %}
{%- macro getReport() -%} {% macro getReport() %}
{{ [ {{ [
'Today in Defiance ', 'Today in Defiance ',
'Later Today ', 'Later Today ',
'For the rest of the day ' 'For the rest of the day '
] | random }} ] | random }}
expect a high of {{ states('sensor.todays_high_temp') }} expect a high of {{ states('sensor.todays_high_temp') }}
{%- if states('sensor.current_forecast') == 'sunny' and is_state('binary_sensor.night','off')%} {% if states('sensor.current_forecast') == 'sunny' and is_state('binary_sensor.night','off')%}
{{ [ {{ [
'and sunny. ', 'and sunny. ',
'with sun. ', 'with sun. ',
'with sunny conditions prevailing. ' 'with sunny conditions prevailing. '
] | random }} ] | random }}
{%- elif states('sensor.current_forecast') == 'sunny' and is_state('binary_sensor.night','on') %} {% elif states('sensor.current_forecast') == 'sunny' and is_state('binary_sensor.night','on') %}
{{ [ {{ [
'and clear. ', 'and clear. ',
'with clear skies. ' 'with clear skies. '
] | random }} ] | random }}
{%- elif states('sensor.current_forecast') == 'clear-night' %} {% elif states('sensor.current_forecast') == 'clear-night' %}
{{ [ {{ [
'and clear. ', 'and clear. ',
'with clear skies. ' 'with clear skies. '
] | random }} ] | random }}
{%- elif states('sensor.current_forecast') == 'rainy' %} {% elif states('sensor.current_forecast') == 'rainy' %}
{{ [ {{ [
'with rain. ', 'with rain. ',
'with showers. ', 'with showers. ',
@@ -893,7 +829,7 @@ template:
] | random }} ] | random }}
near {{ state_attr('sensor.current_forecast','precipitation') }} inches near {{ state_attr('sensor.current_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{%- elif states('sensor.current_forecast') == 'snowy' %} {% elif states('sensor.current_forecast') == 'snowy' %}
{{ [ {{ [
'with snow. ', 'with snow. ',
'with snow showers. ' 'with snow showers. '
@@ -904,19 +840,19 @@ template:
] | random }} ] | random }}
near {{ state_attr('sensor.current_forecast','precipitation') }} inches near {{ state_attr('sensor.current_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{%- elif states('sensor.current_forecast') == 'snowy-rainy' %} {% elif states('sensor.current_forecast') == 'snowy-rainy' %}
{{ [ {{ [
'with mix preciptation possible. ', 'with mix preciptation possible. ',
'with snow and rain showers. ' 'with snow and rain showers. '
] | random }} ] | random }}
Total accumulation near {{ state_attr('sensor.current_forecast','precipitation') }} inches Total accumulation near {{ state_attr('sensor.current_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{%- elif states('sensor.current_forecast') == 'windy' %} {% elif states('sensor.current_forecast') == 'windy' %}
{{ [ {{ [
'and windy. ', 'and windy. ',
'with lots of wind. ' 'with lots of wind. '
] | random }} ] | random }}
{%- elif states('sensor.current_forecast') == 'fog' %} {% elif states('sensor.current_forecast') == 'fog' %}
{{ [ {{ [
'and foggy. ', 'and foggy. ',
'with some fog. ' 'with some fog. '
@@ -932,7 +868,7 @@ template:
'with partly cloudy skies. ', 'with partly cloudy skies. ',
'with scattered clouds ' 'with scattered clouds '
] | random }} ] | random }}
{%- elif states('sensor.current_forecast') == 'hail' %} {% elif states('sensor.current_forecast') == 'hail' %}
{{ [ {{ [
'with severe thunderstorms possible. ', 'with severe thunderstorms possible. ',
'with hail possible. ' 'with hail possible. '
@@ -943,7 +879,7 @@ template:
] | random }} ] | random }}
near {{ state_attr('sensor.current_forecast','precipitation') }} inches near {{ state_attr('sensor.current_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{%- elif states('sensor.current_forecast') == 'lightning' %} {% elif states('sensor.current_forecast') == 'lightning' %}
{{ [ {{ [
'with thunderstorms possible. ', 'with thunderstorms possible. ',
'with the potential of thunderstorms. ' 'with the potential of thunderstorms. '
@@ -954,14 +890,14 @@ template:
] | random }} ] | random }}
near {{ state_attr('sensor.current_forecast','precipitation') }} inches near {{ state_attr('sensor.current_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{% endif -%} {% endif %}
{{ [ {{ [
'Later tonight expect a low of ', 'Later tonight expect a low of ',
'Overnight expect a low of ' 'Overnight expect a low of '
] | random }} ] | random }}
{{ states('sensor.overnight_lowest_temperature') }} degrees. {{ states('sensor.overnight_lowest_temperature') }} degrees.
{%- endmacro -%} {% endmacro %}
{{- cleanup(getReport()) -}} {{ cleanup(getReport()) }}
- name: Tomorrows Forecast - name: Tomorrows Forecast
unique_id: a8ae26b0-ed26-4568-bb2b-f7c72707b009 unique_id: a8ae26b0-ed26-4568-bb2b-f7c72707b009
icon: mdi:weather-sunny icon: mdi:weather-sunny
@@ -989,20 +925,20 @@ template:
icon: mdi:weather-sunny icon: mdi:weather-sunny
state: >- state: >-
{% from 'formatting.jinja' import cleanup %} {% from 'formatting.jinja' import cleanup %}
{%- macro getReport() -%} {% macro getReport() %}
{{ [ {{ [
'Tomorrow in Defiance ', 'Tomorrow in Defiance ',
'For the next day ', 'For the next day ',
'Tomorrow ' 'Tomorrow '
] | random }} ] | random }}
expect a high of {{ state_attr('sensor.tomorrow_forecast','high_temp') }} degrees. expect a high of {{ state_attr('sensor.tomorrow_forecast','high_temp') }} degrees.
{%- if states('sensor.tomorrow_forecast') == 'sunny' %} {% if states('sensor.tomorrow_forecast') == 'sunny' %}
{{ [ {{ [
'and sunny. ', 'and sunny. ',
'with sun. ', 'with sun. ',
'with sunny conditions prevailing. ' 'with sunny conditions prevailing. '
] | random }} ] | random }}
{%- elif states('sensor.tomorrow_forecast') == 'rainy' %} {% elif states('sensor.tomorrow_forecast') == 'rainy' %}
{{ [ {{ [
'with rain. ', 'with rain. ',
'with showers. ', 'with showers. ',
@@ -1014,7 +950,7 @@ template:
] | random }} ] | random }}
near {{ state_attr('sensor.tomorrow_forecast','precipitation') }} inches near {{ state_attr('sensor.tomorrow_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{%- elif states('sensor.tomorrow_forecast') == 'snowy' %} {% elif states('sensor.tomorrow_forecast') == 'snowy' %}
{{ [ {{ [
'with snow. ', 'with snow. ',
'with snow showers. ' 'with snow showers. '
@@ -1025,19 +961,19 @@ template:
] | random }} ] | random }}
near {{ state_attr('sensor.tomorrow_forecast','precipitation') }} inches near {{ state_attr('sensor.tomorrow_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{%- elif states('sensor.tomorrow_forecast') == 'snowy-rainy' %} {% elif states('sensor.tomorrow_forecast') == 'snowy-rainy' %}
{{ [ {{ [
'with mix preciptation possible. ', 'with mix preciptation possible. ',
'with snow and rain showers. ' 'with snow and rain showers. '
] | random }} ] | random }}
Total accumulation near {{ state_attr('sensor.tomorrow_forecast','precipitation') }} inches Total accumulation near {{ state_attr('sensor.tomorrow_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{%- elif states('sensor.tomorrow_forecast') == 'windy' %} {% elif states('sensor.tomorrow_forecast') == 'windy' %}
{{ [ {{ [
'and windy. ', 'and windy. ',
'with lots of wind. ' 'with lots of wind. '
] | random }} ] | random }}
{%- elif states('sensor.current_forecast') == 'fog' %} {% elif states('sensor.current_forecast') == 'fog' %}
{{ [ {{ [
'and foggy. ', 'and foggy. ',
'with some fog. ' 'with some fog. '
@@ -1053,7 +989,7 @@ template:
'with partly cloudy skies. ', 'with partly cloudy skies. ',
'with scattered clouds ' 'with scattered clouds '
] | random }} ] | random }}
{%- elif states('sensor.tomorrow_forecast') == 'hail' %} {% elif states('sensor.tomorrow_forecast') == 'hail' %}
{{ [ {{ [
'with severe thunderstorms possible. ', 'with severe thunderstorms possible. ',
'with hail possible. ' 'with hail possible. '
@@ -1064,7 +1000,7 @@ template:
] | random }} ] | random }}
near {{ state_attr('sensor.current_forecast','precipitation') }} inches near {{ state_attr('sensor.current_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{%- elif states('sensor.current_forecast') == 'lightning' %} {% elif states('sensor.current_forecast') == 'lightning' %}
{{ [ {{ [
'with thunderstorms possible. ', 'with thunderstorms possible. ',
'with the potential of thunderstorms. ' 'with the potential of thunderstorms. '
@@ -1075,19 +1011,19 @@ template:
] | random }} ] | random }}
near {{ state_attr('sensor.current_forecast','precipitation') }} inches near {{ state_attr('sensor.current_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{% endif -%} {% endif %}
{{ [ {{ [
' Tomorrow night expect a low of ' ' Tomorrow night expect a low of '
] | random }} ] | random }}
{{ state_attr('sensor.tomorrow_forecast','overnight_low') }} degrees. {{ state_attr('sensor.tomorrow_forecast','overnight_low') }} degrees.
{%- endmacro -%} {% endmacro %}
{{- cleanup(getReport()) -}} {{ cleanup(getReport()) }}
- name: Current Conditions - name: Current Conditions
unique_id: 70db7e57-08db-48b2-919b-03b5face37b9 unique_id: 70db7e57-08db-48b2-919b-03b5face37b9
icon: mdi:weather-sunny icon: mdi:weather-sunny
state: >- state: >-
{% from 'formatting.jinja' import cleanup %} {% from 'formatting.jinja' import cleanup %}
{%- macro getReport() -%} {% macro getReport() %}
The Weather in Defiance The Weather in Defiance
{{ [ {{ [
' is ', ' is ',
@@ -1125,14 +1061,14 @@ template:
{% else %} {% else %}
and {{ states.weather.iron_nerd_weather_station.state }} and {{ states.weather.iron_nerd_weather_station.state }}
{% endif %} {% endif %}
{%- endmacro -%} {% endmacro %}
{{- cleanup(getReport()) -}} {{ cleanup(getReport()) }}
- name: Current Conditions Detail - name: Current Conditions Detail
unique_id: 2b3687d1-bdd5-4551-8c0a-05b1ff617543 unique_id: 2b3687d1-bdd5-4551-8c0a-05b1ff617543
icon: mdi:weather-sunny icon: mdi:weather-sunny
state: >- state: >-
{% from 'formatting.jinja' import cleanup %} {% from 'formatting.jinja' import cleanup %}
{%- macro getReport() -%} {% macro getReport() %}
The Weather in Defiance The Weather in Defiance
{{ [ {{ [
' is ', ' is ',
@@ -1170,29 +1106,29 @@ template:
{% else %} {% else %}
and {{ states.weather.iron_nerd_weather_station.state }}. and {{ states.weather.iron_nerd_weather_station.state }}.
{% endif %} {% endif %}
{%- if is_state('binary_sensor.early_night_mode','off')%} {% if is_state('binary_sensor.early_night_mode','off')%}
{{ [ {{ [
'Later Today ', 'Later Today ',
'For the rest of the day ' 'For the rest of the day '
] | random }} ] | random }}
expect a high of {{ states('sensor.todays_high_temp') }} expect a high of {{ states('sensor.todays_high_temp') }}
{%- if states('sensor.current_forecast') == 'sunny' and is_state('binary_sensor.night','off')%} {% if states('sensor.current_forecast') == 'sunny' and is_state('binary_sensor.night','off')%}
{{ [ {{ [
'and sunny. ', 'and sunny. ',
'with sun. ', 'with sun. ',
'with sunny conditions prevailing. ' 'with sunny conditions prevailing. '
] | random }} ] | random }}
{%- elif states('sensor.current_forecast') == 'sunny' and is_state('binary_sensor.night','on') %} {% elif states('sensor.current_forecast') == 'sunny' and is_state('binary_sensor.night','on') %}
{{ [ {{ [
'and clear. ', 'and clear. ',
'with clear skies. ' 'with clear skies. '
] | random }} ] | random }}
{%- elif states('sensor.current_forecast') == 'clear-night' %} {% elif states('sensor.current_forecast') == 'clear-night' %}
{{ [ {{ [
'and clear. ', 'and clear. ',
'with clear skies. ' 'with clear skies. '
] | random }} ] | random }}
{%- elif states('sensor.current_forecast') == 'rainy' %} {% elif states('sensor.current_forecast') == 'rainy' %}
{{ [ {{ [
'with rain. ', 'with rain. ',
'with showers. ', 'with showers. ',
@@ -1203,7 +1139,7 @@ template:
'Total Rainfall amounts ' 'Total Rainfall amounts '
] | random }} ] | random }}
near {{ state_attr('sensor.current_forecast','precipitation') }} inches {{ 'possible. ' }} near {{ state_attr('sensor.current_forecast','precipitation') }} inches {{ 'possible. ' }}
{%- elif states('sensor.current_forecast') == 'snowy' %} {% elif states('sensor.current_forecast') == 'snowy' %}
{{ [ {{ [
'with snow. ', 'with snow. ',
'with snow showers. ' 'with snow showers. '
@@ -1214,18 +1150,18 @@ template:
] | random }} ] | random }}
near {{ state_attr('sensor.current_forecast','precipitation') }} inches near {{ state_attr('sensor.current_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{%- elif states('sensor.current_forecast') == 'snowy-rainy' %} {% elif states('sensor.current_forecast') == 'snowy-rainy' %}
{{ [ {{ [
'with mix preciptation possible. ', 'with mix preciptation possible. ',
'with snow and rain showers. ' 'with snow and rain showers. '
] | random }} ] | random }}
Total accumulation near {{ state_attr('sensor.current_forecast','precipitation') }} inches {{ 'possible. ' }} Total accumulation near {{ state_attr('sensor.current_forecast','precipitation') }} inches {{ 'possible. ' }}
{%- elif states('sensor.current_forecast') == 'windy' %} {% elif states('sensor.current_forecast') == 'windy' %}
{{ [ {{ [
'and windy. ', 'and windy. ',
'with lots of wind. ' 'with lots of wind. '
] | random }} ] | random }}
{%- elif states('sensor.current_forecast') == 'fog' %} {% elif states('sensor.current_forecast') == 'fog' %}
{{ [ {{ [
'and foggy. ', 'and foggy. ',
'with some fog. ' 'with some fog. '
@@ -1241,7 +1177,7 @@ template:
'with partly cloudy skies. ', 'with partly cloudy skies. ',
'with scattered clouds. ' 'with scattered clouds. '
] | random }} ] | random }}
{%- elif states('sensor.current_forecast') == 'hail' %} {% elif states('sensor.current_forecast') == 'hail' %}
{{ [ {{ [
'with severe thunderstorms possible. ', 'with severe thunderstorms possible. ',
'with hail possible. ' 'with hail possible. '
@@ -1252,7 +1188,7 @@ template:
] | random }} ] | random }}
near {{ state_attr('sensor.current_forecast','precipitation') }} inches near {{ state_attr('sensor.current_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{%- elif states('sensor.current_forecast') == 'lightning' %} {% elif states('sensor.current_forecast') == 'lightning' %}
{{ [ {{ [
'with thunderstorms possible. ', 'with thunderstorms possible. ',
'with the potential of thunderstorms. ' 'with the potential of thunderstorms. '
@@ -1263,21 +1199,21 @@ template:
] | random }} ] | random }}
near {{ state_attr('sensor.current_forecast','precipitation') }} inches near {{ state_attr('sensor.current_forecast','precipitation') }} inches
{{ 'possible. ' }} {{ 'possible. ' }}
{% endif -%} {% endif %}
{{ [ {{ [
'Later tonight expect a low of ', 'Later tonight expect a low of ',
'Overnight expect a low of ' 'Overnight expect a low of '
] | random }} ] | random }}
{{ states('sensor.overnight_lowest_temperature') }} degrees. {{ states('sensor.overnight_lowest_temperature') }} degrees.
{%- else -%} {% else %}
{{ [ {{ [
'Tonight expect a low of ', 'Tonight expect a low of ',
'Overnight expect a low of ' 'Overnight expect a low of '
] | random }} ] | random }}
{{ states('sensor.overnight_lowest_temperature') }} degrees. {{ states('sensor.overnight_lowest_temperature') }} degrees.
{% endif %} {% endif %}
{%- endmacro -%} {% endmacro %}
{{- cleanup(getReport()) -}} {{ cleanup(getReport()) }}
- name: 'Outside Pressure' - name: 'Outside Pressure'
unique_id: ac2944bb-e9d7-40a3-9707-ef477fd5f309 unique_id: ac2944bb-e9d7-40a3-9707-ef477fd5f309
state: '{{ state_attr(''weather.iron_nerd_weather_station'',''pressure'') }}' state: '{{ state_attr(''weather.iron_nerd_weather_station'',''pressure'') }}'
@@ -1315,39 +1251,43 @@ template:
{% else %} {% else %}
{% set temp = state_attr('weather.iron_nerd_weather_station','temperature')|round %} {% set temp = state_attr('weather.iron_nerd_weather_station','temperature')|round %}
{% endif %} {% endif %}
{%- if states('sensor.todays_high_temp')|int > 63 %} {% if states('sensor.todays_high_temp')|int > 63 %}
{%- if states('sensor.todays_high_temp')|int < 80 %} {% if states('sensor.todays_high_temp')|int < 80 %}
Nice Nice
{% elif states('sensor.todays_high_temp')|int > 90 %} {% elif states('sensor.todays_high_temp')|int > 90 %}
Hot Hot
{% else %} {% else %}
Toasty Toasty
{%- endif %} {% endif %}
{% elif states('sensor.todays_high_temp')|int < 64 %} {% elif states('sensor.todays_high_temp')|int < 64 %}
{%- if states('sensor.todays_high_temp')|int < 32 %} {% if states('sensor.todays_high_temp')|int < 32 %}
Freezing Freezing
{% elif states('sensor.todays_high_temp')|int > 48 %} {% elif states('sensor.todays_high_temp')|int > 48 %}
Chilly Chilly
{% else %} {% else %}
Cold Cold
{%- endif %} {% endif %}
{% else %} {% else %}
Unknown Unknown
{%- endif %} {% endif %}
- name: "Clothing Forecast Detail" - name: "Clothing Forecast Detail"
unique_id: 13065f50-5eef-4afd-830e-2a2c87f47496 unique_id: 13065f50-5eef-4afd-830e-2a2c87f47496
state: >- state: >-
{% from 'formatting.jinja' import cleanup %} {% from 'formatting.jinja' import cleanup %}
{%- macro getReport() -%} {% macro getReport() %}
{% set clothing = states('sensor.clothing_forecast') %}
{% set forecast = states('sensor.current_forecast') %}
{% set weather = states('weather.iron_nerd_weather_station') %}
{% set apparent = state_attr('weather.iron_nerd_weather_station','apparent_temperature') %}
{% if is_state('binary_sensor.morning','on') %} {% if is_state('binary_sensor.morning','on') %}
Based on the forecasted high temperature, Based on the forecasted high temperature,
{% if is_state('sensor.clothing_forecast', 'Freezing') %} {% if clothing == "Freezing" %}
You're gonna freeze your balls off out there. so I suggest wearing long pants and a heavy coat. You're gonna freeze your balls off out there. so I suggest wearing long pants and a heavy coat.
{% elif is_state('sensor.clothing_forecast','Cold') %} {% elif clothing == "Cold" %}
It's gonna be cold as balls today. so I suggest wearing long pants and a light jacket. It's gonna be cold as balls today. so I suggest wearing long pants and a light jacket.
{% elif is_state('sensor.clothing_forecast', 'Chilly') %} {% elif clothing == "Chilly" %}
It's gonna be on the chilly side today. so I suggest wearing at least long pants. It's gonna be on the chilly side today. so I suggest wearing at least long pants.
{% elif is_state('sensor.clothing_forecast', 'Nice') %} {% elif clothing == "Nice" %}
It is going to be It is going to be
{{ [ 'pretty nice outside. ', {{ [ 'pretty nice outside. ',
'a good day to be outside. ', 'a good day to be outside. ',
@@ -1355,7 +1295,7 @@ template:
'downright tolerable outside. ', 'downright tolerable outside. ',
] | random }} ] | random }}
So I suggest wearing shorts. So I suggest wearing shorts.
{% elif is_state('sensor.clothing_forecast', 'Toasty') and is_state('sensor.current_forecast', 'sunny') %} {% elif clothing == "Toasty" and forecast == "sunny" %}
It is going to be It is going to be
{{ [ 'on the warm side ', {{ [ 'on the warm side ',
' rather warm outside ', ' rather warm outside ',
@@ -1367,7 +1307,7 @@ template:
'preparing to bake under the sun.', 'preparing to bake under the sun.',
'getting ready to be cooked alive.', 'getting ready to be cooked alive.',
] | random }} ] | random }}
{% elif is_state('sensor.clothing_forecast', 'Hot') and is_state('sensor.current_forecast', 'sunny') %} {% elif clothing == "Hot" and forecast == "sunny" %}
It is going to be It is going to be
{{ [ 'so hot you will sweat your balls off', {{ [ 'so hot you will sweat your balls off',
'hotter than the sun ', 'hotter than the sun ',
@@ -1378,7 +1318,7 @@ template:
'preparing to bake under the sun.', 'preparing to bake under the sun.',
'getting ready to be cooked alive.', 'getting ready to be cooked alive.',
] | random }} ] | random }}
{% elif is_state('sensor.clothing_forecast', 'Toasty') %} {% elif clothing == "Toasty" %}
It is going to be It is going to be
{{ [ 'on the warm side ', {{ [ 'on the warm side ',
' rather warm outside ', ' rather warm outside ',
@@ -1386,7 +1326,7 @@ template:
' a little warm ', ' a little warm ',
] | random }} ] | random }}
today. So I suggest wearing shorts. today. So I suggest wearing shorts.
{% elif is_state('sensor.clothing_forecast', 'Hot') %} {% elif clothing == "Hot" %}
It is going to be It is going to be
{{ [ 'so hot you will sweat your balls off', {{ [ 'so hot you will sweat your balls off',
'hotter than the sun ', 'hotter than the sun ',
@@ -1395,7 +1335,7 @@ template:
] | random }} ] | random }}
today. So I suggest wearing shorts. today. So I suggest wearing shorts.
{% else %} {% else %}
It is going to be {{ states('sensor.clothing_forecast') }} today so I suggest wearing shorts. It is going to be {{ clothing }} today so I suggest wearing shorts.
{% endif %} {% endif %}
{% if is_state('input_boolean.hot_day','on') %} {% if is_state('input_boolean.hot_day','on') %}
Warning, today will be a very sweaty day, so please remember to stay hydrated! Warning, today will be a very sweaty day, so please remember to stay hydrated!
@@ -1405,14 +1345,14 @@ template:
{% endif %} {% endif %}
{% else %} {% else %}
Based on the current temperature, Based on the current temperature,
{% if is_state('sensor.clothing_forecast', 'Freezing') %} {% if clothing == "Freezing" %}
You're gonna freeze your balls off out there. so I suggest wearing long pants and a heavy coat if you are going out. You're gonna freeze your balls off out there. so I suggest wearing long pants and a heavy coat if you are going out.
{% elif is_state('sensor.clothing_forecast','Cold') %} {% elif clothing == "Cold" %}
It is cold as balls outside. so I suggest wearing long pants and a light jacket. It is cold as balls outside. so I suggest wearing long pants and a light jacket.
{% elif is_state('sensor.clothing_forecast', 'Chilly') %} {% elif clothing == "Chilly" %}
It is chilly right now. so I suggest wearing at least long pants It is chilly right now. so I suggest wearing at least long pants
if you are going to venture outside. if you are going to venture outside.
{% elif is_state('sensor.clothing_forecast', 'Nice') %} {% elif clothing == "Nice" %}
It is It is
{{ [ 'pretty nice outside. ', {{ [ 'pretty nice outside. ',
'a good day to be outside. ', 'a good day to be outside. ',
@@ -1420,7 +1360,7 @@ template:
'downright tolerable outside. ', 'downright tolerable outside. ',
] | random }} ] | random }}
So I suggest wearing shorts. So I suggest wearing shorts.
{% elif is_state('sensor.clothing_forecast', 'Toasty') and is_state('weather.iron_nerd_weather_station','sunny') %} {% elif clothing == "Toasty" and weather == "sunny" %}
It is It is
{{ [ 'on the warm side ', {{ [ 'on the warm side ',
' rather warm ', ' rather warm ',
@@ -1432,7 +1372,7 @@ template:
'preparing to bake under the sun.', 'preparing to bake under the sun.',
'getting ready to be cooked alive.', 'getting ready to be cooked alive.',
] | random }} ] | random }}
{% elif is_state('sensor.clothing_forecast', 'Hot') and is_state('weather.iron_nerd_weather_station','sunny') %} {% elif clothing == "Hot" and weather == "sunny" %}
It is It is
{{ [ 'so hot you will sweat your balls off', {{ [ 'so hot you will sweat your balls off',
'hotter than the sun ', 'hotter than the sun ',
@@ -1443,7 +1383,7 @@ template:
'preparing to bake under the sun.', 'preparing to bake under the sun.',
'getting ready to be cooked alive.', 'getting ready to be cooked alive.',
] | random }} ] | random }}
{% elif is_state('sensor.clothing_forecast', 'Toasty') %} {% elif clothing == "Toasty" %}
It is It is
{{ [ 'on the warm side ', {{ [ 'on the warm side ',
' rather warm ', ' rather warm ',
@@ -1451,7 +1391,7 @@ template:
' a little warm ', ' a little warm ',
] | random }} ] | random }}
outside. So I suggest wearing shorts. outside. So I suggest wearing shorts.
{% elif is_state('sensor.clothing_forecast', 'Hot') %} {% elif clothing == "Hot" %}
It is It is
{{ [ 'so hot you will sweat your balls off', {{ [ 'so hot you will sweat your balls off',
'hotter than the sun ', 'hotter than the sun ',
@@ -1460,13 +1400,13 @@ template:
] | random }} ] | random }}
outside. So I suggest wearing shorts. outside. So I suggest wearing shorts.
{% else %} {% else %}
It is {{ states('sensor.clothing_forecast') }} right now so I suggest wearing shorts. It is {{ clothing }} right now so I suggest wearing shorts.
{% endif %} {% endif %}
{% if is_state('binary_sensor.heat_index_threshold','on') %} {% if is_state('binary_sensor.heat_index_threshold','on') %}
Warning, the heat index is {{ states('sensor.stratton_ave_apparent_temperature') | float | round }} degrees right now, which is very high. So please make sure to stay hydrated! Warning, the heat index is {{ apparent | int }} degrees right now, which is very high. So please make sure to stay hydrated!
{% endif %} {% endif %}
{% if is_state('binary_sensor.wind_chill_threshold','on') %} {% if is_state('binary_sensor.wind_chill_threshold','on') %}
Warning, it currently feels like {{ states('sensor.stratton_ave_apparent_temperature') | float | round }} degrees outside, so please make sure all exposed skin is covered to avoid frostbite! Warning, it currently feels like {{ apparent | int }} degrees outside, so please make sure all exposed skin is covered to avoid frostbite!
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if states('sensor.thermal_comfort_simmerindex') in ['extremely_warm','danger_of_heatstroke','extreme_danger_of_heatstroke','circulatory_collapse_imminent'] %} {% if states('sensor.thermal_comfort_simmerindex') in ['extremely_warm','danger_of_heatstroke','extreme_danger_of_heatstroke','circulatory_collapse_imminent'] %}
@@ -1486,8 +1426,8 @@ template:
{% elif is_state('sensor.thermal_comfort_frostrisk','probable') %} {% elif is_state('sensor.thermal_comfort_frostrisk','probable') %}
"The possibility of frost exists currently. Be prepared. " "The possibility of frost exists currently. Be prepared. "
{% endif %} {% endif %}
{%- endmacro -%} {% endmacro %}
{{- cleanup(getReport()) -}} {{ cleanup(getReport()) }}
# current_inside_humidity: # current_inside_humidity:
# - name: "Current Inside Humidity" # - name: "Current Inside Humidity"
@@ -1502,11 +1442,11 @@ template:
# previous_rainfall: # previous_rainfall:
# - name: "Past 48h Rainfall" # - name: "Past 48h Rainfall"
# state: "{{ states('sensor.daily_rainfall_in') | float + state_attr('sensor.daily_rainfall_in', 'last_period') | float }}" # state: "{{ states('sensor.daily_rainfall_in') | float + state_attr('sensor.daily_rainfall_in', 'last_period') | float }}"
- name: Weather Alert String - name: Weather Alert String #! REPAIRS NEEDED
unique_id: 66b5f020-0b5e-48ed-92a2-740d2d708b30 unique_id: 66b5f020-0b5e-48ed-92a2-740d2d708b30
state: > state: >
{% from 'formatting.jinja' import cleanup %} {% from 'formatting.jinja' import cleanup %}
{%- macro getReport() -%} {% macro getReport() %}
{% set alerts = [ {% set alerts = [
states('sensor.weatheralerts_alert_1_most_recent_active_alert'), states('sensor.weatheralerts_alert_1_most_recent_active_alert'),
states('sensor.weatheralerts_alert_2_most_recent_active_alert'), states('sensor.weatheralerts_alert_2_most_recent_active_alert'),
@@ -1525,21 +1465,21 @@ template:
{% else %} {% else %}
'None' 'None'
{% endif %} {% endif %}
{%- endmacro -%} {% endmacro %}
{{- cleanup(getReport()) -}} {{ cleanup(getReport()) }}
attributes: attributes:
active_alerts: "{{ states('sensor.weatheralerts_active_alerts') }}" active_alerts: "{{ states('sensor.weatheralerts_defiance_ohz004_ohc039') }}"
icon: > icon: >
{% if (states('sensor.weatheralerts_active_alerts') | int ) > 0 %} {% if (states('sensor.weatheralerts_defiance_ohz004_ohc039') | int ) > 0 %}
mdi:alert mdi:alert
{% else %} {% else %}
mdi:alert-remove mdi:alert-remove
{% endif %} {% endif %}
- name: 'Weather Alerts Active - Corrected' - name: 'Weather Alerts Active - Corrected' #! REPAIRS NEEDED
unique_id: e2f51da4-2271-4719-8edf-a28f76ac1e3f unique_id: e2f51da4-2271-4719-8edf-a28f76ac1e3f
state: > state: >
{% from 'formatting.jinja' import cleanup %} {% from 'formatting.jinja' import cleanup %}
{%- macro getReport() -%} {% macro getReport() %}
{% set alerts = [ {% set alerts = [
states('sensor.weatheralerts_alert_1_most_recent_active_alert'), states('sensor.weatheralerts_alert_1_most_recent_active_alert'),
states('sensor.weatheralerts_alert_2_most_recent_active_alert'), states('sensor.weatheralerts_alert_2_most_recent_active_alert'),
@@ -1551,10 +1491,10 @@ template:
{% set flood = alerts | reject ('eq','unavailable') | select('eq','Flood Warning') | list | count | int %} {% set flood = alerts | reject ('eq','unavailable') | select('eq','Flood Warning') | list | count | int %}
{% set flood1 = 1 if (flood > 0) else 0 %} {% set flood1 = 1 if (flood > 0) else 0 %}
{{ (main + flood1) | int }} {{ (main + flood1) | int }}
{%- endmacro -%} {% endmacro %}
{{- cleanup(getReport()) -}} {{ cleanup(getReport()) }}
icon: > icon: >
{% if (states('sensor.weatheralerts_active_alerts') | int ) > 0 %} {% if (states('sensor.weatheralerts_defiance_ohz004_ohc039') | int ) > 0 %}
mdi:alert mdi:alert
{% else %} {% else %}
mdi:alert-remove mdi:alert-remove
@@ -1580,7 +1520,102 @@ template:
{{ ns.temps | min | int }} {{ ns.temps | min | int }}
icon: mdi:thermometer icon: mdi:thermometer
- name: SPC Wind Risk Day 1
unique_id: e415f5bd-7c44-4067-9c5d-4905ce13be26
state: "{{ state_attr('sensor.spc_outlook_day_1','wind_probability') }}"
attributes:
wind_fill: "{{ state_attr('sensor.spc_outlook_day_1','wind_fill') }}"
wind_stroke: "{{ state_attr('sensor.spc_outlook_day_1','wind_stroke') }}"
icon: mdi:weather-windy
- name: SPC Tornado Risk Day 1
unique_id: bac1b6d9-d4bf-4434-9260-8765dcc81074
state: "{{ state_attr('sensor.spc_outlook_day_1','torn_probability') }}"
attributes:
torn_fill: "{{ state_attr('sensor.spc_outlook_day_1','torn_fill') }}"
torn_stroke: "{{ state_attr('sensor.spc_outlook_day_1','torn_stroke') }}"
icon: mdi:weather-tornado
- name: SPC Hail Risk Day 1
unique_id: a6969cf3-dc48-4e45-85f5-1565137ddf09
state: "{{ state_attr('sensor.spc_outlook_day_1','hail_probability') }}"
attributes:
hail_fill: "{{ state_attr('sensor.spc_outlook_day_1','hail_fill') }}"
hail_stroke: "{{ state_attr('sensor.spc_outlook_day_1','hail_stroke') }}"
icon: mdi:weather-hail
sensor:
- platform: weatheralerts
state: OH
zone: 4
county: 39
# - platform: statistics
# unique_id: b5996cb4-b715-4fc9-b3d8-98fc12c2b7dd
# name: Outside Temp Average
# entity_id: sensor.pirateweather_temperature
# state_characteristic: average_linear
# max_age:
# days: 7
# - platform: statistics
# unique_id: 6192c95a-8fd1-4ba0-87de-d06fdc071d6b
# name: Apparent Temp Average
# entity_id: sensor.stratton_ave_apparent_temperature
# state_characteristic: average_linear
# max_age:
# days: 7
# - platform: statistics
# unique_id: 7b9c269c-40b7-4255-a051-2d1b7a6af017
# name: Wind Speed Average
# entity_id: sensor.pirateweather_wind_speed
# state_characteristic: average_linear
# max_age:
# days: 7
# - platform: statistics
# unique_id: b43d053f-aafb-4237-a742-a2ca841498fa
# name: Visibility Stats Average
# entity_id: sensor.kdfi_visibility
# state_characteristic: average_linear
# max_age:
# days: 7
# - platform: statistics
# unique_id: b1206da2-fa00-4f7d-9af4-f2cf6794bd24
# name: Humidity Stats Average
# entity_id: sensor.pirateweather_humidity
# state_characteristic: average_linear
# max_age:
# days: 7
# binary_sensor:
# - platform: bayesian
# unique_id: 3e9640d9-57a0-4495-8731-e64b34774065
# name: Raining Bayesian
# prior: 0.17
# probability_threshold: 0.6
# observations:
# - entity_id: "sensor.pirateweather_precip"
# prob_given_true: 0.13
# prob_given_false: 0.005
# platform: "state"
# to_state: "rain"
# - entity_id: "sensor.openweathermap_precipitation_kind"
# prob_given_true: 0.75
# prob_given_false: 0.005
# platform: "state"
# to_state: "rain"
# - entity_id: "sensor.tomorrow_io_stratton_ave_precipitation_type"
# prob_given_true: 0.99
# prob_given_false: 0.2
# platform: "state"
# to_state: "rain"
# - entity_id: "sensor.stratton_ave_precipitation"
# prob_given_true: 0.99
# prob_given_false: 0.2
# platform: "numeric_state"
# above: 0
input_boolean: input_boolean:
tornado_watch:
name: Tornado Watch
icon: mdi:message-alert
freeze_warning: freeze_warning:
name: Freeze Warning name: Freeze Warning
icon: mdi:snowflake-alert icon: mdi:snowflake-alert
@@ -1645,6 +1680,185 @@ input_boolean:
# - service: input_boolean.turn_off # - service: input_boolean.turn_off
# entity_id: input_boolean.freeze_warning # entity_id: input_boolean.freeze_warning
automation:
- id: 80465d92-2e06-4cf0-ba92-33376b28b9db
alias: WeatherAlerts - Notify on WeatherAlerts Error
description: ""
triggers:
- entity_id:
- sensor.weatheralerts_defiance_ohz004_ohc039
trigger: state
conditions:
- condition: template
value_template: >
{% set errs =
state_attr('sensor.weatheralerts_defiance_ohz004_ohc039','error') %}
{% if errs is not iterable or errs is string or errs is none %}
false
{% else %}
{% set e0 = errs[0] if errs|length > 0 else none %}
{{ e0 is mapping and e0.get('type') not in ['success'] }}
{% endif %}
actions:
- data:
title: Weather Alerts Error
message: >
{% set errs =
state_attr('sensor.weatheralerts_defiance_ohz004_ohc039','error') %}
{% set e0 = errs[0] if errs|length > 0 else {} %}
**Type:** {{ e0.get('type', 'unknown') }}
**Status:** {{ e0.get('status', 'unknown') }}
**Message:** {{ e0.get('message', 'unknown') }}
**Time:** {{ e0.get('timestamp', 'unknown') }}
notification_id: weatheralerts_error_notification_defiance
action: persistent_notification.create
mode: single
- id: 3ef6edbc-b24c-4032-a423-5fd3fee64c57
alias: WeatherAlerts - Notify on Recovery
description: ""
triggers:
- entity_id: sensor.weatheralerts_defiance_ohz004_ohc039
trigger: state
conditions:
- condition: template
value_template: >
{% set cur =
state_attr('sensor.weatheralerts_defiance_ohz004_ohc039','error')
%}
{% set prev = trigger.from_state.attributes.get('error') if
trigger.from_state else none %}
{% if cur is not iterable or cur is string or cur is none or cur|length ==
0 %}
false
{% else %}
{% set cur0 = cur[0] %}
{% set prev0 = prev[0] if prev is iterable and prev is not string and prev is not none and prev|length > 0 else none %}
{{ cur0.get('type') == 'success' and prev0.get('type') in ['http_error', 'exception'] }}
{% endif %}
actions:
- data:
title: Weather Alerts Recovered From Error
message: >
The Weather Alerts integration has successfully updated after an error.
{% set errs =
state_attr('sensor.weatheralerts_defiance_ohz004_ohc039','error') %}
{% set e0 = errs[0] if errs|length > 0 else {} %}
**Type:** {{ e0.get('type', 'unknown') }}
**Status:** {{ e0.get('status', 'unknown') }}
**Message:** {{ e0.get('message', 'unknown') }}
**Time:** {{ e0.get('timestamp', 'unknown') }}
notification_id: weatheralerts_notify_on_recovery_defiance
action: persistent_notification.create
mode: single
- id: 7b11243f-2154-45f8-bceb-71b83dac5b03
alias: WeatherAlerts - All Clear Notification
description: ""
triggers:
- entity_id: sensor.weatheralerts_defiance_ohz004_ohc039
trigger: state
conditions:
- condition: template
value_template: |-
{% set prev = trigger.from_state.state if trigger.from_state else '0' %}
{% set cur = trigger.to_state.state if trigger.to_state else '0' %}
{{ (prev | int(0)) > 0 and (cur | int(0)) == 0 }}
actions:
- data:
title: Weather alerts cleared
message: No active weather alerts remain.
notification_id: weatheralerts_all_clear_defiance
action: persistent_notification.create
mode: single
# Announce Severe Weather
- id: b1bdfbf9-d82e-436f-bc60-77c3abfb077b
alias: NWS Announce Weather Alert
trigger:
- trigger: state
entity_id: binary_sensor.severe_thunderstorm_warning
from:
- "off"
to:
- "on"
id: tstorm-warning
- trigger: state
entity_id: binary_sensor.tornado_watch
from:
- "off"
to:
- "on"
id: tornado-watch
- trigger: state
entity_id: binary_sensor.severe_thunderstorm_watch
from:
- "off"
to:
- "on"
id: tstorm-watch
# - platform: numeric_state
# entity_id: sensor.weatheralerts_defiance_ohz004_ohc039
# attribute: freeze_warning_count
# above: 0
# id: freeze-warning
action:
- choose:
- conditions:
- condition: trigger
id: tstorm-warning
sequence:
- service: script.status_annc
data:
who: everywhere
type: weather
call_interruption: 1
call_thunderstorm_warning: 1
- conditions:
- condition: trigger
id: tornado-watch
sequence:
- service: script.status_annc
data:
who: everywhere
type: weather
call_interruption: 1
call_tornado_watch: 1
- conditions:
- condition: trigger
id: tstorm-watch
sequence:
- service: script.status_annc
data:
who: everywhere
type: weather
call_interruption: 1
call_thunderstorm_watch: 1
- conditions:
- condition: trigger
id: freeze-warning
sequence:
- service: script.status_annc
data:
who: everywhere
type: weather
call_interruption: 1
call_freeze_warning: 1
script: script:
# refresh_weather_alert_sensors: # refresh_weather_alert_sensors:

View File

@@ -48,8 +48,8 @@ input_datetime:
has_date: false has_date: false
has_time: true has_time: true
icon: mdi:fan-auto icon: mdi:fan-auto
emma_bedroom_cooling: emma_bedroom_climate:
name: Emma Bedroom Cooling name: Emma Bedroom Climate
has_date: false has_date: false
has_time: true has_time: true
icon: mdi:fan-auto icon: mdi:fan-auto
@@ -899,3 +899,6 @@ script:
- service: input_boolean.turn_off - service: input_boolean.turn_off
target: target:
entity_id: input_boolean.white_noise_emma_bedroom entity_id: input_boolean.white_noise_emma_bedroom
- service: climate.turn_off
target:
entity_id: climate.emma_bedroom_vtherm

View File

@@ -13,3 +13,10 @@ sensor:
state_characteristic: mean state_characteristic: mean
max_age: max_age:
hours: 24 hours: 24
binary_sensor:
- platform: trend
sensors:
local_average_gas_trend:
entity_id: sensor.local_average_gas_price
friendly_name: Local Average Gas Trend
unique_id: 3405a536-1e02-412f-916b-1a62c9cb8a2e

View File

@@ -65,7 +65,7 @@ sensor:
hours: 24 hours: 24
- platform: history_stats - platform: history_stats
name: Emma A/C Compressor Time name: Emma A/C Compressor Time
entity_id: binary_sensor.emma_aircon_compressor entity_id: binary_sensor.emma_bedroom_aircon_compressor
state: 'on' state: 'on'
type: time type: time
end: '{{ now() }}' end: '{{ now() }}'
@@ -73,7 +73,7 @@ sensor:
hours: 24 hours: 24
- platform: history_stats - platform: history_stats
name: Emma A/C Fan Time name: Emma A/C Fan Time
entity_id: binary_sensor.emma_aircon_fan entity_id: binary_sensor.emma_bedroom_aircon_fan
state: 'on' state: 'on'
type: time type: time
end: '{{ now() }}' end: '{{ now() }}'

View File

@@ -38,12 +38,13 @@ conversation:
alexa: alexa:
powercalc: powercalc:
force_update_frequency: 00:01:00 discovery:
enabled: true
energy_update_interval: 60
power_sensor_naming: "{} Power Sensor" power_sensor_naming: "{} Power Sensor"
power_sensor_friendly_naming: "{} Power Sensor" power_sensor_friendly_naming: "{} Power Sensor"
energy_sensor_naming: "{} Energy Sensor" energy_sensor_naming: "{} Energy Sensor"
energy_sensor_friendly_naming: "{} Energy Sensor" energy_sensor_friendly_naming: "{} Energy Sensor"
enable_autodiscovery: true
create_energy_sensors: true create_energy_sensors: true
create_utility_meters: true create_utility_meters: true
create_domain_groups: create_domain_groups:
@@ -56,8 +57,6 @@ pyscript:
allow_all_imports: true allow_all_imports: true
hass_is_global: true hass_is_global: true
animated_scenes: # animated_scenes:
grad_vol: grad_vol:
battery_notes:

View File

@@ -1,306 +0,0 @@
mqtt:
sensor:
- name: "Tina Desktop - GPU Temperature"
unique_id: a6a45c56-3a73-46e4-b91c-4f97ba6f53b2
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/gpu_nvidia/temperatures/gpu_core"
unit_of_measurement: 'C'
icon: mdi:thermometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - CPU Temperature"
unique_id: ef715bde-0407-4873-b1e6-a9ef6505d054
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/cpu/temperatures/core_(tctl/tdie)"
unit_of_measurement: 'C'
icon: mdi:thermometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - Storage C Temperature"
unique_id: b8b4497b-659a-48d1-a13c-6eed0af69b51
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/storages/ct1000p1ssd8/temperatue"
unit_of_measurement: 'C'
icon: mdi:thermometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - Storage D Temperature"
unique_id: 6e9900a3-15fa-4d1b-93c1-567d10e1fe68
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/storages/san-disk_ssd_plus_240gb/temperatue"
unit_of_measurement: 'C'
icon: mdi:thermometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - Memory Usage"
unique_id: 8523c69f-9e11-44e6-91b1-9c87401f6fd4
state_topic: "iotlink/workgroup/xia_desktop/monitor/stats/memory/load/memory"
unit_of_measurement: '%'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia_desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - Virtual Memory Usage"
unique_id: 7e1c0e3f-1306-4290-a0c1-c4ddd362b601
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/memory/load/virtual_memory"
unit_of_measurement: '%'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - GPU Core Load"
unique_id: 307a1daf-0a36-4c92-a3a2-2d95762cad8c
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/gpu_nvidia/load/gpu_core"
unit_of_measurement: '%'
icon: mdi:speedometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - GPU VRAM Usage"
unique_id: 2b05dac9-99e5-47ee-86b0-fa9d4536fbe3
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/gpu_nvidia/load/gpu_memory"
unit_of_measurement: '%'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - GPU Video Engine Load"
unique_id: 029fa90b-26ba-45ea-93fd-d7d899f71e78
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/gpu_nvidia/load/gpu_video_engine"
unit_of_measurement: '%'
icon: mdi:speedometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - GPU Memory Controller Load"
unique_id: 26069885-0f51-453b-807d-c9cb0130dc05
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/gpu_nvidia/load/gpu_memory_controller"
unit_of_measurement: '%'
icon: mdi:speedometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - GPU Memory Total"
unique_id: 65393be1-797c-48d3-9287-e2f168acc2b5
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/gpu_nvidia/data/gpu_memory_total"
unit_of_measurement: 'MB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - GPU Memory Free"
unique_id: 88276fd1-02d2-4d4a-986e-f4f981761376
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/gpu_nvidia/data/gpu_memory_free"
unit_of_measurement: 'MB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - GPU Memory Used"
unique_id: 68436f32-782e-4e8a-85eb-2aa26bb2f877
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/gpu_nvidia/data/gpu_memory_used"
unit_of_measurement: 'MB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - Memory Used (GB)"
unique_id: f90defec-616f-4a09-9308-daf85e02b338
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/memory/data/memory_used"
unit_of_measurement: 'GB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - Memory Available (GB)"
unique_id: 25d240a0-efe4-4269-bf79-2775354cdbb9
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/memory/data/memory_available"
unit_of_measurement: 'GB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - Virtual Memory Used (GB)"
unique_id: be7d4104-b3f1-4244-89fe-29b720753481
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/memory/data/virtual_memory_used"
unit_of_measurement: 'GB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tina Desktop - Virtual Memory Available (GB)"
unique_id: 2f91de98-338c-4d21-b164-1d1970a4d220
state_topic: "iotlink/workgroup/xia-desktop/monitor/stats/memory/data/virtual_memory_available"
unit_of_measurement: 'GB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/xia-desktop/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
script:
tina_desktop_wake:
# To enable see https://www.home-assistant.io/components/wake_on_lan/
alias: "Tina Desktop - Wake"
sequence:
- service: wake_on_lan.send_magic_packet
data:
mac: "B4:2E:99:A8:CF:88"
tina_desktop_shutdown:
alias: "Tina Desktop - Shutdown"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/shutdown"
payload: ""
tina_desktop_suspend:
alias: "Tina Desktop - Suspend"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/suspend"
payload: ""
tina_desktop_hibernate:
alias: "Tina Desktop - Hibernate"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/hibernate"
payload: ""
tina_desktop_reboot:
alias: "Tina Desktop - Reboot"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/reboot"
payload: ""
tina_desktop_lock:
alias: "Tina Desktop - Lock"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/lock"
payload: ""
tina_desktop_logoff:
alias: "Tina Desktop - Logoff"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/logoff"
payload: ""
tina_desktop_vol_mute:
alias: "Tina Desktop - Toggle Mute"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/volume/mute"
payload: ""
tina_desktop_vol_max:
alias: "Tina Desktop - Vol Max"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/volume/set"
payload: "100"
tina_desktop_displays_on:
alias: "Tina Desktop - Displays ON"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/displays/on"
payload: ""
tina_desktop_displays_off:
alias: "Tina Desktop - Displays OFF"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/displays/off"
payload: ""
tina_desktop_refresh:
alias: "Tina Desktop - Refresh"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/refresh"
payload: ""
- service: button.press
target:
entity_id:
- button.xia_desktop_hassagent_user_refresh
- button.xia_desktop_hassagent_satellite_refresh
tina_desktop_notify:
alias: "Tina Desktop - Notify"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/notify"
payload: '{ "title": "My Notification Title", "message": "This is an example of notification using IOT Link", "launchParams": "toast://open/https://iotlink.gitlab.io" }'
tina_desktop_run_chrome:
alias: "Tina Desktop - Run Chrome"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/run"
payload: '{ "command": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "args": "https://iotlink.gitlab.io", "path": "C:\\Program Files (x86)\\Google\\Chrome\\Application", "user": "", "visible": true, "fallback": true }'

View File

@@ -1,328 +0,0 @@
mqtt:
sensor:
- name: "Tony Desktop - GPU Temperature"
unique_id: 8c91e08e-2b30-4700-b012-54722b931c8c
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/gpu_nvidia/temperatures/gpu_core"
unit_of_measurement: 'C'
icon: mdi:thermometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - CPU Temperature"
unique_id: 8d27e4d8-1986-4ed5-af48-6f88a8740c3c
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/cpu/temperatures/core_(tctl/tdie)"
unit_of_measurement: 'C'
icon: mdi:thermometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - Storage C Temperature"
unique_id: 26822d74-0fa9-46b7-865c-74a29baf8735
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/storages/wd_black_sn770_2tb/temperatue"
unit_of_measurement: 'C'
icon: mdi:thermometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - Storage S Temperature"
unique_id: cbaca0c0-6dcd-4e4c-b5ae-90b0a8d7a25b
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/storages/san-disk_sd8sb8u512g1002/temperatue"
unit_of_measurement: 'C'
icon: mdi:thermometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - Storage V Temperature"
unique_id: 6b425eb2-25f3-486c-818a-eb92c3e8fadf
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/storages/wdc__wdbnce0010pnc/temperatue"
unit_of_measurement: 'C'
icon: mdi:thermometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - Storage E Temperature"
unique_id: 723c308f-535f-4624-8e46-d7e4f344079c
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/storages/ct1000p1ssd8/temperatue"
unit_of_measurement: 'C'
icon: mdi:thermometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - Memory Usage"
unique_id: f380ab55-7cde-4b8c-922f-ff113cdbff77
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/memory/load/memory"
unit_of_measurement: '%'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - Virtual Memory Usage"
unique_id: b2ddd600-7963-4f47-9d1d-7f74a7cdc6fa
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/memory/load/virtual_memory"
unit_of_measurement: '%'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - GPU Core Load"
unique_id: 6ead9e42-2ef0-440f-8e36-cc5f5f5c3776
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/gpu_nvidia/load/gpu_core"
unit_of_measurement: '%'
icon: mdi:speedometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - GPU VRAM Usage"
unique_id: 7fa952df-8a8d-44de-9393-d01ae648625e
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/gpu_nvidia/load/gpu_memory"
unit_of_measurement: '%'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - GPU Video Engine Load"
unique_id: 01de9b74-f28d-4443-893c-6d0179fa831f
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/gpu_nvidia/load/gpu_video_engine"
unit_of_measurement: '%'
icon: mdi:speedometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - GPU Memory Controller Load"
unique_id: 96b6511b-95bf-4baf-a305-9b6f14dadde7
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/gpu_nvidia/load/gpu_memory_controller"
unit_of_measurement: '%'
icon: mdi:speedometer
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - GPU Memory Total"
unique_id: 8ec11ad0-e184-4f0d-886f-62e9eaf57bd4
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/gpu_nvidia/data/gpu_memory_total"
unit_of_measurement: 'MB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - GPU Memory Free"
unique_id: 3854f3e3-ec12-4226-b768-4fe25b41dda9
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/gpu_nvidia/data/gpu_memory_free"
unit_of_measurement: 'MB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - GPU Memory Used"
unique_id: 4c75e640-76ee-41f3-91ee-1406f275b7ac
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/gpu_nvidia/data/gpu_memory_used"
unit_of_measurement: 'MB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - Memory Used (GB)"
unique_id: 90123c89-2edc-4adc-840b-3704e7bd8b56
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/memory/data/memory_used"
unit_of_measurement: 'GB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - Memory Available (GB)"
unique_id: ef727165-0da8-47f5-a51e-dcdd2cabda60
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/memory/data/memory_available"
unit_of_measurement: 'GB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - Virtual Memory Used (GB)"
unique_id: 0e7dfe10-fe77-430b-8bc1-022e663b83d3
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/memory/data/virtual_memory_used"
unit_of_measurement: 'GB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
- name: "Tony Desktop - Virtual Memory Available (GB)"
unique_id: 3b812f43-7c03-4898-b407-b9edd558aec1
state_topic: "iotlink/workgroup/tony-asus/monitor/stats/memory/data/virtual_memory_available"
unit_of_measurement: 'GB'
icon: mdi:memory
value_template: "{{ value }}"
availability_topic: "iotlink/workgroup/tony-asus/lwt"
payload_available: "ON"
payload_not_available: "OFF"
qos: 1
script:
tony_desktop_wake:
# To enable see https://www.home-assistant.io/components/wake_on_lan/
alias: "Tony Desktop - Wake"
sequence:
- service: wake_on_lan.send_magic_packet
data:
mac: "18:C0:4D:82:00:95"
tony_desktop_shutdown:
alias: "Tony Desktop - Shutdown"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/shutdown"
payload: ""
tony_desktop_suspend:
alias: "Tony Desktop - Suspend"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/suspend"
payload: ""
tony_desktop_hibernate:
alias: "Tony Desktop - Hibernate"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/hibernate"
payload: ""
tony_desktop_reboot:
alias: "Tony Desktop - Reboot"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/reboot"
payload: ""
tony_desktop_lock:
alias: "Tony Desktop - Lock"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/lock"
payload: ""
tony_desktop_logoff:
alias: "Tony Desktop - Logoff"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/logoff"
payload: ""
tony_desktop_vol_mute:
alias: "Tony Desktop - Toggle Mute"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/volume/mute"
payload: ""
tony_desktop_vol_max:
alias: "Tony Desktop - Vol Max"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/volume/set"
payload: "100"
tony_desktop_displays_on:
alias: "Tony Desktop - Displays ON"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/displays/on"
payload: ""
tony_desktop_displays_off:
alias: "Tony Desktop - Displays OFF"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/displays/off"
payload: ""
tony_desktop_refresh:
alias: "Tony Desktop - Refresh"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/refresh"
payload: ""
- service: button.press
target:
entity_id:
- button.tony_asus_hassagent_user_refresh
- button.tony_asus_hassagent_satellite_refresh
tony_desktop_notify:
alias: "Tony Desktop - Notify"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/notify"
payload: '{ "title": "My Notification Title", "message": "This is an example of notification using IOT Link", "launchParams": "toast://open/https://iotlink.gitlab.io" }'
tony_desktop_run_chrome:
alias: "Tony Desktop - Run Chrome"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/run"
payload: '{ "command": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe", "args": "https://iotlink.gitlab.io", "path": "C:\\Program Files\\Google\\Chrome\\Application", "user": "", "visible": true, "fallback": true }'

View File

@@ -90,17 +90,33 @@ input_datetime:
sensor: sensor:
- platform: rest - platform: rest
name: Kallen Tasks name: Kallen Tasks
unique_id: 77045665-9222-4a6b-851f-6d9b50110107
method: GET method: GET
resource: 'https://api.todoist.com/sync/v9/projects/get_data' resource: 'https://api.todoist.com/api/v1/projects/2285969005/full'
headers:
Authorization: !secret todoist_api_token
Accept: application/json
value_template: '{{ value_json.project.id }}'
json_attributes:
- project
- tasks
- sections
scan_interval: 60
- platform: rest
name: Kallen Tasks Comments
unique_id: ae3178ad-439a-49f7-8c56-2fa866afaba5
method: GET
resource: 'https://api.todoist.com/api/v1/comments'
params: params:
project_id: 2285969005 project_id: 2285969005
headers: headers:
Authorization: !secret todoist_api_token Authorization: !secret todoist_api_token
value_template: '{{value_json[''project''][''id'']}}' Accept: application/json
value_template: '{{ value_json.results | length }}'
json_attributes: json_attributes:
- project - results
- items scan_interval: 60
scan_interval: 30
automation: automation:
- id: 94b57d79-efe0-4f34-b5e3-baeaa5eea9f4 - id: 94b57d79-efe0-4f34-b5e3-baeaa5eea9f4

View File

@@ -44,6 +44,9 @@ input_boolean:
adaptive_lighting_adjustments: adaptive_lighting_adjustments:
name: Adaptive Lighting Adjustments name: Adaptive Lighting Adjustments
icon: mdi:knob icon: mdi:knob
sunset_lights_triggered:
name: Sunset Lights Triggered
icon: mdi:weather-sunset
input_number: input_number:
upstairs_bathroom_motion_off_delay: upstairs_bathroom_motion_off_delay:
@@ -215,6 +218,13 @@ input_number:
mode: box mode: box
unit_of_measurement: lx unit_of_measurement: lx
icon: mdi:sun-wireless icon: mdi:sun-wireless
sunset_lights_outdoor_lux_threshold:
name: Sunset Lights Outdoor Lux Threshold
min: 0
max: 10000
step: 100
unit_of_measurement: lx
icon: mdi:sun-wireless
# Settings for adaptive adjustments # Settings for adaptive adjustments
daytime_colortemp_front_porch: daytime_colortemp_front_porch:
@@ -812,51 +822,51 @@ template:
mdi:lightbulb mdi:lightbulb
{% endif %} {% endif %}
switch: # switch:
- platform: animated_scenes # - platform: animated_scenes
name: Christmas # name: Christmas
restore: False # restore: False
restore_power: False # restore_power: False
ignore_off: False # ignore_off: False
lights: # lights:
- light.front_porch_light # - light.front_porch_light
colors: # colors:
- color_type: rgb_color # - color_type: rgb_color
color: [255,0,0] # color: [255,0,0]
brightness: 255 # brightness: 255
- color_type: rgb_color # - color_type: rgb_color
color: [0,255,0] # color: [0,255,0]
brightness: 255 # brightness: 255
transition: 10 # transition: 10
change_frequency: 60 # change_frequency: 60
change_amount: all # change_amount: all
change_sequence: True # change_sequence: True
animate_brightness: True # animate_brightness: True
animate_color: True # animate_color: True
- platform: animated_scenes # - platform: animated_scenes
name: Christmas Day # name: Christmas Day
restore: False # restore: False
restore_power: False # restore_power: False
ignore_off: False # ignore_off: False
lights: # lights:
- light.living_room_color_1 # - light.living_room_color_1
- light.living_room_color_2 # - light.living_room_color_2
- light.living_room_color_3 # - light.living_room_color_3
- light.tina_lamp_top # - light.tina_lamp_top
- light.tina_lamp_side # - light.tina_lamp_side
colors: # colors:
- color_type: rgb_color # - color_type: rgb_color
color: [255,0,0] # color: [255,0,0]
brightness: 255 # brightness: 255
- color_type: rgb_color # - color_type: rgb_color
color: [0,255,0] # color: [0,255,0]
brightness: 255 # brightness: 255
transition: 1 # transition: 1
change_frequency: 5 # change_frequency: 5
change_amount: 3 # change_amount: 3
change_sequence: False # change_sequence: False
animate_brightness: True # animate_brightness: True
animate_color: True # animate_color: True
#! Unless there is a good reason, do not define multi-room scenes below. #! Unless there is a good reason, do not define multi-room scenes below.
#! Use scripts instead, to avoid some straight-up haunted house bullshit... #! Use scripts instead, to avoid some straight-up haunted house bullshit...

View File

@@ -268,7 +268,7 @@ script:
- light.living_room_overhead - light.living_room_overhead
- service: input_text.set_value - service: input_text.set_value
target: target:
entity_id: input_text.living_room_studio_selected_scene entity_id: input_text.living_room_selected_scene
data: data:
value: Alert value: Alert
# Define variable for restoration of the current scene if the backup is not needed # Define variable for restoration of the current scene if the backup is not needed

View File

@@ -79,6 +79,9 @@ input_boolean:
tv_notifications: tv_notifications:
name: TV Notifications name: TV Notifications
icon: mdi:message icon: mdi:message
pc_notifications:
name: PC Notifications
icon: mdi:desktop-classic
input_select: input_select:
select_phones: select_phones:
@@ -103,6 +106,19 @@ input_select:
- All - All
initial: None initial: None
icon: mdi:television-play icon: mdi:television-play
select_pcs:
name: Select PCs
options:
- None
- Tony
- Tina
- Kallen
- Parents
- Nerds
- Not Tony
- All
initial: None
icon: mdi:desktop-classic
text_notification_priority_level: text_notification_priority_level:
name: Notification Priority Level name: Notification Priority Level
options: options:
@@ -352,6 +368,27 @@ notify:
services: services:
- service: alexa_media_living_room_echo_dot - service: alexa_media_living_room_echo_dot
- service: alexa_media_basement_echo_dot - service: alexa_media_basement_echo_dot
- name: pc_parents
platform: group
services:
- service: tony_asus
- service: xia_desktop
- name: pc_nerds
platform: group
services:
- service: tony_asus
- service: kallen_desktop
- name: pc_all
platform: group
services:
- service: tony_asus
- service: xia_desktop
- service: kallen_desktop
- name: pc_not_tony
platform: group
services:
- service: xia_desktop
- service: kallen_desktop
script: script:
volume_reset: volume_reset:
@@ -805,6 +842,131 @@ script:
message: '{{ message }}' message: '{{ message }}'
data: '{{ data|default("{}") }}' data: '{{ data|default("{}") }}'
pc_notify:
alias: 'PC Notify'
description: 'Use this to send popup text notifications to PCs in the house via HASS.Agent'
mode: queued
max: 20
fields:
who:
name: 'Who'
description: 'Which PC to send the notification to'
example: 'tony_pc, tina_pc, kallen_pc, all_pcs'
required: true
selector:
select:
options:
- tony
- tina
- kallen
- parents
- nerds
- not_tony
- all
title:
name: 'Title'
description: 'The title of the notification'
example: 'Greetings'
required: true
selector:
text:
message:
name: 'Message'
description: 'The body of the notification'
example: 'I am notifying you that this is a notification'
required: true
selector:
text:
multiline: true
actions:
name: 'Actions'
description: 'A list of actions for the notification'
required: false
selector:
object:
sequence:
- variables:
mod_who: >
{% set tony_notify = is_state('sensor.tony_asus_usernotification','AcceptsNotifications') %}
{% set tina_notify = is_state('sensor.xia_desktop_usernotification','AcceptsNotifications') %}
{% set kallen_notify = is_state('sensor.kallen_desktop_usernotification','AcceptsNotifications') %}
{% if who == 'tony' and not tony_notify %}
none
{% elif who == 'tina' and not tina_notify %}
none
{% elif who == 'kallen' and not kallen_notify %}
none
{% elif who == 'parents' %}
{% if tony_notify and not tina_notify %}
tony
{% elif not tony_notify and tina_notify %}
tina
{% elif not tony_notify and not tina_notify %}
none
{% else %}
parents
{% endif %}
{% elif who == 'nerds' %}
{% if tony_notify and not kallen_notify %}
tony
{% elif not tony_notify and kallen_notify %}
kallen
{% elif not tony_notify and not kallen_notify %}
none
{% else %}
nerds
{% endif %}
{% elif who == 'all' %}
{% if tony_notify %}
{% if tina_notify and not kallen_notify %}
parents
{% elif kallen_notify and not tina_notify %}
nerds
{% elif not tina_notify and not kallen_notify %}
tony
{% else %}
all
{% endif %}
{% elif tina_notify %}
{% if kallen_notify %}
not_tony
{% else %}
tina
{% endif %}
{% elif kallen_notify %}
kallen
{% else %}
none
{% endif %}
{% else %}
{{ who }}
{% endif %}
- if:
- condition: template
value_template: "{{ mod_who != 'none' and is_state('input_boolean.pc_notifications','on') }}"
then:
- service: >
{% if mod_who == 'tony' %}
notify.tony_asus
{% elif mod_who == 'tina' %}
notify.xia_desktop
{% elif mod_who == 'kallen' %}
notify.kallen_desktop
{% elif mod_who == 'parents' %}
notify.pc_parents
{% elif mod_who == 'nerds' %}
notify.pc_nerds
{% elif mod_who == 'not_tony' %}
notify.pc_not_tony
{% elif mod_who == 'all' %}
notify.pc_all
{% endif %}
data:
title: '{{ title }}'
message: '{{ message }}'
data:
actions: '{{ actions|default("{}") }}'
text_alert_image: text_alert_image:
alias: 'Text Alert Image' alias: 'Text Alert Image'
sequence: sequence:

View File

@@ -124,6 +124,8 @@ template:
state: > state: >
{% if is_state('binary_sensor.basement_studio_motion','on') %} {% if is_state('binary_sensor.basement_studio_motion','on') %}
true true
{% elif is_state('input_boolean.recliner_mode','on') %}
true
{% elif is_state('sensor.xia_desktop_current_username','tm24f') %} {% elif is_state('sensor.xia_desktop_current_username','tm24f') %}
false false
{% elif is_state('binary_sensor.tony_desktop_on','off') and {% elif is_state('binary_sensor.tony_desktop_on','off') and

View File

@@ -602,26 +602,16 @@ script:
{% set low = states('sensor.overnight_lowest_temperature') | int %} {% set low = states('sensor.overnight_lowest_temperature') | int %}
{% set high = states('sensor.todays_high_temp') | int %} {% set high = states('sensor.todays_high_temp') | int %}
{% set kallen_bedtime = state_attr('input_datetime.kallen_bedtime','timestamp') | int %} {% set kallen_bedtime = state_attr('input_datetime.kallen_bedtime','timestamp') | int %}
{% set kallen_fantime = state_attr('input_datetime.kallen_fan','timestamp') | int %}
{% set bedroom_hot = is_state('binary_sensor.kallen_bedroom_hot','on') %}
{% set cutoff = 81000 %} {# Cutoff time is 22:30 #} {% set cutoff = 81000 %} {# Cutoff time is 22:30 #}
{% if is_state('binary_sensor.kallen_school_tomorrow','on') %} {% if is_state('input_boolean.hot_day','on') or bedroom_hot == true %}
{% if is_state('input_boolean.hot_day','on') %} {{ (kallen_fantime - 3600) | timestamp_custom('%H:%M',false) }}
{{ (kallen_bedtime - 3600) | timestamp_custom('%H:%M',false) }}
{% elif low >= 56 or high >= 75 %} {% elif low >= 56 or high >= 75 %}
{{ (kallen_bedtime - 1800) | timestamp_custom('%H:%M',false) }} {{ (kallen_bedtime - 1800) | timestamp_custom('%H:%M',false) }}
{% else %} {% else %}
{{ kallen_bedtime | timestamp_custom('%H:%M',false) }} {{ kallen_bedtime | timestamp_custom('%H:%M',false) }}
{% endif %} {% endif %}
{% elif low > 60 or high > 74 %}
{% if kallen_bedtime < cutoff %}
{{ kallen_bedtime | timestamp_custom('%H:%M',false) }}
{% else %}
22:00
{% endif %}
{% elif 56 <= low <= 60 %}
22:30
{% else %}
00:00
{% endif %}
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
entity_id: input_datetime.master_bedroom_fan entity_id: input_datetime.master_bedroom_fan
data: data:
@@ -720,27 +710,34 @@ script:
data: data:
option: > option: >
{% set low = states('sensor.overnight_lowest_temperature') | int %} {% set low = states('sensor.overnight_lowest_temperature') | int %}
{% set run_threshold = states('input_number.emma_bedroom_aircon_run_threshold') | int %} {% set aircon_run_threshold = states('input_number.emma_bedroom_aircon_run_threshold') | int %}
{% set mode_threshold = states('input_number.emma_bedroom_aircon_mode_threshold') | int %} {% set aircon_mode_threshold = states('input_number.emma_bedroom_aircon_mode_threshold') | int %}
{% if is_state('input_boolean.emma_bedroom_aircon_installed','off') %} {% set heater_run_threshold = states('input_number.emma_bedroom_heater_run_threshold') | int %}
{% if is_state('input_boolean.emma_bedroom_aircon_installed','off') and is_state('input_boolean.emma_bedroom_heater_installed','off') %}
White Noise White Noise
{% elif low >= run_threshold %} {% elif low >= aircon_run_threshold and is_state('input_boolean.emma_bedroom_aircon_installed','on') %}
{% if low >= mode_threshold %} {% if low >= aircon_mode_threshold %}
AC AC
{% else %} {% else %}
Fan Fan
{% endif %} {% endif %}
{% elif low < heater_run_threshold and is_state('input_boolean.emma_bedroom_heater_installed','on') %}
Heat
{% else %} {% else %}
White Noise White Noise
{% endif %} {% endif %}
- delay:
milliseconds: 500
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
target: target:
entity_id: input_datetime.emma_bedroom_cooling entity_id: input_datetime.emma_bedroom_climate
data: data:
time: > time: >
{% set high = states('sensor.todays_high_temp') | int %} {% set high = states('sensor.todays_high_temp') | int %}
{% set low = states('sensor.overnight_lowest_temperature') | int %} {% set low = states('sensor.overnight_lowest_temperature') | int %}
{% set bedtime = state_attr('input_datetime.emma_bedtime','timestamp') | int %} {% set bedtime = state_attr('input_datetime.emma_bedtime','timestamp') | int %}
{% set schedmode = states('input_select.scheduled_climate_mode_emma_bedroom') %}
{% if schedmode in ['AC','Fan'] and is_state('input_boolean.emma_bedroom_aircon_installed','on') %}
{% if is_state('input_boolean.hot_day','on') %} {% if is_state('input_boolean.hot_day','on') %}
{{ (bedtime - 5400) | timestamp_custom('%H:%M',false) }} {{ (bedtime - 5400) | timestamp_custom('%H:%M',false) }}
{% elif high >= 80 or low >= 60 %} {% elif high >= 80 or low >= 60 %}
@@ -748,6 +745,17 @@ script:
{% else %} {% else %}
{{ (bedtime - 1800) | timestamp_custom('%H:%M',false) }} {{ (bedtime - 1800) | timestamp_custom('%H:%M',false) }}
{% endif %} {% endif %}
{% elif schedmode == 'Heat' and is_state('input_boolean.emma_bedroom_heater_installed','on') %}
{% if low <= 20 %}
{{ (bedtime - 5400) | timestamp_custom('%H:%M',false) }}
{% elif low <= 32 %}
{{ (bedtime - 3600) | timestamp_custom('%H:%M',false) }}
{% else %}
{{ (bedtime - 1800) | timestamp_custom('%H:%M',false) }}
{% endif %}
{% else %}
{{ bedtime | timestamp_custom('%H:%M',false) }}
{% endif %}
- service: input_boolean.turn_on - service: input_boolean.turn_on
target: target:
entity_id: input_boolean.emma_scheduling_evening_ran entity_id: input_boolean.emma_scheduling_evening_ran

View File

@@ -190,51 +190,51 @@ template:
{% set dow = now().strftime('%A') %} {% set dow = now().strftime('%A') %}
{% if week == 'First Menu' %} {% if week == 'First Menu' %}
{% if dow == 'Monday' %} {% if dow == 'Monday' %}
Popcorn chicken, mashed potatoes, corn, apples, corn bread, and milk. Chicken tenders, au gratin potatoes, corn, mixed fruit, cornbread, and milk.
{% elif dow == 'Tuesday' %} {% elif dow == 'Tuesday' %}
Beef taco or taco salad, refried beans, spanish rice, peaches, and milk. Beef or chicken, taco or salad, refried beans, rice, apple, and milk.
{% elif dow == 'Wednesday' %} {% elif dow == 'Wednesday' %}
Pulled pork, steamed broccoli, tomatoes, mixed fruit, and milk. Hot dog, french fries, celery, peaches, and milk.
{% elif dow == 'Thursday' %} {% elif dow == 'Thursday' %}
Beef Stroganoff, green beans, carrots, fresh fruit, bread, and milk. Mac and cheese, Cheez-Its, side salad, tomatoes, pears, and milk.
{% elif dow == 'Friday' %} {% elif dow == 'Friday' %}
Optionally, Papa Johns Pizza. Otherwise, hamburger, spinach salad, oven potatoes, applesauce, and milk. Corndog, steamed broccoli, carrots, applesauce, and milk.
{% endif %} {% endif %}
{% elif week == 'Second Menu' %} {% elif week == 'Second Menu' %}
{% if dow == 'Monday' %} {% if dow == 'Monday' %}
Pizza, spinach salad, tomatoes, fruit, and milk. Popcorn chicken, mashed potatoes, corn, grapes, cornbread, and milk.
{% elif dow == 'Tuesday' %} {% elif dow == 'Tuesday' %}
Lasagna, garlic bread, steamed cauliflower, celery, apple crisp, and milk. BBQ pork, baked beans, cucumbers, mixed fruit, and milk.
{% elif dow == 'Wednesday' %} {% elif dow == 'Wednesday' %}
Chicken patty, oven potatoes, broccoli, pears, and milk. Bosco sticks, french fries, tomatoes, banana, and milk.
{% elif dow == 'Thursday' %} {% elif dow == 'Thursday' %}
Turkey and noodles, mashed potatoes, green beans, peaches, breadstick, and milk. Teriyaki beef and broccoli ramen, stir fry, egg roll, strawberry cup, and milk.
{% elif down == 'Friday' %} {% elif dow == 'Friday' %}
Optionally, Papa Johns Pizza. Otherwise, hot dog with chili sauce, carrots, baked beans, mixed fruit, and milk. Hamburger, fries, carrots, applesauce, and milk.
{% endif %} {% endif %}
{% elif week == 'Third Menu' %} {% elif week == 'Third Menu' %}
{% if dow == 'Monday' %} {% if dow == 'Monday' %}
Popcorn chicken, au gratin potatoes, corn, mixed fruit, corn bread, milk. Nachoes, carrots, apple, and milk.
{% elif dow == 'Tuesday' %} {% elif dow == 'Tuesday' %}
Beef taco or taco salad, refried beans, spanish rice, peaches, and milk. Chicken patty, au gratin potatoes, cauliflower, peaches, and milk.
{% elif dow == 'Wednesday' %} {% elif dow == 'Wednesday' %}
Hamburger, oven potatoes, celery, applesauce, and milk. Pizza Crunchers, side salad, steamed broccoli, mixed fruit, and milk.
{% elif dow == 'Thursday' %} {% elif dow == 'Thursday' %}
Mac and cheese, steamed broccoli, tomatoes, pears, bread, and milk. Chicken teriyaki bowl, black beans, corn, apple crisp, egg roll, and milk.
{% elif dow == 'Friday' %} {% elif dow == 'Friday' %}
Optionally, Papa Johns Pizza. Otherwise, sloppy joe, carrots, spinach salad, fruit, and milk. Hot dog, french fries, cherry tomatoes, strawberry cups, and milk.
{% endif %} {% endif %}
{% elif week == 'Fourth Menu' %} {% elif week == 'Fourth Menu' %}
{% if dow == 'Monday' %} {% if dow == 'Monday' %}
Toasted cheese, tomato soup, mixed vegetables, fresh fruit, treat, and milk. French toast or egg omelet, sausage, tomatoes, hash browns, oranges, and milk.
{% elif dow == 'Tuesday' %} {% elif dow == 'Tuesday' %}
Omelet or french toast, sausage, hash browns, tomatoes, orange, and milk. Orange chicken with vegetable rice, egg roll, fortune cookie, apple crisp, and milk.
{% elif dow == 'Wednesday' %} {% elif dow == 'Wednesday' %}
Bosco sticks with pizza sauce, carrots, oven potatoes, peach crisp, and milk. Hamburger, fries, steamed carrots, banana, and milk.
{% elif dow == 'Thursday' %} {% elif dow == 'Thursday' %}
Spaghetti, broccoli, green beans, fresh fruit, breadstick, and milk. Chicken and noodles, mashed potatoes, green beans, peach cups, breadstick, and milk.
{% elif dow == 'Friday' %} {% elif dow == 'Friday' %}
Optionally, Papa Johns Pizza. Otherwise, hot dog, baked beans, cauliflower, applesauce, and milk. Mozzarella sticks, marinara, side salad, broccoli, mixed fruit, and milk.
{% endif %} {% endif %}
{% else %} {% else %}
No menu for the current day. No menu for the current day.

View File

@@ -125,6 +125,18 @@ alarm_control_panel:
template: template:
- binary_sensor: - binary_sensor:
- name: Windows
unique_id: 9ff34cd4-c450-45d2-934a-b4a9fd8b93b2
device_class: window
state: >
{% set windows_open = states.binary_sensor
| selectattr('attributes.device_class','eq','window')
| selectattr('attributes.entity_id','eq',null)
| rejectattr('entity_id','search','windows')
| selectattr('state','eq','on')
| list
| count %}
{{ windows_open > 0 }}
- name: Living Room Windows - name: Living Room Windows
unique_id: fb4ab414-3ceb-44d2-8276-66027a936329 unique_id: fb4ab414-3ceb-44d2-8276-66027a936329
device_class: window device_class: window

View File

@@ -142,6 +142,36 @@ template:
state: > state: >
{% from 'sports.jinja' import sports_today %} {% from 'sports.jinja' import sports_today %}
{{ sports_today('sensor.minnesota_wild') }} {{ sports_today('sensor.minnesota_wild') }}
- name: Michigan Wolverines Hockey Inhibit
unique_id: 8ecd46d5-64c2-49f5-bc8d-d88593273d92
state: >
{% from 'sports.jinja' import sports_inhibit %}
{{ sports_inhibit('sensor.michigan_wolverines_hockey') }}
- name: Michigan Wolverines Hockey Event Today
unique_id: 551fdae5-e18c-4117-b3ba-df864068b13d
state: >
{% from 'sports.jinja' import sports_today %}
{{ sports_today('sensor.michigan_wolverines_hockey') }}
- name: Minnesota Golden Gophers Hockey Inhibit
unique_id: 87653f3a-203c-4dbf-87e8-70bcacf6eb22
state: >
{% from 'sports.jinja' import sports_inhibit %}
{{ state_attr('sensor.minnesota_golden_gophers_hockey','opponent_abbr') in ['MICH','MNST'] or sports_inhibit('sensor.minnesota_golden_gophers_hockey') }}
- name: Minnesota Golden Gophers Hockey Event Today
unique_id: 1f4ff7eb-cbc9-4c81-a5c9-6523b5fb52ff
state: >
{% from 'sports.jinja' import sports_today %}
{{ sports_today('sensor.minnesota_golden_gophers_hockey') }}
- name: Minnesota State Mavericks Hockey Inhibit
unique_id: bd15870d-bccb-4c52-9690-473c31bb4090
state: >
{% from 'sports.jinja' import sports_inhibit %}
{{ state_attr('sensor.minnesota_state_mavericks_hockey','opponent_abbr') in ['MICH'] or sports_inhibit('sensor.minnesota_state_mavericks_hockey') }}
- name: Minnesota State Mavericks Hockey Event Today
unique_id: e403be15-3ff2-47b1-8398-70f8ccb65026
state: >
{% from 'sports.jinja' import sports_today %}
{{ sports_today('sensor.minnesota_state_mavericks_hockey') }}
intent_script: intent_script:
SportsScore: SportsScore:

View File

@@ -1,3 +1,11 @@
input_boolean:
server_maintenance:
name: Server Maintenance
icon: mdi:wrench-clock
recorder:
name: Recorder
icon: mdi:database
input_select: input_select:
log_level: log_level:
name: Log Level name: Log Level
@@ -87,32 +95,20 @@ template:
power_usage: "{{ states('sensor.basement_server_power') | int }}W" power_usage: "{{ states('sensor.basement_server_power') | int }}W"
- name: Tony Desktop Idle - name: Tony Desktop Idle
unique_id: f0ace986-a874-4fb0-ad29-8f3ebf95d8cc unique_id: f0ace986-a874-4fb0-ad29-8f3ebf95d8cc
state: "{{ (states('sensor.tony_asus_system_idle_time') | int) > (states('input_number.basement_computers_idle_time') | int * 60) }}" state: >
{% from 'time.jinja' import time_diff %}
{{ (time_diff('sensor.tony_asus_last_active') | int) > (states('input_number.basement_computers_idle_time') | int * 60) }}
- name: Tina Desktop Idle - name: Tina Desktop Idle
unique_id: 1933c638-c94b-468e-bb7a-c1c5b36c3651 unique_id: 1933c638-c94b-468e-bb7a-c1c5b36c3651
state: "{{ (states('sensor.xia_desktop_system_idle_time') | int) > (states('input_number.first_floor_computers_idle_time') | int * 60) }}" state: >
{% from 'time.jinja' import time_diff %}
{{ (time_diff('sensor.xia_desktop_last_active') | int) > (states('input_number.first_floor_computers_idle_time') | int * 60) }}
- name: Kallen Desktop Idle - name: Kallen Desktop Idle
unique_id: 680c6ae3-2ed2-451e-858b-2aee688af461 unique_id: 680c6ae3-2ed2-451e-858b-2aee688af461
state: "{{ (states('sensor.kallen_desktop_system_idle_time') | int) > (states('input_number.basement_computers_idle_time') | int * 60) }}" state: "{{ (states('sensor.kallen_desktop_system_idle_time') | int) > (states('input_number.basement_computers_idle_time') | int * 60) }}"
- name: Asus Laptop Idle - name: Asus Laptop Idle
unique_id: 7d8eb80a-0a2e-48a9-84b3-33175304dd95 unique_id: 7d8eb80a-0a2e-48a9-84b3-33175304dd95
state: "{{ states('sensor.asus_laptop_system_idle_time') | int > 1800 }}" state: "{{ states('sensor.asus_laptop_system_idle_time') | int > 1800 }}"
- sensor:
- name: "Min Ping"
unique_id: ddcb9f6f-7c94-41fe-9453-2a2205b078e0
state: "{{ state_attr('binary_sensor.internet','round_trip_time_min') }}"
availability: "{{ is_state('binary_sensor.internet','on') }}"
unit_of_measurement: "ms"
- name: "Avg Ping"
unique_id: 79a13c64-7508-48de-8b44-2a23c59917c8
state: "{{ state_attr('binary_sensor.internet','round_trip_time_avg') }}"
availability: "{{ is_state('binary_sensor.internet','on') }}"
unit_of_measurement: "ms"
- name: "Max Ping"
unique_id: c9c71ab6-c7fa-4425-a4ed-768d60e93781
state: "{{ state_attr('binary_sensor.internet','round_trip_time_max') }}"
availability: "{{ is_state('binary_sensor.internet','on') }}"
unit_of_measurement: "ms"
# - platform: influxdb # - platform: influxdb
# host: 192.168.1.26 # host: 192.168.1.26

176
packages/tina_desktop.yaml Normal file
View File

@@ -0,0 +1,176 @@
template:
sensor:
- name: Xia Desktop - Memory Used
unique_id: 9890f64e-d530-4824-97f7-0d459acaa97f
unit_of_measurement: 'MB'
icon: mdi:memory
state: >
{% set sensor_gb = states('sensor.xia_desktop_memory_used_gb') | float %}
{{ (sensor_gb * 1024) | round(0) | int }}
availability: >
{{ states('sensor.xia_desktop_memory_used_gb') not in ['unknown', 'unavailable'] }}
- name: Xia Desktop - Memory Available
unique_id: bca791c1-deac-4054-bf06-a25cdb72871a
unit_of_measurement: 'MB'
icon: mdi:memory
state: >
{% set sensor_gb = states('sensor.xia_desktop_memory_available_gb') | float %}
{{ (sensor_gb * 1024) | round(0) | int }}
availability: >
{{ states('sensor.xia_desktop_memory_available_gb') not in ['unknown', 'unavailable'] }}
- name: Xia Desktop - Virtual Memory Used
unique_id: dea6cc3d-f4d8-436c-8638-6070bb6c178a
unit_of_measurement: 'MB'
icon: mdi:memory
state: >
{% set sensor_gb = states('sensor.xia_desktop_virtual_memory_used_gb') | float %}
{{ (sensor_gb * 1024) | round(0) | int }}
availability: >
{{ states('sensor.xia_desktop_virtual_memory_used_gb') not in ['unknown', 'unavailable'] }}
- name: Xia Desktop - Virtual Memory Available
unique_id: 5d6ed1a7-9af9-440f-bd75-feac8998c536
unit_of_measurement: 'MB'
icon: mdi:memory
state: >
{% set sensor_gb = states('sensor.xia_desktop_virtual_memory_available_gb') | float %}
{{ (sensor_gb * 1024) | round(0) | int }}
availability: >
{{ states('sensor.xia_desktop_virtual_memory_available_gb') not in ['unknown', 'unavailable'] }}
- name: Xia Desktop - Storage C Available Free Space
unique_id: 8b23c84e-f3ba-4ddd-ac77-6c7a84851f0f
unit_of_measurement: 'GB'
icon: mdi:harddisk
state: >
{% set sensor_mb = state_attr('sensor.xia_desktop_storage_c','AvailableSpaceMB') | int %}
{{ (sensor_mb / 1024) | round(0) | int }}
availability: >
{{ states('sensor.xia_desktop_storage_c') not in ['unknown', 'unavailable'] }}
- name: Xia Desktop - Storage C Used Space
unique_id: 3de6e5e8-4fbd-49d9-8761-925415ad46ed
unit_of_measurement: 'GB'
icon: mdi:harddisk
state: >
{% set sensor_mb = state_attr('sensor.xia_desktop_storage_c','UsedSpaceMB') | int %}
{{ (sensor_mb / 1024) | round(0) | int }}
availability: >
{{ states('sensor.xia_desktop_storage_c') not in ['unknown', 'unavailable'] }}
- name: Xia Desktop - Storage D Available Free Space
unique_id: d38bb654-8981-44d6-b07b-e270c2a3903c
unit_of_measurement: 'GB'
icon: mdi:harddisk
state: >
{% set sensor_mb = state_attr('sensor.xia_desktop_storage_d','AvailableSpaceMB') | int %}
{{ (sensor_mb / 1024) | round(0) | int }}
availability: >
{{ states('sensor.xia_desktop_storage_d') not in ['unknown', 'unavailable'] }}
- name: Xia Desktop - Storage D Used Space
unique_id: bfbd5783-78ac-410b-8b41-e000c1b06283
unit_of_measurement: 'GB'
icon: mdi:harddisk
state: >
{% set sensor_mb = state_attr('sensor.xia_desktop_storage_d','UsedSpaceMB') | int %}
{{ (sensor_mb / 1024) | round(0) | int }}
availability: >
{{ states('sensor.xia_desktop_storage_d') not in ['unknown', 'unavailable'] }}
script:
tina_desktop_wake:
# To enable see https://www.home-assistant.io/components/wake_on_lan/
alias: "Tina Desktop - Wake"
sequence:
- service: wake_on_lan.send_magic_packet
data:
mac: "B4:2E:99:A8:CF:88"
tina_desktop_suspend:
alias: "Tina Desktop - Suspend"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/suspend"
payload: ""
tina_desktop_hibernate:
alias: "Tina Desktop - Hibernate"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/hibernate"
payload: ""
tina_desktop_lock:
alias: "Tina Desktop - Lock"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/lock"
payload: ""
tina_desktop_logoff:
alias: "Tina Desktop - Logoff"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/logoff"
payload: ""
tina_desktop_vol_mute:
alias: "Tina Desktop - Toggle Mute"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/volume/mute"
payload: ""
tina_desktop_vol_max:
alias: "Tina Desktop - Vol Max"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/volume/set"
payload: "100"
tina_desktop_displays_on:
alias: "Tina Desktop - Displays ON"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/displays/on"
payload: ""
tina_desktop_displays_off:
alias: "Tina Desktop - Displays OFF"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/displays/off"
payload: ""
tina_desktop_refresh:
alias: "Tina Desktop - Refresh"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/refresh"
payload: ""
- service: button.press
target:
entity_id:
- button.xia_desktop_hassagent_user_refresh
- button.xia_desktop_hassagent_satellite_refresh
tina_desktop_notify:
alias: "Tina Desktop - Notify"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/notify"
payload: '{ "title": "My Notification Title", "message": "This is an example of notification using IOT Link", "launchParams": "toast://open/https://iotlink.gitlab.io" }'
tina_desktop_run_chrome:
alias: "Tina Desktop - Run Chrome"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/xia-desktop/commands/run"
payload: '{ "command": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "args": "https://iotlink.gitlab.io", "path": "C:\\Program Files (x86)\\Google\\Chrome\\Application", "user": "", "visible": true, "fallback": true }'

View File

@@ -25,24 +25,36 @@ input_boolean:
tony_ibuprofen_active: tony_ibuprofen_active:
name: Tony Ibuprofen Active name: Tony Ibuprofen Active
icon: mdi:medication icon: mdi:medication
tony_ibuprofen_reminder:
name: Tony Ibuprofen Reminder
icon: mdi:medication
tony_ibuprofen_taken: tony_ibuprofen_taken:
name: Tony Ibuprofen Taken name: Tony Ibuprofen Taken
icon: mdi:medication icon: mdi:medication
tony_tylenol_active: tony_tylenol_active:
name: Tony Tylenol Active name: Tony Tylenol Active
icon: mdi:medication icon: mdi:medication
tony_tylenol_reminder:
name: Tony Tylenol Reminder
icon: mdi:medication
tony_tylenol_taken: tony_tylenol_taken:
name: Tony Tylenol Taken name: Tony Tylenol Taken
icon: mdi:medication icon: mdi:medication
tony_custom_meds_tracker_p1: tony_custom_meds_tracker_p1:
name: Tony Custom Meds Tracker P1 name: Tony Custom Meds Tracker P1
icon: mdi:medication icon: mdi:medication
tony_custom_meds_reminder_p1:
name: Tony Custom Meds Reminder P1
icon: mdi:medication
tony_custom_meds_taken_p1: tony_custom_meds_taken_p1:
name: Tony Custom Meds Taken P1 name: Tony Custom Meds Taken P1
icon: mdi:medication icon: mdi:medication
tony_custom_meds_tracker_p2: tony_custom_meds_tracker_p2:
name: Tony Custom Meds Tracker P2 name: Tony Custom Meds Tracker P2
icon: mdi:medication icon: mdi:medication
tony_custom_meds_reminder_p2:
name: Tony Custom Meds Reminder P2
icon: mdi:medication
tony_custom_meds_taken_p2: tony_custom_meds_taken_p2:
name: Tony Custom Meds Taken P2 name: Tony Custom Meds Taken P2
icon: mdi:medication icon: mdi:medication
@@ -177,17 +189,32 @@ input_select:
sensor: sensor:
- platform: rest - platform: rest
name: Home Tech name: Home Tech
unique_id: 83f76f0c-d49c-407f-ad99-57d5896dac93
method: GET method: GET
resource: 'https://api.todoist.com/sync/v9/projects/get_data' resource: 'https://api.todoist.com/api/v1/projects/2285967948/full'
headers:
Authorization: !secret todoist_api_token
value_template: '{{ value_json.project.id }}'
json_attributes:
- project
- tasks
- sections
scan_interval: 60
- platform: rest
name: Home Tech Comments
unique_id: 93e6b1c1-8e92-423f-ad56-369e9bb86820
method: GET
resource: 'https://api.todoist.com/api/v1/comments'
params: params:
project_id: 2285967948 project_id: 2285967948
headers: headers:
Authorization: !secret todoist_api_token Authorization: !secret todoist_api_token
value_template: '{{value_json[''project''][''id'']}}' Accept: application/json
value_template: '{{ value_json.results | length }}'
json_attributes: json_attributes:
- project - results
- items scan_interval: 60
scan_interval: 30
# template: # template:
# - binary_sensor: # - binary_sensor:

212
packages/tony_desktop.yaml Normal file
View File

@@ -0,0 +1,212 @@
template:
sensor:
- name: Tony Asus - Memory Used
unique_id: 5264e038-c3c2-4638-9b4e-6c4e8ba0501d
unit_of_measurement: 'MB'
icon: mdi:memory
state: >
{% set sensor_gb = states('sensor.tony_asus_memory_used_gb') | float %}
{{ (sensor_gb * 1024) | round(0) | int }}
availability: >
{{ states('sensor.tony_asus_memory_used_gb') not in ['unknown', 'unavailable'] }}
- name: Tony Asus - Memory Available
unique_id: 46577cdb-5f23-413d-8b2c-8f0bc0be71d1
unit_of_measurement: 'MB'
icon: mdi:memory
state: >
{% set sensor_gb = states('sensor.tony_asus_memory_available_gb') | float %}
{{ (sensor_gb * 1024) | round(0) | int }}
availability: >
{{ states('sensor.tony_asus_memory_available_gb') not in ['unknown', 'unavailable'] }}
- name: Tony Asus - Virtual Memory Used
unique_id: 1499ad78-5f13-43e5-a1e0-c321cf35c059
unit_of_measurement: 'MB'
icon: mdi:memory
state: >
{% set sensor_gb = states('sensor.tony_asus_virtual_memory_used_gb') | float %}
{{ (sensor_gb * 1024) | round(0) | int }}
availability: >
{{ states('sensor.tony_asus_virtual_memory_used_gb') not in ['unknown', 'unavailable'] }}
- name: Tony Asus - Virtual Memory Available
unique_id: e7646bce-56fb-426f-afce-3671c1624169
unit_of_measurement: 'MB'
icon: mdi:memory
state: >
{% set sensor_gb = states('sensor.tony_asus_virtual_memory_available_gb') | float %}
{{ (sensor_gb * 1024) | round(0) | int }}
availability: >
{{ states('sensor.tony_asus_virtual_memory_available_gb') not in ['unknown', 'unavailable'] }}
- name: Tony Asus - Storage C Available Free Space
unique_id: 873f0624-705d-455e-ac5c-63320b42d90d
unit_of_measurement: 'GB'
icon: mdi:harddisk
state: >
{% set sensor_mb = state_attr('sensor.tony_asus_storage_c','AvailableSpaceMB') | int %}
{{ (sensor_mb / 1024) | round(0) | int }}
availability: >
{{ states('sensor.tony_asus_storage_c') not in ['unknown', 'unavailable'] }}
- name: Tony Asus - Storage C Used Space
unique_id: 772cf000-1be5-403c-aa69-c6c4250094e2
unit_of_measurement: 'GB'
icon: mdi:harddisk
state: >
{% set sensor_mb = state_attr('sensor.tony_asus_storage_c','UsedSpaceMB') | int %}
{{ (sensor_mb / 1024) | round(0) | int }}
availability: >
{{ states('sensor.tony_asus_storage_c') not in ['unknown', 'unavailable'] }}
- name: Tony Asus - Storage E Available Free Space
unique_id: 106839c5-9913-4f47-860d-fdef7e4cdd9c
unit_of_measurement: 'GB'
icon: mdi:harddisk
state: >
{% set sensor_mb = state_attr('sensor.tony_asus_storage_e','AvailableSpaceMB') | int %}
{{ (sensor_mb / 1024) | round(0) | int }}
availability: >
{{ states('sensor.tony_asus_storage_e') not in ['unknown', 'unavailable'] }}
- name: Tony Asus - Storage E Used Space
unique_id: e3e2fe47-809c-4763-afa8-7664515da051
unit_of_measurement: 'GB'
icon: mdi:harddisk
state: >
{% set sensor_mb = state_attr('sensor.tony_asus_storage_e','UsedSpaceMB') | int %}
{{ (sensor_mb / 1024) | round(0) | int }}
availability: >
{{ states('sensor.tony_asus_storage_e') not in ['unknown', 'unavailable'] }}
- name: Tony Asus - Storage S Available Free Space
unique_id: 5e16e11e-c4c8-4267-8ae8-58e67e95ac77
unit_of_measurement: 'GB'
icon: mdi:harddisk
state: >
{% set sensor_mb = state_attr('sensor.tony_asus_storage_s','AvailableSpaceMB') | int %}
{{ (sensor_mb / 1024) | round(0) | int }}
availability: >
{{ states('sensor.tony_asus_storage_s') not in ['unknown', 'unavailable'] }}
- name: Tony Asus - Storage S Used Space
unique_id: 01a4d7f2-ef09-4a20-a4d5-594546651e7d
unit_of_measurement: 'GB'
icon: mdi:harddisk
state: >
{% set sensor_mb = state_attr('sensor.tony_asus_storage_s','UsedSpaceMB') | int %}
{{ (sensor_mb / 1024) | round(0) | int }}
availability: >
{{ states('sensor.tony_asus_storage_s') not in ['unknown', 'unavailable'] }}
- name: Tony Asus - Storage V Available Free Space
unique_id: e5868a4e-628b-44fe-a35e-3ff4a7eceef8
unit_of_measurement: 'GB'
icon: mdi:harddisk
state: >
{% set sensor_mb = state_attr('sensor.tony_asus_storage_v','AvailableSpaceMB') | int %}
{{ (sensor_mb / 1024) | round(0) | int }}
availability: >
{{ states('sensor.tony_asus_storage_v') not in ['unknown', 'unavailable'] }}
- name: Tony Asus - Storage V Used Space
unique_id: 1ee34dac-0ff3-4920-b1db-79830595096b
unit_of_measurement: 'GB'
icon: mdi:harddisk
state: >
{% set sensor_mb = state_attr('sensor.tony_asus_storage_v','UsedSpaceMB') | int %}
{{ (sensor_mb / 1024) | round(0) | int }}
availability: >
{{ states('sensor.tony_asus_storage_v') not in ['unknown', 'unavailable'] }}
script:
tony_desktop_wake:
# To enable see https://www.home-assistant.io/components/wake_on_lan/
alias: "Tony Desktop - Wake"
sequence:
- service: wake_on_lan.send_magic_packet
data:
mac: "18:C0:4D:82:00:95"
tony_desktop_suspend:
alias: "Tony Desktop - Suspend"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/suspend"
payload: ""
tony_desktop_hibernate:
alias: "Tony Desktop - Hibernate"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/hibernate"
payload: ""
tony_desktop_lock:
alias: "Tony Desktop - Lock"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/lock"
payload: ""
tony_desktop_logoff:
alias: "Tony Desktop - Logoff"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/logoff"
payload: ""
tony_desktop_vol_mute:
alias: "Tony Desktop - Toggle Mute"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/volume/mute"
payload: ""
tony_desktop_vol_max:
alias: "Tony Desktop - Vol Max"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/volume/set"
payload: "100"
tony_desktop_displays_on:
alias: "Tony Desktop - Displays ON"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/displays/on"
payload: ""
tony_desktop_displays_off:
alias: "Tony Desktop - Displays OFF"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/displays/off"
payload: ""
tony_desktop_refresh:
alias: "Tony Desktop - Refresh"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/refresh"
payload: ""
- service: button.press
target:
entity_id:
- button.tony_asus_hassagent_user_refresh
- button.tony_asus_hassagent_satellite_refresh
tony_desktop_notify:
alias: "Tony Desktop - Notify"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/notify"
payload: '{ "title": "My Notification Title", "message": "This is an example of notification using IOT Link", "launchParams": "toast://open/https://iotlink.gitlab.io" }'
tony_desktop_run_chrome:
alias: "Tony Desktop - Run Chrome"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/tony-asus/commands/run"
payload: '{ "command": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe", "args": "https://iotlink.gitlab.io", "path": "C:\\Program Files\\Google\\Chrome\\Application", "user": "", "visible": true, "fallback": true }'

File diff suppressed because it is too large Load Diff

View File

@@ -47,7 +47,6 @@ ## HACS Components
- [PyScript](https://github.com/custom-components/pyscript) - [PyScript](https://github.com/custom-components/pyscript)
- [Hass Animated Scenes](https://github.com/chazzu/hass-animated-scenes) - [Hass Animated Scenes](https://github.com/chazzu/hass-animated-scenes)
- [Jokes](https://github.com/LaggAt/ha-jokes) - [Jokes](https://github.com/LaggAt/ha-jokes)
- [Uptime Kuma](https://github.com/meichthys/uptime_kuma)
- [Jellyfin](https://github.com/koying/jellyfin_ha) - [Jellyfin](https://github.com/koying/jellyfin_ha)
- [Sonoff LAN](https://github.com/AlexxIT/SonoffLAN) - [Sonoff LAN](https://github.com/AlexxIT/SonoffLAN)
- [Powercalc](https://github.com/bramstroker/homeassistant-powercalc) - [Powercalc](https://github.com/bramstroker/homeassistant-powercalc)
@@ -57,6 +56,8 @@ ## HACS Components
- [GasBuddy](https://github.com/firstof9/ha-gasbuddy) - [GasBuddy](https://github.com/firstof9/ha-gasbuddy)
- [Union Pacific Big Boy Tracker](https://github.com/jheizer/up_4014_tracker) - [Union Pacific Big Boy Tracker](https://github.com/jheizer/up_4014_tracker)
- [WeatherFlow Forecast](https://github.com/briis/weatherflow_forecast) - [WeatherFlow Forecast](https://github.com/briis/weatherflow_forecast)
- [NWS SPC Outlook](https://github.com/sedward5/nws_spc_outlook)
- [Music Assistant Queue Actions](https://github.com/droans/mass_queue)
</details> </details>
@@ -111,6 +112,9 @@ ## HACS Lovelace Cards
- [Weather Chart Card](https://github.com/mlamberts78/weather-chart-card) - [Weather Chart Card](https://github.com/mlamberts78/weather-chart-card)
- [Comfortable Environment Card](https://github.com/argaar/comfortable-environment-card) - [Comfortable Environment Card](https://github.com/argaar/comfortable-environment-card)
- [Versatile Thermostat UI Card](https://github.com/jmcollin78/versatile-thermostat-ui-card) - [Versatile Thermostat UI Card](https://github.com/jmcollin78/versatile-thermostat-ui-card)
- [Gauge Card Pro](https://github.com/benjamin-dcs/gauge-card-pro)
- [AdGuard Card](https://github.com/homeassistant-extras/adguard-card)
- [Music Assistant Player Card](https://github.com/droans/mass-player-card)
</details> </details>

View File

@@ -854,6 +854,12 @@ adaptive_on_first_floor:
adaptive_on_second_floor: adaptive_on_second_floor:
alias: Adaptive on Second Floor alias: Adaptive on Second Floor
sequence: sequence:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.adaptive_lighting_stairwell
alias: Turn on adaptive lighting in stairwell
- if: - if:
- condition: state - condition: state
entity_id: light.hallway_overhead entity_id: light.hallway_overhead
@@ -1298,13 +1304,28 @@ evening_on_second_floor:
option: "{% if is_state('binary_sensor.upstairs_bathroom_occupied','on') option: "{% if is_state('binary_sensor.upstairs_bathroom_occupied','on')
%}\n Adaptive\n{% else %}\n Single Nightlight\n{% endif %}\n" %}\n Adaptive\n{% else %}\n Single Nightlight\n{% endif %}\n"
action: input_select.select_option action: input_select.select_option
- target: - if:
area_id: - condition: state
- kallen_bedroom entity_id: input_boolean.emma_sleeping
- emma_bedroom state: 'off'
then:
- action: light.turn_off
metadata: {}
data: {} data: {}
alias: Turn off kids' bedroom lights target:
action: light.turn_off area_id: emma_bedroom
alias: If Emma's bedroom is not in use, turn off her bedroom light
- alias: If Kallen's bedroom is not in use, turn off his bedroom light
if:
- condition: state
entity_id: input_boolean.kallen_sleeping
state: 'off'
then:
- action: light.turn_off
metadata: {}
data: {}
target:
area_id: kallen_bedroom
- alias: Turn off Master Bedroom Lights - alias: Turn off Master Bedroom Lights
if: if:
- condition: state - condition: state
@@ -1485,32 +1506,32 @@ goodnight_on_first_floor:
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'on' state: 'on'
then: then:
- service: light.turn_off - target:
target:
area_id: area_id:
- downstairs_bathroom - downstairs_bathroom
- tina_desk - tina_desk
entity_id: light.living_room_lights entity_id: light.living_room_lights
data: {} data: {}
- service: input_select.select_option action: light.turn_off
target: - target:
entity_id: input_select.mud_room_scenes entity_id: input_select.mud_room_scenes
data: data:
option: Nightlight option: Nightlight
action: input_select.select_option
else: else:
- service: light.turn_off - target:
target:
area_id: area_id:
- downstairs_bathroom - downstairs_bathroom
- mud_room - mud_room
- tina_desk - tina_desk
entity_id: light.living_room_lights entity_id: light.living_room_lights
data: {} data: {}
action: light.turn_off
alias: Determine lights based on guest mode
goodnight_on_second_floor: goodnight_on_second_floor:
alias: Goodnight on Second Floor alias: Goodnight on Second Floor
sequence: sequence:
- service: light.turn_off - target:
target:
area_id: area_id:
- emma_bedroom - emma_bedroom
- kallen_bedroom - kallen_bedroom
@@ -1518,21 +1539,24 @@ goodnight_on_second_floor:
- master_bedroom_closet - master_bedroom_closet
- upstairs_hallway - upstairs_hallway
data: {} data: {}
- if: action: light.turn_off
- alias: If Kallen is gone overnight, turn off upstairs bathroom lights
if:
- condition: state - condition: state
entity_id: input_boolean.kallen_overnight entity_id: input_boolean.kallen_overnight
state: 'on' state: 'on'
then: then:
- service: light.turn_off - target:
target:
area_id: upstairs_bathroom area_id: upstairs_bathroom
data: {} data: {}
action: light.turn_off
else: else:
- service: input_select.select_option - target:
target:
entity_id: input_select.upstairs_bathroom_scenes entity_id: input_select.upstairs_bathroom_scenes
data: data:
option: Single Nightlight option: Single Nightlight
action: input_select.select_option
alias: Set upstairs bathroom lights to single nightlight
morning_scene: morning_scene:
alias: Morning Scene alias: Morning Scene
sequence: sequence:
@@ -1694,6 +1718,9 @@ tony_morning_meds:
tag: tony-morning-meds tag: tony-morning-meds
alias: Clear previous morning notification alias: Clear previous morning notification
action: script.text_notify action: script.text_notify
- variables:
remindCount: '{{ states(''counter.tony_morning_meds_reminder_count'') }}'
alias: Set variable for reminder count
- alias: Send notifications, using AI if internet is connected - alias: Send notifications, using AI if internet is connected
if: if:
- condition: state - condition: state
@@ -1706,20 +1733,38 @@ tony_morning_meds:
entity_id: counter.tony_morning_meds_reminder_count entity_id: counter.tony_morning_meds_reminder_count
above: 2 above: 2
then: then:
- action: google_generative_ai_conversation.generate_content - alias: Generate snarky reminder
action: ai_task.generate_data
metadata: {} metadata: {}
data: data:
prompt: Remind Tony to take his morning meds. Use a maximum of two lines. instructions: Remind Tony to take his morning meds. Use a maximum of two
Be snarky, because at this point he's been reminded multiple times. lines. Be snarky, because at this point this is reminder number {{ remindCount
}}.
task_name: Tony Morning Medication Reminder Snarky
entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tony's phone
required: true
selector:
text:
response_variable: response response_variable: response
alias: Generate snarky reminder
else: else:
- action: google_generative_ai_conversation.generate_content - alias: Generate reminder
action: ai_task.generate_data
metadata: {} metadata: {}
data: data:
prompt: Remind Tony to take his morning meds. Use a maximum of two lines. instructions: Remind Tony to take his morning meds. Use a maximum of two
lines.
task_name: Tony Morning Medication Reminder
entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tony's phone
required: true
selector:
text:
response_variable: response response_variable: response
alias: Generate reminder
- delay: - delay:
hours: 0 hours: 0
minutes: 0 minutes: 0
@@ -1732,7 +1777,7 @@ tony_morning_meds:
who: tony who: tony
type: alert type: alert
title: Morning Meds title: Morning Meds
message: '{{ response.text }}' message: '{{ response.data.notification_text }}'
tag: tony-morning-meds tag: tony-morning-meds
actions: actions:
- action: TONY_MORNING_MEDS_TAKEN - action: TONY_MORNING_MEDS_TAKEN
@@ -1740,6 +1785,18 @@ tony_morning_meds:
- action: TONY_MORNING_MEDS_SKIPPED - action: TONY_MORNING_MEDS_SKIPPED
title: Skip title: Skip
action: script.text_notify action: script.text_notify
- alias: Send PC notification
action: script.pc_notify
metadata: {}
data:
who: tony
title: Morning Meds
message: '{{ response.data.notification_text }}'
actions:
- action: TONY_MORNING_MEDS_TAKEN
title: Taken
- action: TONY_MORNING_MEDS_SKIPPED
title: Skip
- alias: Send TTS if reminders > 2 and Tony is home - alias: Send TTS if reminders > 2 and Tony is home
if: if:
- alias: When reminders > 2 and Tony is home - alias: When reminders > 2 and Tony is home
@@ -1754,11 +1811,11 @@ tony_morning_meds:
state: home state: home
alias: If Tony is home alias: If Tony is home
then: then:
- data: - alias: Send TTS notification
data:
who: common_areas who: common_areas
type: alert type: alert
message: '{{ response.text }}' message: '{{ response.data.notification_text }}'
alias: Send TTS notification
action: script.speech_engine action: script.speech_engine
else: else:
- delay: - delay:
@@ -1781,6 +1838,18 @@ tony_morning_meds:
title: Skip title: Skip
message: You need to take your morning meds message: You need to take your morning meds
action: script.text_notify action: script.text_notify
- alias: Send PC notification
action: script.pc_notify
metadata: {}
data:
who: tony
title: Morning Meds
message: You need to take your morning meds
actions:
- action: TONY_MORNING_MEDS_TAKEN
title: Taken
- action: TONY_MORNING_MEDS_SKIPPED
title: Skip
- alias: Send TTS if reminders > 2 and Tony is home - alias: Send TTS if reminders > 2 and Tony is home
if: if:
- alias: When reminders > 2 and Tony is home - alias: When reminders > 2 and Tony is home
@@ -2001,6 +2070,9 @@ tony_afternoon_meds:
tag: tony-afternoon-meds tag: tony-afternoon-meds
alias: Clear previous afternoon notification alias: Clear previous afternoon notification
action: script.text_notify action: script.text_notify
- variables:
remindCount: '{{ states(''counter.tony_afternoon_meds_reminder_count'') }}'
alias: Set variable for reminder count
- alias: Send notifications, using AI if internet is connected - alias: Send notifications, using AI if internet is connected
if: if:
- condition: state - condition: state
@@ -2013,20 +2085,38 @@ tony_afternoon_meds:
entity_id: counter.tony_afternoon_meds_reminder_count entity_id: counter.tony_afternoon_meds_reminder_count
above: 2 above: 2
then: then:
- action: google_generative_ai_conversation.generate_content - alias: Generate snarky reminder
action: ai_task.generate_data
metadata: {} metadata: {}
data: data:
prompt: Remind Tony to take his afternoon meds. Use a maximum of two lines. instructions: Remind Tony to take his afternoon meds. Use a maximum of two
Be snarky, because at this point he's been reminded multiple times. lines. Be snarky, because at this point this is reminder number {{ remindCount
}}.
task_name: Tony Afternoon Medication Reminder Snarky
entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tony's phone
required: true
selector:
text:
response_variable: response response_variable: response
alias: Generate snarky reminder
else: else:
- action: google_generative_ai_conversation.generate_content - alias: Generate reminder
action: ai_task.generate_data
metadata: {} metadata: {}
data: data:
prompt: Remind Tony to take his afternoon meds. Use a maximum of two lines. instructions: Remind Tony to take his afternoon meds. Use a maximum of two
lines.
task_name: Tony Afternoon Medication Reminder
entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tony's phone
required: true
selector:
text:
response_variable: response response_variable: response
alias: Generate reminder
- delay: - delay:
hours: 0 hours: 0
minutes: 0 minutes: 0
@@ -2039,7 +2129,7 @@ tony_afternoon_meds:
who: tony who: tony
type: alert type: alert
title: Afternoon Meds title: Afternoon Meds
message: '{{ response.text }}' message: '{{ response.data.notification_text }}'
tag: tony-afternoon-meds tag: tony-afternoon-meds
actions: actions:
- action: TONY_AFTERNOON_MEDS_TAKEN - action: TONY_AFTERNOON_MEDS_TAKEN
@@ -2047,6 +2137,18 @@ tony_afternoon_meds:
- action: TONY_AFTERNOON_MEDS_SKIPPED - action: TONY_AFTERNOON_MEDS_SKIPPED
title: Skip title: Skip
action: script.text_notify action: script.text_notify
- action: script.pc_notify
metadata: {}
data:
who: tony
title: Afternoon Meds
message: '{{ response.data.notification_text }}'
actions:
- action: TONY_AFTERNOON_MEDS_TAKEN
title: Taken
- action: TONY_AFTERNOON_MEDS_SKIPPED
title: Skip
alias: Send PC notification
- alias: Send TTS if reminders > 2 and Tony is home - alias: Send TTS if reminders > 2 and Tony is home
if: if:
- alias: When reminders > 2 and Tony is home - alias: When reminders > 2 and Tony is home
@@ -2061,11 +2163,11 @@ tony_afternoon_meds:
state: home state: home
alias: If Tony is home alias: If Tony is home
then: then:
- data: - alias: Send TTS notification
data:
who: common_areas who: common_areas
type: alert type: alert
message: '{{ response.text }}' message: '{{ response.data.notification_text }}'
alias: Send TTS notification
action: script.speech_engine action: script.speech_engine
else: else:
- delay: - delay:
@@ -2088,6 +2190,18 @@ tony_afternoon_meds:
title: Skip title: Skip
message: You need to take your afternoon meds message: You need to take your afternoon meds
action: script.text_notify action: script.text_notify
- alias: Send PC notification
action: script.pc_notify
metadata: {}
data:
who: tony
title: Afternoon Meds
message: You need to take your afternoon meds
actions:
- action: TONY_AFTERNOON_MEDS_TAKEN
title: Taken
- action: TONY_AFTERNOON_MEDS_SKIPPED
title: Skip
- alias: Send TTS if reminders > 2 and Tony is home - alias: Send TTS if reminders > 2 and Tony is home
if: if:
- alias: When reminders > 2 and Tony is home - alias: When reminders > 2 and Tony is home
@@ -2525,27 +2639,28 @@ kallen_night_meds:
minutes: 0 minutes: 0
seconds: 5 seconds: 5
milliseconds: 0 milliseconds: 0
- parallel: - alias: Send text notifications
- data: parallel:
- alias: Send to parents
data:
who: "{% if states('person.christina_stork') in ['Bob Evans','BobEvans'] %}\n who: "{% if states('person.christina_stork') in ['Bob Evans','BobEvans'] %}\n
\ tony\n{% else %}\n parents\n{% endif %}\n" \ tony\n{% else %}\n parents\n{% endif %}\n"
type: alert type: alert
title: Night Meds title: Night Meds
message: Kallen needs to take his night meds (melatonin) message: Kallen needs to take his night meds
tag: kallen-night-meds tag: kallen-night-meds
actions: actions:
- action: KALLEN_NIGHT_MEDS_TAKEN - action: KALLEN_NIGHT_MEDS_TAKEN
title: Taken title: Taken
- action: KALLEN_NIGHT_MEDS_SKIPPED - action: KALLEN_NIGHT_MEDS_SKIPPED
title: Skip title: Skip
alias: Send to parents
action: script.text_notify action: script.text_notify
- alias: Send to Kallen - alias: Send to Kallen
data: data:
who: kallen who: kallen
type: alert type: alert
title: Night Meds title: Night Meds
message: You need to take your night meds (melatonin) message: You need to take your night meds
tag: kallen-night-meds tag: kallen-night-meds
actions: actions:
- action: KALLEN_NIGHT_MEDS_TAKEN - action: KALLEN_NIGHT_MEDS_TAKEN
@@ -2553,41 +2668,58 @@ kallen_night_meds:
- action: KALLEN_NIGHT_MEDS_SKIPPED - action: KALLEN_NIGHT_MEDS_SKIPPED
title: Skip title: Skip
action: script.text_notify action: script.text_notify
alias: Send text notifications
icon: mdi:medication icon: mdi:medication
mode: restart mode: restart
reset_annc_switches: reset_annc_switches:
alias: Reset Announcement Switches alias: Reset Announcement Switches
sequence: sequence:
- service: input_boolean.turn_off - target:
target:
entity_id: entity_id:
- input_boolean.good_morning - input_boolean.good_morning
- input_boolean.daily_briefing - input_boolean.daily_briefing
- input_boolean.nightly_briefing - input_boolean.nightly_briefing
- input_boolean.kallen_morning_briefing - input_boolean.kallen_morning_briefing
- input_boolean.kallen_nightly_briefing - input_boolean.kallen_nightly_briefing
- input_boolean.basement_briefing
data: {} data: {}
action: input_boolean.turn_off
alias: Turn off housewide briefing switches
- if:
- condition: state
entity_id: binary_sensor.basement_occupied
state:
- 'off'
then:
- action: input_boolean.turn_off
metadata: {}
target:
entity_id: input_boolean.basement_briefing
data: {}
alias: Turn off basement briefing switch if basement is not occupied
mode: single mode: single
icon: mdi:bullhorn-outline icon: mdi:bullhorn-outline
emma_rainbow_lights: emma_rainbow_lights:
alias: Emma Rainbow Lights alias: Emma Rainbow Lights
sequence: sequence:
- service: switch.turn_off - choose:
metadata: {} - conditions:
- condition: template
value_template: '{{ who == ''Living Room'' }}'
alias: Living Room
sequence:
- metadata: {}
data: {} data: {}
target: target:
entity_id: entity_id:
- switch.adaptive_lighting_living_room - switch.adaptive_lighting_living_room
- switch.adaptive_lighting_sleep_mode_living_room - switch.adaptive_lighting_sleep_mode_living_room
alias: Turn off adaptive lighting alias: Turn off adaptive lighting
- service: lifx.effect_stop action: switch.turn_off
metadata: {} - metadata: {}
data: {} data: {}
target: target:
entity_id: light.living_room_led_strip entity_id: light.living_room_led_strip
alias: Stop any current light strip effects alias: Stop any current light strip effects
action: lifx.effect_stop
- alias: Choose Effect - alias: Choose Effect
choose: choose:
- conditions: - conditions:
@@ -2595,15 +2727,14 @@ emma_rainbow_lights:
value_template: '{{ effect in [''Rainbow'',null] }}' value_template: '{{ effect in [''Rainbow'',null] }}'
alias: Rainbow alias: Rainbow
sequence: sequence:
- service: light.turn_on - metadata: {}
metadata: {}
data: data:
effect: prism effect: prism
target: target:
entity_id: light.living_room_overhead entity_id: light.living_room_overhead
alias: Turn on living room overhead in prism effect alias: Turn on living room overhead in prism effect
- service: lifx.effect_move action: light.turn_on
metadata: {} - metadata: {}
data: data:
speed: 8 speed: 8
direction: right direction: right
@@ -2612,13 +2743,13 @@ emma_rainbow_lights:
target: target:
entity_id: light.living_room_led_strip entity_id: light.living_room_led_strip
alias: Turn on living room LED strip in exciting theme with move effect alias: Turn on living room LED strip in exciting theme with move effect
action: lifx.effect_move
- conditions: - conditions:
- condition: template - condition: template
value_template: '{{ effect == ''Blue'' }}' value_template: '{{ effect == ''Blue'' }}'
alias: Blue alias: Blue
sequence: sequence:
- service: light.turn_on - metadata: {}
metadata: {}
data: data:
rgb_color: rgb_color:
- 0 - 0
@@ -2628,13 +2759,13 @@ emma_rainbow_lights:
target: target:
entity_id: light.living_room_lights entity_id: light.living_room_lights
alias: Turn on living room lights, set to blue alias: Turn on living room lights, set to blue
action: light.turn_on
- conditions: - conditions:
- condition: template - condition: template
value_template: '{{ effect == ''Purple'' }}' value_template: '{{ effect == ''Purple'' }}'
alias: Purple alias: Purple
sequence: sequence:
- service: light.turn_on - metadata: {}
metadata: {}
data: data:
rgb_color: rgb_color:
- 134 - 134
@@ -2644,13 +2775,13 @@ emma_rainbow_lights:
target: target:
entity_id: light.living_room_lights entity_id: light.living_room_lights
alias: Turn on living room lights, set to purple alias: Turn on living room lights, set to purple
action: light.turn_on
- conditions: - conditions:
- alias: Green - alias: Green
condition: template condition: template
value_template: '{{ effect == ''Green'' }}' value_template: '{{ effect == ''Green'' }}'
sequence: sequence:
- alias: Turn on living room lights, set to green - alias: Turn on living room lights, set to green
service: light.turn_on
metadata: {} metadata: {}
data: data:
rgb_color: rgb_color:
@@ -2660,26 +2791,26 @@ emma_rainbow_lights:
brightness_pct: 100 brightness_pct: 100
target: target:
entity_id: light.living_room_lights entity_id: light.living_room_lights
action: light.turn_on
- conditions: - conditions:
- condition: template - condition: template
value_template: '{{ effect == ''Tokyo'' }}' value_template: '{{ effect == ''Tokyo'' }}'
alias: Tokyo alias: Tokyo
sequence: sequence:
- service: input_boolean.turn_on - metadata: {}
metadata: {}
data: {} data: {}
target: target:
entity_id: input_boolean.living_room_dynamic_scenes entity_id: input_boolean.living_room_dynamic_scenes
alias: Turn on dynamic scenes alias: Turn on dynamic scenes
- service: input_select.select_option action: input_boolean.turn_on
metadata: {} - metadata: {}
data: data:
option: Tokyo option: Tokyo
target: target:
entity_id: input_select.living_room_scenes entity_id: input_select.living_room_scenes
alias: Activate Tokyo scene in Living Room alias: Activate Tokyo scene in Living Room
action: input_select.select_option
- alias: Turn on living room LED strip in intense theme with move effect - alias: Turn on living room LED strip in intense theme with move effect
service: lifx.effect_move
metadata: {} metadata: {}
data: data:
speed: 8 speed: 8
@@ -2688,8 +2819,142 @@ emma_rainbow_lights:
power_on: true power_on: true
target: target:
entity_id: light.living_room_led_strip entity_id: light.living_room_led_strip
mode: restart action: lifx.effect_move
icon: fas:rainbow - conditions:
- alias: Basement Studio
condition: template
value_template: '{{ who == ''Basement Studio'' }}'
sequence:
- alias: Turn off adaptive lighting
metadata: {}
data: {}
action: switch.turn_off
target:
entity_id:
- switch.adaptive_lighting_basement_studio
- switch.adaptive_lighting_sleep_mode_basement_studio
- alias: Stop any current light strip effects
metadata: {}
data: {}
action: lifx.effect_stop
target:
entity_id: light.basement_led_strip_1
- alias: Choose Effect
choose:
- conditions:
- condition: template
value_template: '{{ effect in [''Rainbow'',null] }}'
alias: Rainbow
sequence:
- metadata: {}
data:
effect: prism
target:
entity_id: light.basement_tall_lamp
alias: Turn on basement tall lamp in prism effect
action: light.turn_on
- metadata: {}
data:
effect: prism
target:
entity_id: light.basement_short_lamp
alias: Turn on basement short lamp in prism effect
action: light.turn_on
- metadata: {}
data:
effect: prism
target:
entity_id: light.basement_stairwell
alias: Turn on basement stairwell in prism effect
action: light.turn_on
- metadata: {}
data:
speed: 8
direction: right
theme: exciting
power_on: true
target:
entity_id: light.basement_led_strip_1
alias: Turn on basement studio LED strip in exciting theme with move effect
action: lifx.effect_move
- conditions:
- condition: template
value_template: '{{ effect == ''Blue'' }}'
alias: Blue
sequence:
- metadata: {}
data:
rgb_color:
- 0
- 0
- 255
brightness_pct: 100
target:
entity_id: light.basement_studio_lights
alias: Turn on basement studio lights, set to blue
action: light.turn_on
- conditions:
- condition: template
value_template: '{{ effect == ''Purple'' }}'
alias: Purple
sequence:
- metadata: {}
data:
rgb_color:
- 134
- 0
- 211
brightness_pct: 100
target:
entity_id: light.basement_studio_lights
alias: Turn on basement studio lights, set to purple
action: light.turn_on
- conditions:
- alias: Green
condition: template
value_template: '{{ effect == ''Green'' }}'
sequence:
- alias: Turn on basement studio lights, set to green
metadata: {}
data:
rgb_color:
- 0
- 255
- 0
brightness_pct: 100
target:
entity_id: light.basement_studio_lights
action: light.turn_on
- conditions:
- condition: template
value_template: '{{ effect == ''Tokyo'' }}'
alias: Tokyo
sequence:
- metadata: {}
data: {}
target:
entity_id: input_boolean.basement_studio_dynamic_scenes
alias: Turn on dynamic scenes
action: input_boolean.turn_on
- metadata: {}
data:
option: Tokyo
target:
entity_id: input_select.basement_studio_scenes
alias: Activate Tokyo scene in basement studio
action: input_select.select_option
- alias: Turn on basement studio LED strip in intense theme with move effect
metadata: {}
data:
speed: 8
direction: right
theme: intense
power_on: true
target:
entity_id: light.basement_led_strip_1
action: lifx.effect_move
mode: queued
icon: fa7-solid:rainbow
fields: fields:
effect: effect:
selector: selector:
@@ -2705,6 +2970,18 @@ emma_rainbow_lights:
description: What type of effect would you like to run? description: What type of effect would you like to run?
default: Rainbow default: Rainbow
required: true required: true
who:
selector:
select:
options:
- Living Room
- Basement Studio
multiple: false
default: Living Room
name: Who
description: In which room should the effect run?
required: true
max: 10
rabbit_feeding: rabbit_feeding:
alias: Rabbit Feeding alias: Rabbit Feeding
sequence: sequence:
@@ -2974,14 +3251,14 @@ rabbit_hutch_cleaning:
emma_sleep: emma_sleep:
alias: Emma Sleep alias: Emma Sleep
sequence: sequence:
- if: - alias: Run scheduling if it hasn't already been run
if:
- condition: time - condition: time
after: 04:00:00 after: 09:00:00
before: '17:00:00' before: '17:00:00'
then: then:
- data: {} - data: {}
action: script.emma_bedroom_scheduling_evening action: script.emma_bedroom_scheduling_evening
alias: Run scheduling if it hasn't already been run
- target: - target:
entity_id: entity_id:
- script.emma_ibuprofen - script.emma_ibuprofen
@@ -3005,7 +3282,9 @@ emma_sleep:
option: Adaptive option: Adaptive
alias: Set lights to adaptive alias: Set lights to adaptive
action: input_select.select_option action: input_select.select_option
- if: - alias: Set climate mode if not already set
choose:
- conditions:
- alias: White Noise - alias: White Noise
condition: and condition: and
conditions: conditions:
@@ -3017,7 +3296,7 @@ emma_sleep:
entity_id: input_boolean.white_noise_emma_bedroom entity_id: input_boolean.white_noise_emma_bedroom
state: 'off' state: 'off'
alias: White Noise is not already on alias: White Noise is not already on
then: sequence:
- target: - target:
entity_id: input_boolean.white_noise_emma_bedroom entity_id: input_boolean.white_noise_emma_bedroom
data: {} data: {}
@@ -3031,7 +3310,46 @@ emma_sleep:
tag: emma-climate tag: emma-climate
alias: Send white noise notification alias: Send white noise notification
action: script.text_notify action: script.text_notify
alias: Select climate mode - conditions:
- alias: Heat
condition: and
conditions:
- condition: state
entity_id: input_select.scheduled_climate_mode_emma_bedroom
state:
- Heat
alias: Heat
sequence:
- if:
- alias: Heat is not already on
condition: state
entity_id: climate.emma_bedroom_vtherm
state:
- 'off'
then:
- alias: Send heater notification
data:
who: parents
title: Emma Climate Schedule
message: The space heater has been activated in Emma's Bedroom.
type: normal
tag: emma-climate
action: script.text_notify
alias: If heat was not already on, send notification that it has been turned
on
- action: climate.set_hvac_mode
metadata: {}
target:
entity_id: climate.emma_bedroom_vtherm
data:
hvac_mode: heat
alias: Turn on heater
- action: input_boolean.turn_on
metadata: {}
target:
entity_id: input_boolean.white_noise_emma_bedroom
data: {}
alias: Turn on white noise
icon: mdi:lightbulb-night icon: mdi:lightbulb-night
mode: restart mode: restart
tina_morning_meds: tina_morning_meds:
@@ -3052,32 +3370,53 @@ tina_morning_meds:
tag: tina-morning-meds tag: tina-morning-meds
alias: Clear previous morning notification alias: Clear previous morning notification
action: script.text_notify action: script.text_notify
- variables:
remindCount: '{{ states(''counter.tina_morning_meds_reminder_count'') }}'
alias: Set variable for reminder count
- alias: Send notifications, using AI if internet is connected - alias: Send notifications, using AI if internet is connected
if: if:
- condition: state - condition: state
entity_id: binary_sensor.internet entity_id: binary_sensor.internet
state: 'on' state: 'on'
then: then:
- if: - alias: Generate reminder, be snarky if it's been several times
if:
- condition: numeric_state - condition: numeric_state
entity_id: counter.tina_morning_meds_reminder_count entity_id: counter.tina_morning_meds_reminder_count
above: 2 above: 2
then: then:
- action: google_generative_ai_conversation.generate_content - alias: Generate snarky reminder
action: ai_task.generate_data
metadata: {} metadata: {}
data: data:
prompt: Remind Tina to take her morning meds. Use a maximum of two lines. instructions: Remind Tina to take her morning meds. Use a maximum of two
Be snarky, because at this point she's been reminded multiple times. lines. Be snarky, because at this point this is reminder number {{ remindCount
}}.
task_name: Tina Morning Medication Reminder Snarky
entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tina's phone
required: true
selector:
text:
response_variable: response response_variable: response
alias: Generate snarky reminder
else: else:
- action: google_generative_ai_conversation.generate_content - alias: Generate reminder
action: ai_task.generate_data
metadata: {} metadata: {}
data: data:
prompt: Remind Tina to take her morning meds. Use a maximum of two lines. instructions: Remind Tina to take her morning meds. Use a maximum of two
lines.
task_name: Tina Morning Medication Reminder
entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tina's phone
required: true
selector:
text:
response_variable: response response_variable: response
alias: Generate reminder
alias: Generate reminder, be snarky if it's been several times
- delay: - delay:
hours: 0 hours: 0
minutes: 0 minutes: 0
@@ -3088,7 +3427,7 @@ tina_morning_meds:
who: tina who: tina
type: alert type: alert
title: Morning Meds title: Morning Meds
message: '{{ response.text }}' message: '{{ response.data.notification_text }}'
tag: tina-morning-meds tag: tina-morning-meds
actions: actions:
- action: TINA_MORNING_MEDS_TAKEN - action: TINA_MORNING_MEDS_TAKEN
@@ -3133,32 +3472,52 @@ tina_night_meds:
tag: tina-night-meds tag: tina-night-meds
alias: Clear previous night notification alias: Clear previous night notification
action: script.text_notify action: script.text_notify
- variables:
remindCount: '{{ states(''counter.tina_night_meds_reminder_count'') }}'
alias: Set variable for reminder count
- alias: Send notifications, using AI if internet is connected - alias: Send notifications, using AI if internet is connected
if: if:
- condition: state - condition: state
entity_id: binary_sensor.internet entity_id: binary_sensor.internet
state: 'on' state: 'on'
then: then:
- if: - alias: Generate reminder, be snarky if it's been several times
if:
- condition: numeric_state - condition: numeric_state
entity_id: counter.tina_night_meds_reminder_count entity_id: counter.tina_night_meds_reminder_count
above: 2 above: 2
then: then:
- action: google_generative_ai_conversation.generate_content - alias: Generate snarky reminder
action: ai_task.generate_data
metadata: {} metadata: {}
data: data:
prompt: Remind Tina to take her night meds. Use a maximum of two lines. instructions: Remind Tina to take her night meds. Use a maximum of two lines.
Be snarky, because at this point she's been reminded multiple times. Be snarky, because at this point this is reminder number {{ remindCount
}}.
task_name: Tina Night Medication Reminder Snarky
entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tina's phone
required: true
selector:
text:
response_variable: response response_variable: response
alias: Generate snarky reminder
else: else:
- action: google_generative_ai_conversation.generate_content - alias: Generate reminder
action: ai_task.generate_data
metadata: {} metadata: {}
data: data:
prompt: Remind Tina to take her night meds. Use a maximum of two lines. instructions: Remind Tina to take her night meds. Use a maximum of two lines.
task_name: Tina Night Medication Reminder
entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tina's phone
required: true
selector:
text:
response_variable: response response_variable: response
alias: Generate reminder
alias: Generate reminder, be snarky if it's been several times
- delay: - delay:
hours: 0 hours: 0
minutes: 0 minutes: 0
@@ -3169,7 +3528,7 @@ tina_night_meds:
who: tina who: tina
type: alert type: alert
title: Night Meds title: Night Meds
message: '{{ response.text }}' message: '{{ response.data.notification_text }}'
tag: tina-night-meds tag: tina-night-meds
actions: actions:
- action: TINA_NIGHT_MEDS_TAKEN - action: TINA_NIGHT_MEDS_TAKEN

View File

@@ -450,17 +450,66 @@
unit_of_measurement: '' unit_of_measurement: ''
icon: mdi:close-network-outline icon: mdi:close-network-outline
state: > state: >
{% set uptimekuma = states.binary_sensor | {% set uptimekuma = states.sensor |
selectattr('entity_id','in',integration_entities('uptime_kuma')) | selectattr('entity_id','in',integration_entities('192.168.1.111')) |
selectattr('state','eq','off') | selectattr('state','eq','down') |
map(attribute='attributes.friendly_name') | map(attribute='attributes.friendly_name') |
list %} list %}
{{ uptimekuma | count | int }} {{ uptimekuma | count | int }}
attributes: attributes:
services: > services: >
{% set uptimekuma = states.binary_sensor | {% set uptimekuma = states.sensor |
selectattr('entity_id','in',integration_entities('uptime_kuma')) | selectattr('entity_id','in',integration_entities('192.168.1.111')) |
selectattr('state','eq','down') |
map(attribute='attributes.friendly_name') |
map('regex_replace', ' Status$', '') |
list %}
{{ uptimekuma | join(', ') }}
- name: Media Server Viewer Health
unique_id: 51154ade-255e-4dcd-9b89-66910fcc1331
unit_of_measurement: '%'
icon: mdi:movie
state: >
{% set total = states.binary_sensor |
selectattr('entity_id','in',label_entities('media_server')) |
selectattr('entity_id','in',label_entities('viewer')) |
list | count | int %}
{% set up = states.binary_sensor |
selectattr('entity_id','in',label_entities('media_server')) |
selectattr('entity_id','in',label_entities('viewer')) |
selectattr('state','eq','on') |
list | count | int %}
{{ ((up / total) * 100) | round(0) }}
attributes:
services_down: >
{% set down = states.binary_sensor |
selectattr('entity_id','in',label_entities('media_server')) |
selectattr('entity_id','in',label_entities('viewer')) |
selectattr('state','eq','off') | selectattr('state','eq','off') |
map(attribute='attributes.friendly_name') | map(attribute='attributes.friendly_name') |
list %} list %}
{{ uptimekuma | join(', ') }} {{ down | join(', ') }}
- name: Media Server Downloaders Health
unique_id: f27867fe-700f-45bc-9e6b-8b1ee74cb724
unit_of_measurement: '%'
icon: mdi:tray-arrow-down
state: >
{% set total = states.binary_sensor |
selectattr('entity_id','in',label_entities('media_server')) |
selectattr('entity_id','in',label_entities('downloader')) |
list | count | int %}
{% set up = states.binary_sensor |
selectattr('entity_id','in',label_entities('media_server')) |
selectattr('entity_id','in',label_entities('downloader')) |
selectattr('state','eq','on') |
list | count | int %}
{{ ((up / total) * 100) | round(0) }}
attributes:
services_down: >
{% set down = states.binary_sensor |
selectattr('entity_id','in',label_entities('media_server')) |
selectattr('entity_id','in',label_entities('downloader')) |
selectattr('state','eq','off') |
map(attribute='attributes.friendly_name') |
list %}
{{ down | join(', ') }}

View File

@@ -71,13 +71,13 @@
{% else %} {% else %}
"Collin's room will be left alone, as he is spending the night elsewhere tonight. " "Collin's room will be left alone, as he is spending the night elsewhere tonight. "
{% endif %} {% endif %}
{% if states('input_select.scheduled_climate_mode_emma_bedroom_aircon') != 'N/A' %} {% if states('input_select.scheduled_climate_mode_emma_bedroom') != 'N/A' %}
{% if is_state('input_select.scheduled_climate_mode_emma_bedroom_aircon','AC') and is_state('input_boolean.hot_day','on') %} {% if is_state('input_select.scheduled_climate_mode_emma_bedroom','AC') and is_state('input_boolean.hot_day','on') %}
"Today was a hot day, so Emma's bedroom air conditioner will start cooling a bit earlier tonight at {{ input_datetime_read('input_datetime.emma_bedroom_cooling') }}. " "Today was a hot day, so Emma's bedroom air conditioner will start cooling a bit earlier tonight at {{ input_datetime_read('input_datetime.emma_bedroom_climate') }}. "
{% elif is_state('input_select.scheduled_climate_mode_emma_bedroom_aircon','AC') %} {% elif is_state('input_select.scheduled_climate_mode_emma_bedroom','AC') %}
"Emma's bedroom air conditioner will start cooling at {{ input_datetime_read('input_datetime.emma_bedroom_cooling') }}. " "Emma's bedroom air conditioner will start cooling at {{ input_datetime_read('input_datetime.emma_bedroom_climate') }}. "
{% elif is_state('input_select.scheduled_climate_mode_emma_bedroom_aircon','Fan') %} {% elif is_state('input_select.scheduled_climate_mode_emma_bedroom','Fan') %}
"Emma's bedroom air conditioner will activate fan only mode at {{ input_datetime_read('input_datetime.emma_bedroom_cooling') }}. " "Emma's bedroom air conditioner will activate fan only mode at {{ input_datetime_read('input_datetime.emma_bedroom_climate') }}. "
{% elif is_state('input_select.scheduled_climate_mode_emma_bedroom','White Noise') and is_state('input_boolean.white_noise_emma_bedroom','off') %} {% elif is_state('input_select.scheduled_climate_mode_emma_bedroom','White Noise') and is_state('input_boolean.white_noise_emma_bedroom','off') %}
"Emma's white noise generator will activate at {{ input_datetime_read('input_datetime.emma_bedtime') }}. " "Emma's white noise generator will activate at {{ input_datetime_read('input_datetime.emma_bedtime') }}. "
{% endif %} {% endif %}

View File

@@ -38,7 +38,7 @@
<p> <p>
{% set alerts = states('weather_alerts_active_corrected') %} {% set alerts = states('weather_alerts_active_corrected') %}
{% if states('sensor.weatheralerts_active_alerts') > '0' %} {% if states('sensor.weatheralerts_defiance_ohz004_ohc039') > '0' %}
"There {% if alerts == '1' %}is{% else %}are{% endif %} {{ states('sensor.weather_alerts_active_corrected') }} weather {% if alerts == '1' %}alert{% else %}alerts{% endif %} active. " "There {% if alerts == '1' %}is{% else %}are{% endif %} {{ states('sensor.weather_alerts_active_corrected') }} weather {% if alerts == '1' %}alert{% else %}alerts{% endif %} active. "
"{% if alerts == '1' %}It is{% else %}They are{% endif %}, " "{% if alerts == '1' %}It is{% else %}They are{% endif %}, "
{{ states('sensor.weather_alert_string') }}. {{ states('sensor.weather_alert_string') }}.