Hey everyone! Didn’t find a CalDav component category so because it is supposed to be implemented in my dashboard I’m posting this here
Does anyone know how I create a sensor that stays on the CalDav Calendar day event even when that event is not happening (even if it’s not a sensor and I have to make a custom widget)?
At the moment the event (in this case my work shift) is only displayed during the shift time so before I go to work and when I come back it says “Off Work”.
Also, is it doable to make another sensor/custom widget to show what the event of tomorrow is?
the basics to work with is:
A dashboard is there to visualise what is already in HA.
so if you have a working sensor in HA, you can display it on the dashboard.
you seem to have 2 template sensors, so you can use those as a sensor widget.
Hey! Thanks for the reply. The problem is that the sensor is only working during the shift time so from Event Start time to Event End time. I want it to be displayed the whole day and on top of that create another one to show the event of the next day. Is this possible, even if it’s done with a custom widget or different template?
That’s the same problem I have as well.
Is there a way to display the start time of the next/upcoming event, even if it is several days in he future?
I wanted to implement a garbage reminder - but it has to remind me the evening before, while going to bed, not at the day of collection…
Thanks again for the help Rene! Coming from coding with other languages I understand the code, but I’m not sure where the put it? In the template I made? In a custom widget? Somewhere else? Sorry I’m still a noob at HA and it’s coding!
you have appdaemon with HAdashboard installed, so you can use apps.
i think for someone with a programming background thats the best place to create automations.
Thank you for your help.
I read about that in another topic, but was still hoping theres a way inside hass to get the same result.
I am about to get warm with appdaemon, as I am still struggling with the new version and occusim, which is not working.
When its done I will come back to this.
Thanks again!
It looks like this is what you have now if I’m understanding correctly.
{% if is_state('calendar.work','on') %}
{{ states.calendar.work.attributes.message }}
{% else %}
Off Work
{% endif %}
Since it’s only to set to show information when the calendar is set to on which would occur when the event is occuring. If it is set to show info if the calendar has a start_time available then it will show before, during, and for a brief few seconds after the event is done.