Setup knobs and levers
Configuration.yaml entities¶
Let's start by adding the helper entities which we use for controlling the setup. Notice the comments.
/config/configuration.yaml
#... previous configuration ommited
####################
# SOLAX INVERTOR HELPERS
####################
# our entities for invertor overview
input_select:
# managed by the python script, will get overriden if the input_boolean.automatic_invertor_control_enabled is true
invertor_strategy:
name: Invertor Strategy
options:
- Sell to grid
- Charge
- Discharge
- No action
initial: No action
icon: mdi:strategy
input_boolean:
# managed by the python script
export_allowed:
name: Export allowed
icon: mdi:home-export-outline
# this is for you to touch
automatic_invertor_control_enabled:
name: Automatic Invertor Control Enabled
icon: mdi:brain
input_number:
# this value will define the value which the export_limit is restored
# you can override this
maximum_export_allowed:
name: Maximum export when export allowed
initial: 11600
min: 0
max: 11600
step: 100
mode: box
# what is the price at which we will start selling, set as you wish
export_price_threshold:
name: Sell threshold
initial: 0
min: 0
max: 10
mode: box
template:
- binary_sensor:
- name: EMHASS publish
unique_id: emhass_publish_p_batt_stale
device_class: problem
# on (Problem) when sensor.p_batt_forecast is missing or hasn't been written for 15 minutes
state: >
{% set s = states.sensor.p_batt_forecast %}
{{ s is none or now() - s.last_reported > timedelta(minutes=15) }}