OTOH I can see value if an error message tells you something about why your template fails.
Definitely. That info should just be shown on the template editor window though
Definitely. That info should just be shown on the template editor window though
I think this would be very helpful
Yep. Thatās the only place itās even usefulā¦
Iād like to add my vote of thanks for everyone who contributed to this release.
In particular:
@Frenk - I know a few people didnāt read the breaking changes but I found the use of
"Instead of ā¦ use ā¦"
a really good way to show what and how to change. I updated my Broadlink with no problems thanks to this. Thanks!
@pnbruckner - Before this release, I had a āsimpleā time trigger based on an input_datetime:
# BEFORE
trigger:
- platform: template
value_template: '{{ states.sensor.time.state == (states.input_datetime.coffee_start_time.attributes.timestamp | int | timestamp_custom("%H:%M", False)) }}'
# AFTER
trigger:
- platform: time
at: input_datetime.coffee_start_time
SO much nicer!
It is actually even more annoying than that.
Just try typing slowly in the Telmplate Editor and watch your logsā¦
Thatās what caught my attention.
Did you try to add target?
for ex.
action:
- service: notify.telegram_id_{{ trigger.event.data.user_id }}
data:
message: 'Test'
target: CHANNEL_ID
I think that before you didnāt need to specify it and it used first from the list, but now you have to add it.
in the ongoing process of rewriting templates and automations triggers and conditions to replace templates, I was wondering if rewriting below condition without template
condition:
- condition: template
value_template: >
{{states('device_tracker.life360_marijn') != 'home'}}
would need to be done like:
condition:
condition: not
conditions:
- condition: state
entity_id: device_tracker.life360_marijn
state: 'home'
we cant leave out āconditions:ā can we? even if this would be the only one?
and if this set of Not conditions were to be part of the larger set of conditions, write it like this:
condition:
- condition: state
entity_id: input_boolean.espresso_notified
state: 'off'
- condition: time
after: '06:00:00'
before: '22:00:00'
- condition: not
conditions:
- condition: state
entity_id: device_tracker.life360_marijn
state: 'home'
?
though that still seems a bit more complex than
condition:
- condition: >
{{states('device_tracker.life360_marijn') != 'home'}}
which if I understand it correctly is now possible tooā¦ suppose that wonāt be less efficient for the system.
No, you cant. Neither for the next example. Think of it like the AND and OR condition logic.
Only if you understand jinja.
ok thanks and yes, was confused there because conditions are being ANDāed by default so donāt need that kind of attention.
still if the single line
conditions:
were to be taken out, it would still be clear to be a set of conditions under the condition: not
block?
sorry my bad: this is wrong:
needs to be:
- >
{{states('device_tracker.life360_marijn') != 'home'}}
or on 1 line:
- "{{states('device_tracker.life360_marijn') != 'home'}}"
well, yes, I guess youāre right there.
hope we can soon use the shorthand way for templates in triggers too! and the expand() on state.
Leading on from that (and I think this just exposes a lack of understanding on my part with the way things are expressed) does this work?
condition:
- condition: not
conditions:
- condition: state
entity_id: trigger.to_state
state: 'home'
Not sure, trigger.to_state
is a state object not an entity. Iām going to say probably not. Try it and see.
Same here. Just filed a bug. Log is filled with errors about Pillow and PIL, and all sorts of nonsense. Had to roll back to a snapshot to recover.
It died on the same day as itās birthdayā¦
another one pleaseā¦:
# trigger:
# -----
condition:
>
{{trigger.to_state.state|int in [0,1]}}
action:
- service: notify.notify
data:
title: All ok
message: Still fine
- condition: # <---- why is this wrong?
>
{{trigger.to_state.state|int == 0}}
The first condition (the condition block) works fine (that is, config check okās it). But when I try to use the same syntax in the action block, it wont go.
Only this works:
- condition: template
value_template: >
{{trigger.to_state.state|int == 0}}
Iāve also tried:
- >
{{trigger.to_state.state|int == 0}}
and
- condition: '{{trigger.to_state.state|int == 0}}'
doesnt the shorthand yet work in the listed action block?
- "{{trigger.to_state.state|int == 0}}"
(I had the same problem further up the thread, or maybe in a different thread)
Glad Iāve managed to get upgraded now smoothly after initial issues with broadlink and history stats. History stats is still in my custom components folder with just the unit_percentage changed to percentage nothing else.
But still unsure whether that is a custom component anymore and can get rid of it.
I apologize if this has been asked, I skimmed and searched but not find any answers. Prior to 115, Any cameras i displayed in lovelace using a picture entity card, could grow to full size by doing a long hold on my phone, or a click/hold on my browser. I notice that is not working anymore. I have two instances of HA running, but with the same cameras and same lovelace. 114.x works as before 115.2 does not. Is there a new option/feature/breaking change I need to read up on? Any assistance is appreciated
Is anyone else having trouble with the Xiaomi Vacuum component since 0.115?
2020-09-24 08:25:53 WARNING (SyncWorker_19) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.0.152
I just updated to v115.
Does anyone know if the update breaks the custom variable component (rogro82/hass-variables)?