Biggest update for Home Assistant

  Рет қаралды 8,254

Vaclav Chaloupka

Vaclav Chaloupka

Күн бұрын

(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: gist.github.com/bruxy70/ea10d...
Move events colliding with public holidays: gist.github.com/bruxy70/fc31c...
Offset events by the number if of public holidays in the week: 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

Пікірлер: 6
@tympeters7071
@tympeters7071 11 ай бұрын
Inspirational! Thanks for showing some use cases.
@gavinbennett
@gavinbennett 11 ай бұрын
Awesome, I am looking forward to replacing your HACS Garbage Collection, now that I (almost) have the ability to offset the collection day after holiday in week. Great work Vaclav 👏👏
@KarlMiller
@KarlMiller 11 ай бұрын
Very useful information. In general, I would want more "programatic" control over the live and stored data used by Home assistant so I can create more sophisticated and nuanced automations. If done right, it could greatly improve the capabilities of home assistant. The beauty and curse is that HA is designed to use YAML which lowers the barriers to entry for less technical users and minimizing errors by forcing formatting and lexical expressions that are supported by the code that interprets the yaml without the need for compiling for core functionality. This is convenient, but now we are about to introduce polymophic capabilities which don't mix well with tightly scoped interpretive code that interprets the YAML. I think mixing programmatic paradigms is going to make debugging convoluted. As it is, the code base is not well optimised for debugging considering it is a multi-protocol, distributed communication system running on a seemingly endless variety of hardware so you get very general errors that don't tell you why devices or authorizations fail. Also, you're choice of words "garbage collection" is unfortunate because that refers to a memory pruning behavior for programming languages like Java, so it took me a while to understand that you weren't discussing a performance improvement in HA core, especially as you are discussing API calls. Perhaps you could have used the words "trash pickup".
@StefanRutzmoser
@StefanRutzmoser 11 ай бұрын
Very exciting and well presented!
@KrispKiwi
@KrispKiwi 11 ай бұрын
I'm still trying to figure out a way to get the incremental increases to the persistent notification IDs back so I'm stuck on 2023 5 but this is a very tempting upgrade..
@cipriannedelcu2080
@cipriannedelcu2080 11 ай бұрын
things that I wait are: this response but from every service and f** global variables, so I can work with them everywhere ...
Sankey card and other Energy Management Visuals
22:49
Vaclav Chaloupka
Рет қаралды 7 М.
Move from custom garbage collection to local calendars!
16:25
Vaclav Chaloupka
Рет қаралды 16 М.
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 2,6 МЛН
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 4,4 МЛН
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 61 МЛН
Making a AWESOME Room Cards from Start to Finish
17:43
BeardedTinker
Рет қаралды 22 М.
The TRUTH About Home Assistant [Vs SmartThings]
11:39
ManicMods
Рет қаралды 44 М.
5 MUST-HAVE Home Assistant Blueprints
6:01
Brenvelm
Рет қаралды 3,9 М.
HOME ASSISTANT BATTERY MANAGEMENT - Dashboard Card + Automation
7:16
Smart Home Australia
Рет қаралды 6 М.
Mastering Scripts in Home Assistant: A Comprehensive Guide
14:00
Smart Home Junkie
Рет қаралды 37 М.
Automate your House just by adding Devices to Home Assistant!
13:18
The waiting is over - it's finally here!
13:36
Vaclav Chaloupka
Рет қаралды 3,8 М.
Automate EVERYTHING Through ChatGPT ✨
29:13
No-Code Ireland
Рет қаралды 30 М.
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 29 МЛН
Обзор Sonos Ace - лучше б не выпускали...
16:33
iOS 18 vs Samsung, Xiaomi,Tecno, Android
0:54
AndroHack
Рет қаралды 78 М.