Awtrix (clock) notification [Custom Component]

will add as you request

service: awtrix.awtrix_bedroom_weather_app
data:
  weather: weather.forecast_home
  outside_temperature: sensor.easyweatherv1_6_4_outdoor_temperature
  home_temperature: sensor.home_temperature
  sun: sun.sun
  moon: sensor.moon_phase
  data:
    weather_sun:
      rainbow: true
      repeat: 3
      duration: 10

so:
key data
then
name of app (weather, weather_night, weather_sun, weather_home)
then any config keys from awtrix light

will add

  data:
    sun_event_minute_threshold: 180
    weather_sun:
      rainbow: true
      repeat: 3
      duration: 10

ver 20240317.01

2 Likes

Perfect, great Job!!! Works right the way you wrote. Now it’s perfect for me :+1:

1 Like

where does this code go to create an app?

Manually here http://homeassistant.local:8123/developer-tools/service
create automation here
http://homeassistant.local:8123/config/automation

example

alias: "AWTRIX: weather"
description: ""
trigger:
  - platform: time_pattern
    minutes: /5
condition: []
action:
  - service: awtrix.awtrix_bedroom_weather_app
    data:
      weather: weather.forecast_home
      outside_temperature: sensor.easyweatherv1_6_4_outdoor_temperature
      home_temperature: sensor.home_temperature
      sun: sun.sun
      moon: sensor.moon_phase
mode: single

NB: do not forget to set own entities!

There is a little problem with setting the config keys in the weather_sun app. When set, it would add an empty app when the threshold to sunrise or sunset is not reached with only the config key of awtrix, looks like this in mqtt:

image

(I have the key for duration set). Seems the custom_component should check if threshold is not reached and then do not add the config keys of awtrix.

oops! on it!

fixed. pushed

Thank you so much for reporting.

Tested a whole day in homeoffice, no glitches and the mqtt messages looks fine also:

image

Thank you so much for programming!

1 Like

ver 20240320.01

service: awtrix.awtrix_bedroom_rtttl
data: 
 rtttl: "two_short:d=4,o=5,b=100:16e6,16e6"
service: awtrix.awtrix_bedroom_sound
data:
 sound: beep

Hold notification

service: notify.awtrix_bedroom
data:
  message: "Hello!"
  data: 
    hold: true

Dismiss hold notification

service: notify.awtrix_bedroom
data:
  message: ""

Hi,
How to remove weather_night app from mqtt?
I disable the moon option in my automation but it stay on my awtrix screen.

fixed! please update

It works now thanks

It would be nice if the weather app shows temperature forecast like a graph instead of a coloured line.
For example weather icon + current temperature + forecast temperature as a graph.
:slight_smile:

1 Like

awtrix (16)
is it OK for you?

Yes, looks cool.
Is it a new separate app ?

1 Like

Maybe a thermometer icon before the graph

  1. I won’t draw all manually. API can’t draw icon right side.
  2. bar look ugly
  3. redraw as graph line also looks ugly
  4. awtrix (17)
    IMHO uninformative

do not pay attention on red corner - it’s air alert in the city. f*cking russian.

1 Like