refactor config yaml into new files

This commit is contained in:
root
2025-04-28 15:28:48 -04:00
parent 873064d680
commit c31b8831af
23 changed files with 1106 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
platform: tcp
host: 192.168.1.22
port: 23
payload: ""
name: "Moisture Scale"
scan_interval:
seconds: 1
value_template: >-
{% if value | contains('S') %}
{% set temp_value = value | regex_findall_index('\d+(?=, g)') | float %}
{% if value | contains('-') %}
{% set temp_value = temp_value * -1 %}
{% endif %}
{{ temp_value }}
{% else %}
{{ states("sensor.moisture_scale") }}
{% endif %}
unit_of_measurement: "g"