From d8a32f12e654b840fee164b1decd6cd4aaf6307a Mon Sep 17 00:00:00 2001 From: fboundy Date: Mon, 28 Nov 2022 17:04:50 +0000 Subject: [PATCH] Updates to eco7 templates --- eco7-dashboard.yaml | 2 ++ inputs.yaml | 11 +++++++++++ solis-template.yaml | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/eco7-dashboard.yaml b/eco7-dashboard.yaml index 99fe6b7..5008aed 100644 --- a/eco7-dashboard.yaml +++ b/eco7-dashboard.yaml @@ -65,7 +65,9 @@ views: - entity: input_datetime.economy_7_start - entity: input_datetime.economy_7_end - entity: sensor.solis_eco7_time_remaining + - entity: input_number.eco7_target_soc - entity: sensor.solis_eco7_charge_current + title: Economy 7 Charging state_color: true - type: history-graph diff --git a/inputs.yaml b/inputs.yaml index ec2148a..b9f7e26 100644 --- a/inputs.yaml +++ b/inputs.yaml @@ -41,3 +41,14 @@ input_datetime: has_date: false has_time: true icon: mdi:clock-digital + +input_number: + eco7_target_soc: + name: Economy 7 Target SOC + initial: 100 + mode: box + unit_of_measurement: "%" + min: 0 + max: 100 + step: 1 + icon: mdi:battery diff --git a/solis-template.yaml b/solis-template.yaml index c5c6f52..863d143 100644 --- a/solis-template.yaml +++ b/solis-template.yaml @@ -75,7 +75,7 @@ template: state: >- {{( ((states('input_number.solis_battery_capacity') | int * 1000) * - ((states('sensor.solis_opt_target_soc') | int) - (states('sensor.solis_battery_soc') | int)) + ((states('input_number.eco7_target_soc') | int) - (states('sensor.solis_battery_soc') | int)) ) / 10 /