dp20eic
6. September 2024 um 12:46
2
Moin,
und willkommen im Forum.
das mit der configuration.yaml ist schon ein Schritt, den man sich gut überlegen sollte, aber nichts ist unmöglich, schau mal bei ihm vorbei, vielleicht hilft es Dir ja
Auch das habe ich gefunden
Hey, ich habe meine configuration. yaml so aufgeilt:
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include sensor.yaml
Jetzt möchte ich gerne das hier ergänzen:
template:
sensor:
- name: "Calculated Light Brightness"
unit_of_measurement: "Int"
state: |
{%- set lux = states('sensor.estimated_illuminance') | int(default=0) -%}
{%- set perc = (lux / (400 / 100)) | int -%}
{{ perc }}
sensor:
- …
VG
Bernd
1 „Gefällt mir“