Home-Assistant-custom-components-Burze.dzis.net icon indicating copy to clipboard operation
Home-Assistant-custom-components-Burze.dzis.net copied to clipboard

Add sensor entities

Open Dawider10 opened this issue 5 years ago • 6 comments

I think having weather warnings as sensors with warning level as state would be better. Instead of just 'on/off' we would have information about warning level available immediately in the UI and in history. Right now we have to create template sensors to make warning level visible.

Dawider10 avatar Jun 20 '20 18:06 Dawider10

I think I can easily add it as an additional sensor, I will do it in a free time

PiotrMachowski avatar Jun 20 '20 18:06 PiotrMachowski

@PiotrMachowski Did you have some spare time to make this happen ? I have added this integration with HACKS and i can only see binary sensors with on/off state

MSzczesiak-SH avatar Aug 31 '21 14:08 MSzczesiak-SH

@MSzczesiak-SH not really, other integrations got higher priority

PiotrMachowski avatar Aug 31 '21 19:08 PiotrMachowski

@MSzczesiak-SH not really, other integrations got higher priority

Any chances on this one to be done ? Or at least ETA ? No rushing, just asking.

MSzczesiak-SH avatar Sep 01 '21 09:09 MSzczesiak-SH

@MSzczesiak-SH I plan to do it, but I have a loooooooooot of work with other HA stuff (mostly related to Xiaomi vacuums), so unfortunately I can't provide any ETA

PiotrMachowski avatar Sep 01 '21 09:09 PiotrMachowski

@MSzczesiak-SH I plan to do it, but I have a loooooooooot of work with other HA stuff (mostly related to Xiaomi vacuums), so unfortunately I can't provide any ETA

Fair enough. Thnx for the answer.

MSzczesiak-SH avatar Sep 01 '21 10:09 MSzczesiak-SH

Hi @PiotrMachowski , any update? :)

fcqpl avatar Jul 12 '23 22:07 fcqpl

Hi @fcqpl

I have pulled an all-nighter, buuuut I have rewritten the integration from the scratch.

v2.0.0 coming soon

image

PiotrMachowski avatar Jul 13 '23 07:07 PiotrMachowski

Added in v2.0.0

PiotrMachowski avatar Jul 13 '23 20:07 PiotrMachowski

Hi @PiotrMachowski, thanks for update! Could you also add:

  • lightning counter
  • distance to lightning and it's direction?

Like on website:

Zarejestrowano w ciągu 10 minut, 2 wyładowania atmosferyczne w wybranym promieniu. Najbliższe wyładowanie atmosferyczne 28,53 km na północny zachód od wskazanej lokalizacji.

fcqpl avatar Jul 13 '23 21:07 fcqpl

Lightning counter has also been added in v2.0.0, distance, period and direction are currently available in attributes of lightning-related entities

image

{% set entity = 'sensor.burze_dzis_net_0_00_0_00_wyladowania_w_poblizu' %}
Zarejestrowano w ciągu 
{{ state_attr(entity, 'period') }}
minut, 
{{ states(entity) }}
wyładowania atmosferyczne w wybranym promieniu. Najbliższe wyładowanie atmosferyczne 
{{ state_attr(entity, 'distance') }}
km na 
{{ {'N':'północ', 'NW':'północny zachód', 'W':'zachód', 'SW':'południowy zachód', 'S':'południe', 'SE':'południowy wschód', 'E':'wschód', 'NE':'północny wschód'}[state_attr(entity, 'direction')] }}
od wskazanej lokalizacji.

PiotrMachowski avatar Jul 13 '23 21:07 PiotrMachowski

Oh, I found it. Thanks!

fcqpl avatar Jul 13 '23 21:07 fcqpl