Currently that’s not supported yet. I proposed something like that as well, a while ago. When I have some time/energy I might make it myself, but that’s not yet.
Currently you should be able to see your configured calendars like this though:
And when clicked on one of them you’ll see something like this:
Yea I have what you posted up and working, but that seems to only display the list of available calendars and then when you click on them only displays the next event…
I guess this is used to trigger on an event though and not for viewing as a list.
So far so good though, I can definitely see a lot of potential in HA and can’t wait to put some more time into setting up my PI server.
Thanks for all you guys doing what you do, it’s great to be able to stand on your shoulders and enjoy your excellent work
Hi @alanf I saw your reply to this post and I wanted to try the same thing.
But do you know if there is any way to make the calendar public, but not show up in google search results?
Or maybe make it password protected or something?
I’d like to have a family shared calender visible through an IFrame in Home-Assistant, but not the entire world has to know what we’re up to
I’d tried not to share it and just use https://calender.google.com as a link, but the screen then just stays blank.
note: the above url is just for my case and the main calendar. To get the url for any calendar: go to the google calendar website -> settings -> choose the calendar of the left side -> on the right check where "<iframe src="url_here …> is and copy just the url.
@Alexxander0 Your config was very helpful! I got it working initially! But when I try to customize the embed Calendar to add 2 Calendars the iframe panel in Home Assistant shows the Calendar but it is blank? any ideas?
in my sensor on the homepage i, see new events for the second email account,
but in the iframe itsels, i have a message
events from another email account anr not displayed because of permission errors
strange, should be working, because if i login to gmail itself, with the master account, i can see all events from the second shared account …
i also see the events in the sensor itself, just not in the iframe
in the end , i just needed to login on the calendar account, from the tablet that was used to access HA
seems it using cookies or stuff like that
so opened chrome, logged in that caledan, afterwards opened HA, and permission error was gone
Hi, sorry to going back to this old topic, I’m relatively new to HA world. I followed your script and it works perfectly for my needs, that’s exactly what I was looking for. The only problem is: is there a way to display the result of the sensor in other launguage than in english?
Hi,
i’m writing this for helping other people.
i’ve set google calendar native support and used this code to read the next event in calendar and then use it in a entity.
in configuration.yalm:
sensor:
- platform: template
sensors:
template_calendar_veritas:
value_template: >
{%- set date = as_timestamp(strptime(states.calendar.CALNAME.attributes.start_time, "%Y-%m-%d %H:%M:%S")) -%}
{% set giorno = ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"] %}
{% set mese = ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"] %}
{% set m_ok = date | timestamp_custom("%m") | int %}
{% set g_ok = date | timestamp_custom("%w") | int %}
{% set giorno_della_settimana = giorno[g_ok] %}
{% set giorno_del_mese = date | timestamp_custom("%d") %}
{% set mese = mese[m_ok - 1] %}
{{ giorno_della_settimana }} {{ giorno_del_mese }} {{ mese }}: {{ states.calendar.CALNAME.attributes.message }}
friendly_name: CALNAME
unit_of_measurement: ''
change CALNAME with the identifier of the calendar you want.
in lovelace:
entity: sensor.template_calendar_CALNAME
icon: 'mdi:calendar'
name: Next Event
type: entity