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

Fascia 23 #32

Open
Raptor1964S opened this issue Dec 28, 2023 · 2 comments
Open

Fascia 23 #32

Raptor1964S opened this issue Dec 28, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Raptor1964S
Copy link

C'è la possibilità di configurare, per chi ha la fascia 23, il PUN fascia F23 come "Prezzo fascia Corrente" ? Grazie

@virtualdj
Copy link
Owner

Al momento no, appena ho qualche idea e soprattutto tempo libero pensavo di introdurre una sorta di configurazione nell'integrazione per scegliere se uno usa la monoraria, la fascia bioraria (F1 e F23) o la trioraria (F1, F2, F3).
Ma siccome tocca riscrivere gran parte del codice al momento non riesco...

Nel frattempo puoi usare un template sensor come questo da inserire in configuration.yaml:

# Prezzo fascia bioraria corrente
template:
  - sensor:
      - unique_id: prezzo_fascia_bioraria_corrente
        name: 'Prezzo fascia bioraria corrente'
        icon: mdi:currency-eur
        unit_of_measurement: '€/kWh'
        state: >
          {% if states('sensor.pun_fascia_corrente')=='F1' %}{{ states('sensor.pun_fascia_f1')}}{% else %}{{ states('sensor.pun_fascia_f23')}}{% endif %}

@virtualdj virtualdj added the enhancement New feature or request label Dec 28, 2023
@Raptor1964S
Copy link
Author

Grazie!!

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