Skip to content

Fallback when atimuth entity has state "unknown" #176

@andilge

Description

@andilge

Hi there,

I’m using the compass card for lightnings, add-on blitzortung.org and it works flawlessly. I have one little problem though, when there is no lightning activity (95% of the time) the add-on brings back “unknown” in the azimuth entity and compass card falls back to default azimuth 0°, north. Please find cause and effect in the picture attached. I've also attached my lovelace card if it's necessary to reproduce the case.

Since “unknown” is not an integer or float value, the band filter doesn’t show any effect. As a result many times I have zero lightning in north which is a bit annoying., but not really a problem => low prio enhancement.

I'd like if there was either a filter for "unknown" or a transformation into a negative number like -361 (one more degree than a full circle).

All the best, Andi

azimuth entity + lovelace card
lovelace card.txt

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions