aboutsummaryrefslogtreecommitdiffhomepage
path: root/config/kauf-plf12-base.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'config/kauf-plf12-base.yaml')
-rw-r--r--config/kauf-plf12-base.yaml37
1 files changed, 37 insertions, 0 deletions
diff --git a/config/kauf-plf12-base.yaml b/config/kauf-plf12-base.yaml
new file mode 100644
index 0000000..b2bcc0b
--- /dev/null
+++ b/config/kauf-plf12-base.yaml
@@ -0,0 +1,37 @@
+# this file contains anything that needs to be changed for PLF12 relative to PLF10.
+
+substitutions:
+ project_name: Kauf.PLF12
+
+ # power monitoring configuration
+ voltage_divider_val: "2001"
+ sub_hlw_model: BL0937
+ power_cal_val2_in: "879.4"
+ power_cal_val2_out: "750"
+ current_cal_val2_in: "6.8"
+ current_cal_val2_out: "3.5"
+ voltage_cal_val2_in: "132.7"
+ voltage_cal_val2_out: "119.1"
+
+ # GPIO definitions
+ sub_red_led_pin: GPIO1
+ sub_button_pin: GPIO3
+ sub_pm_cf_pin: GPIO4
+ sub_pm_cf1_pin: GPIO5
+ sub_blue_led_pin: GPIO12
+ sub_relay_pin: GPIO13
+ sub_pm_sel_pin: GPIO14
+
+ # debounce specifications
+ sub_default_debounce: "20"
+ sub_min_debounce: "10"
+
+ sub_default_scale_power: "87"
+ sub_default_scale_current: "162"
+ sub_default_scale_voltage: "85"
+
+ sub_early_publish_absolute: "4.05" # for PLF12, 1w is approximately 1.35. 4.05 is approximately 3w.
+
+
+logger:
+ baud_rate: 0