I am trying to create a picture-glance with entity filter and copying the documentation with the following I get a log error.
- type: entity-filter
entities:
- entity: binary_sensor.motion_sensor_158d0001e5d118
name: Living
- binary_sensor.motion_sensor_158d0001e5cf11
- binary_sensor.motion_sensor_158d0001e5d147
- binary_sensor.motion_sensor_158d000200ea5b
- binary_sensor.motion_sensor_158d00022c2f21
- binary_sensor.motion_sensor_158d000201351c
- binary_sensor.motion_sensor_158d0002006d46
- binary_sensor.motion_sensor_158d000200e4ab
- binary_sensor.motion_sensor_158d0001e63803
state_filter:
- "on"
card:
type: picture-glance
title: Security Sensors
image: my image
I get this error
If I use just glance card it works as expected, is the documentation out of date or am I implementing it wrong?
I noticed I couldn’t use type: icon with picture-elements card also
dwinnn
August 9, 2018, 9:51pm
2
I think you need to be consistent in your config. For the first entity, you labeled it as entity: xxx, but for the rest, you didn’t. I would add 'entity: ’ to the other motion sensors and see if that fixes your problem.
Also your 'image: ’ is that a placeholder or are you actually point to a local file or URL?
Regarding the image i removed that part on purpose.
I also tried with one entity before with the same result with using name and just the entity_id itself
If I use same config just with glance card it works
- type: entity-filter
entities:
- entity: binary_sensor.motion_sensor_158d0001e5d118
name: Living
- binary_sensor.motion_sensor_158d0001e5cf11
- binary_sensor.motion_sensor_158d0001e5d147
- binary_sensor.motion_sensor_158d000200ea5b
- binary_sensor.motion_sensor_158d00022c2f21
- binary_sensor.motion_sensor_158d000201351c
- binary_sensor.motion_sensor_158d0002006d46
- binary_sensor.motion_sensor_158d000200e4ab
- binary_sensor.motion_sensor_158d0001e63803
state_filter:
- "on"
card:
type: glance
title: Security Sensors
Try it by removing entity: and just use - binary_sensor.motion_sensor_158d0001e5d118
Like the second example on the Lovelace entity filter cardpage:
- type: entity-filter
entities:
- device_tracker.demo_paulus
- device_tracker.demo_anne_therese
- device_tracker.demo_home_boy
state_filter:
- home
card:
type: glance
title: People at home
Yeah I tried this as stated above, I think I have encountered a bug as the card shows when the state_filter condition is false but as soon as the state_filter condition is true I get the log error.
Maybe @ciotlosm can help with this?
- type: entity-filter
entities:
- binary_sensor.motion_sensor_158d0001e5d118
- binary_sensor.motion_sensor_158d0001e5cf11
- binary_sensor.motion_sensor_158d0001e5d147
- binary_sensor.motion_sensor_158d000200ea5b
- binary_sensor.door_window_sensor_158d0001e74875
state_filter:
- "on"
card:
type: picture-glance
title: Sensors
image: https://cryptocoinspy.com/wp-content/uploads/2018/06/compass-needle-pointing-the-word-security-1000x743.jpg
ciotlosm
(Marius)
August 10, 2018, 11:28am
6
Which version are you using? There was a problem in a previous release fixed in https://github.com/home-assistant/home-assistant-polymer/pull/1448
I have updated to the latest and am still getting the same error
ciotlosm
(Marius)
August 10, 2018, 10:44pm
8
Weird, I tried your config with different motion sensors and it works fine. Try clearing cache.
Cleared cache didn’t work tried a different browser and it came up so I received error using chrome
*** Had to update Chrome to the latest also and it now works thanks ***
ciotlosm
(Marius)
August 11, 2018, 8:47am
10
Probably something cached in your service worker. Next time try settings here: https://developers.home-assistant.io/docs/en/frontend_development.html#development to make sure you absolutely busted cache.