fboundy / ha_solis_modbus

YAML file for reading Solis Hybrid Inverter directly with HA native modbus
MIT License
50 stars 7 forks source link

Missing input? #2

Closed finalbillybong closed 1 year ago

finalbillybong commented 1 year ago

Hey. Great work on this. Thank you!

The template below references 'input_number.solis_battery_capacity'

 - sensor:       
     name: "Solis Eco7 Charge Current"
     unique_id: "Solis Eco7 Charge Current"
     device_class: current
     state_class: measurement
     unit_of_measurement: A
     state: >-
       {{(
       ((states('input_number.solis_battery_capacity') | int * 1000) *
       ((states('input_number.eco7_target_soc') | int) - (states('sensor.solis_battery_soc') | int))
       ) 
       / 10
       / 
       (states('sensor.solis_eco7_time_remaining') | float)
       / (states('sensor.solis_battery_voltage_bms') | float) ) | int / 10
       }}

But I cannot see that in the inputs.yaml? My HA throws the error 'Template error: int got invalid input 'unknown' when rendering'.

fboundy commented 1 year ago

Noted

fboundy commented 1 year ago

Fixed in v1.1.2