Actually i am using the attributes of the sun device, but now i’d like to use the sun2 custom component which creates a sensor called sensor.elevation.
How to change that value template to use the state of this sensor ?
Thanks in advance… always learning with templates and always having headaches…
Another little problem.
I have this template in my automation {{states.sensor.sunrise.state}} that gives me as result 2019-11-23T07:02:30+01:00. How to delete the 2019-11-23T and +01:00 parts of the result to have only the hour of the sunrise?
Ok, i’ll chose what is better for my automation… Thanks again !!!
One question: I delete from custom_components folder the sun component, but i always get in the logfile
2019-11-23 12:40:40 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sun which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
I really don’t know. Did you actually delete the old sun folder, or did you move it somewhere? I’ve seen people have issues when they move a custom integration from config/custom_components to config (just in case…) That will definitely cause problems.
Ah, that might explain it. I seem to recall running into something just like that before. Couldn’t figure out how HA could find it when the folder name was changed, but somehow it was still finding the cache files in the __pycache__ subfolder. Had to completely delete it to fix the problem.
Inside the hadashboard configuration, but i really don’t know how to do this.
Could it be possible to create a sensor with those attributes so i can then use in HADashboard?