Skip to content

Commit

Permalink
Updates to eco7 templates
Browse files Browse the repository at this point in the history
  • Loading branch information
fboundy committed Nov 28, 2022
1 parent d330dc3 commit d8a32f1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions eco7-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions inputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion solis-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
/
Expand Down

0 comments on commit d8a32f1

Please sign in to comment.