is there an easy way to create a service that publishes the state of a sensor, e.g. the state of charge for a battery that is charging?
In the examples I only see (constant) texts published
i´m very sorry im very new on homeassitant … moving my smarthome from openhab to ha in these days… Thy solved the problem… Thx for your kick in the richt destination . but i have an other understanding problem… what i have exact to enter in the configuration.yaml only
awtrix:
and the rest where i´ve to put that? in a yaml in a subfolder integrations? or under awtrix:
at the configuration.yaml ?
these is my try at configuration.yaml… but something do not work:
awtrix:
service: awtrix.push_app_data
data:
device: smartpixel
name: test
data: # Nested data section for app data
text: "Hello, AWTRIX Light!"
rainbow: true
icon: "87"
duration: 5
pushIcon: 2
lifetime: 900
repeat: 10
Really nice custom_component, thank you very much. Two questions, is it possible to set a duration for the screens in you Weather app? (Duration tag in data in the yaml did not work)
And second one, tested yesterday, the weather_sun screen worked fine, today it does not come up anymore. The entity in the yaml is sun.sun (and its the same automation that worked yesterday), but in mqtt in can only see an empty string:
Thanks for the fast answer. I just took a look in the source code, seems sunset or rise is only displayed 30 minutes before. I did a try and changed from 30 to 180 minutes, and voila:
Maybe this would even be nice to be customized by self. But even as it is now, it’s really good, thanks a lot!