Untitled
alias: Immersion Heater Based on Solar and Battery AIO (WIP) description: >- Turn on/off the immersion heater based on solar input and battery state of charge. mode: single triggers: - entity_id: - sensor.sigen_pv_power above: 3950 id: PV-immersion_on_threshold trigger: numeric_state - entity_id: - sensor.sigen_ess_battery_soc above: 94.8 id: Sunsynk_SOC-immersion_on_threshold trigger: numeric_state - entity_id: - switch.sonoff_1002417850 to: "on" id: POWR3-ON trigger: state conditions: [] actions: - choose: - conditions: - condition: trigger id: - POWR3-ON sequence: - action: notify.mobile_app metadata: {} data: message: Immersion Heater has been turned on. - delay: hours: 0 minutes: 0 seconds: 5 milliseconds: 0 - wait_template: "{{ states('sensor.sonoff_1_current') | float < 1 }}" continue_on_timeout: true enabled: true - type: turn_off device_id: switch.sonoff_1002417850 entity_id: (your entity id) domain: switch - action: notify.mobile_app metadata: {} data: message: Immersion Heater has been turned off. - delay: hours: 1 minutes: 0 seconds: 0 milliseconds: 0 - conditions: - condition: trigger id: - Sunsynk_SOC-immersion_on_threshold - PV-immersion_on_threshold - condition: device type: is_off device_id: switch.sonoff_1002417850 entity_id: domain: switch - condition: numeric_state entity_id: sensor.sigen_pv_power above: 3950 - condition: numeric_state entity_id: sensor.sigen_ess_battery_soc above: 94.8 sequence: - target: entity_id: switch.sonoff_1002417850 data: {} action: switch.turn_on - action: notify.mobile_app metadata: {} data: message: Immersion Heater has been turned on. - delay: hours: 0 minutes: 0 seconds: 5 milliseconds: 0 - wait_template: "{{ states('sensor.sonoff_1_current') | float < 1 }}" continue_on_timeout: true enabled: true - type: turn_off device_id: switch.sonoff_1002417850 entity_id: sonoff domain: switch - action: notify.mobile_app metadata: {} data: message: Immersion Heater has been turned off. - delay: hours: 1 minutes: 0 seconds: 0 milliseconds: 0
Leave a Comment