Closed traviscook21 closed 3 years ago
Entities should have an entity in it, not an attribute. It is then the entity that is watched for updates
~So the third example that I have there? That still wasn't causing the card to reload. I'll try again.~
Oof. That worked. Thanks for helping :)
Checklist:
Release with the issue: 1.3.0 Last working release (if known): Unknown. Trying this for the first time. Browser and Operating System: MacOS Big Sur 11.0.1 Safari: Version 14.0.1 (16610.2.11.51.8) or Chrome: Version 87.0.4280.67 (Official Build) (x86_64)
Description of problem:
Similar to https://github.com/iantrich/config-template-card/issues/21, I'm seeing issue with the card not updating automatically. When I refresh the page manually, the card behavior updates correctly, but not until refresh happens. It's very possible that I'm using the
entities:
attribute incorrectly. I've tried a couple of different configurations.I've tried to enter the chrome debugger and I've been able to find references in the
shouldUpdate
function where thehass
andoldHass
objects do havetrue
andfalse
foris_volume_muted
butchanged
still comes back as false.Am I doing something wrong or changes not picked up correctly in state attributes?
Here are the configs I've tried:
Using list vars:
Using Named Vars:
Explicit reference in
entities
:Explicit reference in entities to the state attribute