Biggest update for Home Assistant

Описание к видео Biggest update for Home Assistant

(there was a change in the date format between beta4 and beta5, the blueprints have been updated)

The new Home Assistant release coming up in July, has one little feature, that will make a huge difference: it allows scripts and service calls to return value. Until now, there was no way to query integration - it only allowed one way communication. You could turn something on, off etc. The only feedback we got was through the entity state. From July, we can query services and get response. For example, we can search the calendar for the events in the future - until now, we were only limited to what was in the attributes, that was the date of the single next event. And calendar is only one example - imagine this all across all integrations.

But wait, there is more: since the calendar was the first integration to get this implemented, I made a few scripts to automate re-scheduling of garbage collection schedules in local calendars colliding with public holidays.
In one of my earlier videos I demonstrated how to replace the custom garbage_collection integration with local calendars. Some of you complained that it lacks this automated re-scheduling feature. So here it comes.

Blueprints used in this video:
Show collisions: https://gist.github.com/bruxy70/ea10d...
Move events colliding with public holidays: https://gist.github.com/bruxy70/fc31c...
Offset events by the number if of public holidays in the week: https://gist.github.com/bruxy70/b55ac...

00:00 - Intro
05:43 - calendar.list_events
07:46 - example1: show garbage collection conflicts with public holidays
11:55 - example 2 and 3 - clone calendar with automatic offset
17:40 - conversation.process
19:21 - response from scripts
22:13 - outro

Комментарии

Информация по комментариям в разработке