I have an Owl Intuition setup in “Type 1” configuration per their setup instructions:
The two current clamps measure the Solar Generated and the total amount consumed by our home. It doesn’t provide a measurement of what is consumed from the grid. This can be derived by deducting one from the other which I’ve done using template sensors to provide the power now and the energy total energy for the day.
It would be a welcome enhancement if this could be configured in the UI for this deployment of current clamps and then be able to have HA provide the correct values without needing template sensors to be created.
Example Template sensors
# Still testing this, so may not be absolutely correct
template:
- sensor:
- name: "Owl Grid Energy Now"
unit_of_measurement: "W"
state_class: measurement
device_class: power
state: >
{% if is_state('sensor.owl_intuition_electricity_power', 'unknown') or is_state('sensor.owl_intuition_solar_generating', 'unknown') %}
nan
{% else %}
{% set elec = states('sensor.owl_intuition_electricity_power') | float %}
{% set solar = states('sensor.owl_intuition_solar_generating') | float %}
{% if (float(elec) - float(solar)) < 0 %}
0
{% elif (float(elec) - float(solar)) > 0 %}
{{ float(elec) - float(solar) }}
{% endif %}
{% endif %}
- name: "Owl Grid Energy Today"
unit_of_measurement: "kWh"
state_class: total_increasing
device_class: energy
state: >
{% if is_state('sensor.owl_intuition_electricity_today', 'unknown') or is_state('sensor.owl_intuition_solar_generated_today', 'unknown') %}
nan
{% else %}
{% set elec = states('sensor.owl_intuition_electricity_today') | float %}
{% set solar = states('sensor.owl_intuition_solar_generated_today') | float %}
{% set last_grid_today = states('sensor.owl_grid_energy_today') | float %}
{% if (float(elec) - float(solar)) > 0 %}
{% if (float(elec) - float(solar)) > float(last_grid_today) %}
{{ float(elec) - float(solar) }}
{% else %}
{{ float(last_grid_today) }}
{% endif %}
{% endif %}
{% endif %}