Skip to content

Commit

Permalink
substitutions for power scaling values
Browse files Browse the repository at this point in the history
  • Loading branch information
KaufHA committed May 29, 2023
1 parent 976f980 commit a9dca4c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions kauf-plug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ substitutions:

# https://esphome.io/components/esphome.html#esphome-creators-project
project_name: Kauf.PLF10
project_ver_num: "2.025"
project_ver_num: "2.026"
project_ver_let: y

# https://esphome.io/components/switch/gpio.html?highlight=restore_mode
Expand Down Expand Up @@ -65,6 +65,10 @@ substitutions:
voltage_cal_val2_in: "302.1"
voltage_cal_val2_out: "117.1"

sub_default_scale_power: "100"
sub_default_scale_current: "100"
sub_default_scale_voltage: "100"

# set default power monitoring update interval in yaml.
# this will only be effective as long as the select entity is set to "YAML Configured"
sub_update_interval: 10s
Expand Down Expand Up @@ -591,7 +595,7 @@ number: # used as a threshold for whether the plugged-in devices is running
min_value: 50
max_value: 200
step: .1
initial_value: 100
initial_value: $sub_default_scale_power
id: scale_power
entity_category: config
optimistic: true
Expand All @@ -612,7 +616,7 @@ number: # used as a threshold for whether the plugged-in devices is running
min_value: 50
max_value: 200
step: .1
initial_value: 100
initial_value: $sub_default_scale_current
id: scale_current
entity_category: config
optimistic: true
Expand All @@ -633,7 +637,7 @@ number: # used as a threshold for whether the plugged-in devices is running
min_value: 50
max_value: 200
step: .1
initial_value: 100
initial_value: $sub_default_scale_voltage
id: scale_voltage
entity_category: config
optimistic: true
Expand Down

0 comments on commit a9dca4c

Please sign in to comment.