Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress direction #556

Open
sciurius opened this issue Jun 7, 2022 · 3 comments
Open

Suppress direction #556

sciurius opened this issue Jun 7, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@sciurius
Copy link

sciurius commented Jun 7, 2022

I use the compass-card for wind direction.
scrot20220607180736

When there is no wind, it is not useful to show a direction. So in the case the wind is zero I would like to supress the direction arrow, direction abbreviation and value indication. In short, I would like to display the (empty) circle only.

Is that possible?

@tomvanswam
Copy link
Owner

Currently it isn't, however a similar request has been done for unkown values in issue #176. I'll try to add this when implementing that issue.

@tomvanswam tomvanswam added the enhancement New feature or request label Jun 7, 2022
@tomvanswam tomvanswam self-assigned this Jun 7, 2022
@sciurius
Copy link
Author

Not quite the same but probably imvolves the same logic and code: Show a trail of one or more previous values.
For example:
scrot20220614123826

@sciurius
Copy link
Author

sciurius commented Jun 24, 2022

A workaround to suppress the direction:

  - type: custom:compass-card
    header: false
    language: nl
    indicator_sensors:
      - sensor: sensor.bresser51_wind_direction
        indicator:
          type: arrow_inward
          show: false
          dynamic_style:
            sensor: sensor.bresser51_wind_speed
            bands:
              - from_value: 0.1
                show: true
    value_sensors:
      - sensor: sensor.bresser51_wind_beaufort

Added benefit is that the direction is suppressed when the wind speed is zero. The beaufort value reaches zero for wind speeds below ≈0.4 m/s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants