Intégration Solar Optimizer - Optimisation de sa consommation Solaire

Le mieux est de se faire des sensor template si l’info est pas nativement disponible.
J’ai fait ça pour ma part, si ça peut aider:

- sensor:
    - name: "Total puissance consommée instantanée (W)"
      unique_id: total_power_consomme_w
      device_class: power
      unit_of_measurement: "W"
      state_class: measurement
      state: >
        {% set power = states('sensor.envoy_122307065303_current_power_consumption') | float(default=-1.0) %}
        {% if power < 0 %}0{% else %}
          {{ power | round(2) }}
        {% endif %}
    - name: "Total puissance consommee instantanée"
      unique_id: total_power_consommee
      unit_of_measurement: "kW"
      state_class: measurement
      state: >
        {% set power = states('sensor.total_puissance_consommee_instantanee_w') | float(default=-1.0) %}
        {% if power < 0 %}{{none}}{% else %}
          {{ (power / 1000) | round(2) }}
        {% endif %}
    - name: "Total puissance produite instantanée (W)"
      icon: mdi:solar-power-variant
      unique_id: total_power_produite_w
      device_class: power
      unit_of_measurement: "W"
      state_class: measurement
      state: >
        {% set power = states('sensor.envoy_122307065303_current_power_production') | float(default=-1.0) %}
        {% if power < 0 %}0{% else %}
          {{ power | round(2) }}
        {% endif %}
    - name: "Total puissance produite instantanée"
      icon: mdi:solar-power-variant
      unique_id: total_power_produite
      unit_of_measurement: "kW"
      state_class: measurement
      state: >
        {% set power = states('sensor.total_puissance_produite_instantanee_w') | float(default=-1.0) %}
        {% if power < 0 %}{{none}}{% else %}
          {{ (power / 1000) | round(2) }}
        {% endif %}
    - name: "Total puissance importée instantanée (W)"
      icon: mdi:transmission-tower-import
      unique_id: total_power_importee_w
      unit_of_measurement: "W"
      device_class: power
      state_class: measurement
      state: >
        {% set consommation = states('sensor.envoy_122307065303_current_power_consumption') | float(default=0) %}
        {% set production = states('sensor.envoy_122307065303_current_power_production') | float(default=0) %}
        {% if consommation < 0 or production < 0 %}{{none}}{% else %}
          {% set delta = (consommation - production) | round(2) %}
          {% if delta > 0 %}
             {{ delta }}
          {% else %}
             {{ 0.0 }}
          {% endif %}
        {% endif %}
    - name: "Total puissance exportée instantanée (W)"
      icon: mdi:transmission-tower-export
      unique_id: total_power_exportee_w
      unit_of_measurement: "W"
      device_class: power
      state_class: measurement
      state: >
        {% set consommation = states('sensor.envoy_122307065303_current_power_consumption') | float(default=0) %}
        {% set production = states('sensor.envoy_122307065303_current_power_production') | float(default=0) %}
        {% if consommation < 0 or production < 0  %}{{none}}{% else %}
          {% set delta = (consommation - production) | round(2) %}
          {% if delta < 0 %}
             {{ -delta }}
          {% else %}
             {{ 0.0 }}
          {% endif %}
        {% endif %}
    - name: "Total puissance importée instantanée"
      icon: mdi:transmission-tower-import
      unique_id: total_power_importee
      unit_of_measurement: "kW"
      device_class: power
      state_class: measurement
      state: >
        {% set power = states('sensor.total_puissance_importee_instantanee_w') | float(default=-1.0) %}
        {% if power < 0 %}{{none}}{% else %}
          {{ (power / 1000) | round(2) }}
        {% endif %}
    - name: "Total puissance exportée instantanée"
      icon: mdi:transmission-tower-import
      unique_id: total_power_exportee
      unit_of_measurement: "kW"
      state_class: measurement
      state: >
        {% set power = states('sensor.total_puissance_exportee_instantanee_w') | float(default=-1.0) %}
        {% if power < 0 %}{{none}}{% else %}
          {{ (power / 1000) | round(2) }}
        {% endif %}
    - name: "Total puissance consommée net instantanée (W)"
      unique_id: total_power_consommee_net_w
      unit_of_measurement: "W"
      device_class: power
      state_class: measurement
      state: >
        {% set importe = states('sensor.total_puissance_importee_instantanee_w') | float(default=-1.0) %}
        {% set exporte = states('sensor.total_puissance_exportee_instantanee_w') | float(default=-1.0) %}
        {% if importe < 0 or exporte < 0  %}{{none}}{% else %}
          {% set delta = (importe - exporte) | round(2) %}
             {{ delta }}
        {% endif %}
    - name: "Total puissance consommée net instantanée"
      unique_id: total_power_consommee_net
      unit_of_measurement: "kW"
      device_class: power
      state_class: measurement
      state: >
        {% set importe = states('sensor.total_puissance_importee_instantanee') | float(default=-1.0) %}
        {% set exporte = states('sensor.total_puissance_exportee_instantanee') | float(default=-1.0) %}
        {% if importe < 0 or exporte < 0  %}{{none}}{% else %}
          {% set delta = (importe - exporte) | round(2) %}
             {{ delta }}
        {% endif %}

J’ai tous les sensors dispos en W en Kw, en instantané, …

Et ça gère proprement les indispos de ces capteurs (la nuit par exemple).

1 « J'aime »