muchasuerte / ha-besmart

Home-Assistant Support for Riello's Besmart thermostats.
MIT License
13 stars 6 forks source link

Stato batterie #15

Open PaulusThe1 opened 1 year ago

PaulusThe1 commented 1 year ago

Lo stato delle batterie del termostato non vengono replicate. In una precedente versione lo stato era stato aggiunto, ma risulta sempre nello stato "normale" nonostante adesso le batterie sono scariche (simbolo "batterie scariche" attivo sul display del termostato).

PaulusThe1 commented 1 year ago

Novità?

faxbio commented 1 year ago

Nei prossimi giorni provo a dare uno sguardo. Negli attributi del componente climate vedi comunque battery_status=true ?

PaulusThe1 commented 1 year ago

Battery state = 'normale' -------- Messaggio originale --------Da: faxbio @.> Data: 09/05/23 00:31 (GMT+01:00) A: muchasuerte/ha-besmart @.> Cc: PaulusThe1 @.>, Author @.> Oggetto: Re: [muchasuerte/ha-besmart] Stato batterie (Issue #15) Nei prossimi giorni provo a dare uno sguardo. Negli attributi del componente climate vedi comunque battery_status=true ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

faxbio commented 1 year ago

Strano, sto controllando da me, lo status dovrebbe essere o true o false. Che da te riporti "normale" e' ancora un altro film...

da e' battery_state: true

provo a verificare cosa succede se "forzo" con una batteria scarica. se riesci nel frattempo prova a postare la porzione di log che riporta la risposta del componente, quella con tutta la pianificazione .... dovresti trovare bat = 0 o bat = 1..

PaulusThe1 commented 1 year ago

io nel file config.YAML trovo la seguente configurazione: climate:

binary_sensor:

PaulusThe1 commented 9 months ago

novità?

faxbio commented 9 months ago

Il mio funziona, quando il server è su....

Adesso ne ho appunto uno son batterie scariche e me lo segnala...

batteryalertnew:
  friendly_name: "Batteria Besm New"
  value_template: >-
      {% if is_state_attr('climate.besmart_casa_nuova', 'battery_state', false) %}
        scarico
      {% else %}
        operativo
      {% endif %}
  icon_template: >-
      {% if is_state_attr('climate.besmart_casa_nuova', 'battery_state', false) %}
        mdi:battery-alert-variant
      {% else %}
        mdi:battery-heart-variant
      {% endif %}
  unique_id: '14455966343394'
gianb80 commented 6 months ago

Il mio funziona, quando il server è su.... Adesso ne ho appunto uno son batterie scariche e me lo segnala... batteryalertnew: friendly_name: "Batteria Besm New" value_template: >- {% if is_state_attr('climate.besmart_casa_nuova', 'battery_state', false) %} scarico {% else %} operativo {% endif %} icon_template: >- {% if is_state_attr('climate.besmart_casa_nuova', 'battery_state', false) %} mdi:battery-alert-variant {% else %} mdi:battery-heart-variant {% endif %} unique_id: '14455966343394'

Ciao Faxbio grazie per questo Alert.

Mi sapresti dire dove va messo questo batteryalertnew ? E' un template sensor? Un platform template?

Mi basterebbe la parte prima di Batteryalertnew per integrarlo nel mio configuration.yaml.

Grazie ancora