Hotwater Cylinder heated with Fronius Primo Inverter and Shelly switch

Hi there,

I am new to Home Assistant and I could really use some help with my Fronius Inverter and Shelly (attached to my hot water cylinder)

I want to use my solar to heat up my hotwater cylinder above a threshold. The hotwater Cylinder has a 3kW element.

My criteria are:

  • Check if Shelly needs power to avoid a constant on/off and if my Fronius AC is generating 2400 W
  • And Season is winter And time is between 10.00 - 15.00
  • Then turn on the Shelly Hotwater
  • If Shelly hasn't needed power for X hours, stop the check.
alias: Solar and Hotwater - Winter - ON
description: ""
triggers:
  - trigger: state
    entity_id:
      - sensor.primo_5_0_1_1_ac_power
  - trigger: numeric_state
    entity_id:
      - sensor.primo_5_0_1_1_ac_power
    for:
      hours: 0
      minutes: 5
      seconds: 0
    above: 2399.8
conditions: []
actions:
  - choose:
      - conditions:
          - condition: numeric_state
            entity_id: sensor.primo_5_0_1_1_ac_power
            above: 2400
          - condition: state
            entity_id: sensor.season
            state:
              - winter
          - condition: time
            after: "10:00:00"
            before: "15:00:00"
        sequence:
          - type: turn_on
            device_id: 7997aebcb9651dd6bca4102fbc6a5802
            entity_id: 9b6afd1cd1c7e3b3d0671910fd82fb02
            domain: switch
mode: single
---------------------------
alias: Solar and Hot Water - Winter - OFF
description: ""
triggers:
  - trigger: state
    entity_id:
      - sensor.primo_5_0_1_1_ac_power
  - type: powered
    device_id: 7997aebcb9651dd6bca4102fbc6a5802
    entity_id: 2d6eaff710fe9d92f0fd88df845bcf56
    domain: binary_sensor
    trigger: device
conditions:
  - condition: numeric_state
    entity_id: sensor.primo_5_0_1_1_ac_power
    below: 1500
  - condition: state
    entity_id: sensor.season
    state:
      - winter
  - condition: time
    after: "10:00:00"
    before: "14:30:00"
actions:
  - type: turn_off
    device_id: 7997aebcb9651dd6bca4102fbc6a5802
    entity_id: 9b6afd1cd1c7e3b3d0671910fd82fb02
    domain: switch
mode: single

What does that mean ? Is it 2 conditions or 1 ?

And your trigger is going to fire ALL the time as your entity sensor.primo_5_0_1_1_ac_power is presumably the value in watts passing through the shelly ? (which will vary slightly I assume).

Hi Rofo, it's 2 conditions at the same time: does the Shelly need power and is there enough Solar to provide that power.

And the Shelly sensor is sensor.hotwater_shelly_hoa_power / The Fronius sensor is sensor.primo_5_0_1_1_ac_power

So when you say:-

That means you need power to heat your water ?

and

  • If Shelly hasn't needed power for X hours, stop the check.

Mean the water is over the threshold needed to heat it ?

How do you know if the water is at the required temperature ? You have no sensor for this. Or are you relying on an analogue thermostat to turn the heating element off ?

Hi Rofo,

Yes I want to use the solar feed to heat up my water.

I am relying on the thermostat, once the hot water cylinder is full, the Shelly does not draw any more power. This could be a signal for the automation to stop checking for the day.