Skip Navigation

My latest three additions to my home-assistant setup

This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/ExpensiveRecord9842 on 2024-06-20 17:22:50+00:00.


  1. Since I and my wife have the habit of losing our phones around the house, I have two little widgets in my home dashboard that when clicked rings my phone (even when silent or on do not disturb)

type: custom:mushroom-template-card primary: Ring [REDACTED] phone secondary: '' icon: mdi:cellphone tap_action: action: call-service service: notify.mobile_app_[REDACTED] data: data: channel: alarm_stream ledcolor: red color: red visibility: public media_stream: alarm_stream title: Phone lost message: stop losing your phone target: {} icon_color: blue

  1. I have used adb to automatically adjust the backlight of my TV (when it is on) depending on the time of the day.

`alias: Slowly adapt TV backlight with time description: "" trigger:

  • platform: time_pattern minutes: /10
  • platform: state entity_id:
  • binary_sensor.living_room_tv_power_monitor to: "on" from: "off" for: hours: 0 minutes: 1 seconds: 0 condition:
  • condition: state entity_id: binary_sensor.living_room_tv_power_monitor state: "on" action:
  • service: input_number.set_value metadata: {} data: value: >- {% if states.binary_sensor.grid_power.state == 'on' %} {{ [1, ([(12 - (now().hour - 12) | abs)*10, 100] | min)] | max }} {% else %} {{ [1, ([(12 - (now().hour - 12) | abs)*5, 50] | min)] | max }} {% endif %} target: entity_id: input_number.living_room_backlight mode: single`

This automation tracks a slider (input number helper) I have in the dashboard which allows me to quickly adjust the TV backlight. As suggested here you can use the command dumpsys settings to find the correct setting name for your TV.

`alias: Change living room TV backlight with slider description: "" trigger:

  • platform: state entity_id:
  • input_number.living_room_backlight condition: [] action:
  • service: androidtv.adb_command metadata: {} data: command: >- settings put global picture_backlight {{ states.input_number.living_room_backlight.state | int }} target: entity_id: media_player.android_tv_[REDACTED] mode: single`
  1. I like how easy I can interrupt my kids watching TV by just saying:

`alias: Play al-jazeera news from home voice assistant description: "" trigger:

  • platform: conversation command:
  • Play Al Jazeera news
  • It is news time
  • it's news time
  • Al Jazeera news
  • play jazeera news condition: [] action:
  • service: androidtv.adb_command target: entity_id: media_player.android_tv_[REDACTED] data: command: >- am start -a android.intent.action.VIEW "https://www.youtube.com/watch?v=bNyUyrR0PHo" mode: single`

I am pretty sure people might have better ideas on how to do some of these things, and I am happy to hear them.

0
0 comments