10der
(Oleg Denisenko)
March 17, 2024, 3:32pm
41
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
10der
(Oleg Denisenko)
March 17, 2024, 3:38pm
42
will add
data:
sun_event_minute_threshold: 180
weather_sun:
rainbow: true
repeat: 3
duration: 10
madface
(Mike)
March 17, 2024, 4:16pm
44
Perfect, great Job!!! Works right the way you wrote. Now it’s perfect for me
1 Like
where does this code go to create an app?
10der
(Oleg Denisenko)
March 18, 2024, 12:08pm
47
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!
madface
(Mike)
March 18, 2024, 6:33pm
48
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:
(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.
10der
(Oleg Denisenko)
March 18, 2024, 6:52pm
51
Thank you so much for reporting.
madface
(Mike)
March 19, 2024, 4:47pm
52
Tested a whole day in homeoffice, no glitches and the mqtt messages looks fine also:
Thank you so much for programming!
1 Like
10der
(Oleg Denisenko)
March 20, 2024, 7:18am
53
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: ""
tebra
March 29, 2024, 11:50pm
54
Hi,
How to remove weather_night app from mqtt?
I disable the moon option in my automation but it stay on my awtrix screen.
tebra
March 30, 2024, 10:23am
57
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.
1 Like
tebra
March 30, 2024, 11:46am
59
Yes, looks cool.
Is it a new separate app ?
1 Like
tebra
March 30, 2024, 12:35pm
60
Maybe a thermometer icon before the graph
10der
(Oleg Denisenko)
March 30, 2024, 12:43pm
61
I won’t draw all manually. API can’t draw icon right side.
bar look ugly
redraw as graph line also looks ugly
IMHO uninformative
do not pay attention on red corner - it’s air alert in the city. f*cking russian.
1 Like