habe nun nochmals alles geprüft. Die Lösung ist genial.
Vielen, vielen Dank.
Nur noch zwei Fragen:
Ist es einfach möglich die Symbole von allen Fenstern die nicht geschlossen sind gelb zu färben?
2.Wenn ich alle Fenster so eingefügt habe, dann ist meine configuration.yaml sehr voll. Könnte man alle Fenstersensoren z.B. in eine fenstersensoren.yaml auslagern?
Nochmals herzlichen Dank. Wie kann man diese Programiersprache nur so verstehen?
Gruß Werner
Hi there,
have now checked everything again. The solution is awesome.
Thanks alot.
Just two more questions:
Is it easy to color the symbols of all windows that are not closed yellow?
When I have inserted all windows like this, then my configuration.yaml is very full. Could all window sensors be outsourced, for example in a window sensors.yaml?
Again thank you very much. How can you understand this programming language in that way?
die Auslagerung habe ich soweit verstanden und würde mich bei Problemen nochmals melden.
Mit dem Einfärben (Thema) werde ich mich auch beschäftzigen.
Das Hauptziel ist auf jedenfall erreicht.
Vielen Dank.
Gruß Werner
Hello and thank you very much.
I have understood the outsourcing as far as possible and would contact me again if there were any problems.
I will also deal with the coloring (topic).
Unfortunately, I still can’t do that either.
Tried to select “fensterstatus” as Entities - that also worked.
However, if I enter “offen” as the “State”, it doesn’t work.
I changed the sensor code a bit, for example:
fensterstatus_schlafzimmer_dg:
friendly_name: Fenster Schlafzimmer-DG
value_template: |
{% set b1 = states('binary_sensor.lumi_lumi_sensor_magnet_aq2_007cf906_on_off') %}
{% set b2 = states('binary_sensor.lumi_lumi_sensor_magnet_aq2_698aff06_on_off') %}
{% if b1 == 'off' and b2 == 'off' %} geschlossen
{% elif b1 == 'on' and b2 == 'off' %} gekippt
{% elif b2 == 'on' %} offen
{% elif b1 == 'unavailable' or b2 == 'unavailable' %} nicht verfügbar
{% else %} ?
{% endif %}
icon_template: |
{% set b1 = states('binary_sensor.lumi_lumi_sensor_magnet_aq2_007cf906_on_off') %}
{% set b2 = states('binary_sensor.lumi_lumi_sensor_magnet_aq2_698aff06_on_off') %}
{% if b1 == 'off' and b2 == 'off' %} mdi:window-closed-variant
{% elif b1 == 'on' and b2 == 'off' %} mdi:angle-acute
{% elif b2 == 'on' %} mdi:window-open-variant
{% elif b1 == 'unavailable' or b2 == 'unavailable' %} mdi:exclamation
{% else %} ?
{% endif %}
Greetings Werner
Hallo,
kein Problem. Wenn es so nicht geht, werde ich mir alle offenen oder gekippten Fenster in einer Karte anzeigen lassen. Ich nutze dazu dieses System:
Leider bekomme ich auch das noch nicht hin.
Habe versucht als Entities fensterstatus zu wählen - das hat auch funktioniert.
Jedoch wenn ich als “State” z.B. “offen” eingebe, da funktioniert es nicht.
Den Sensorencode habe ich noch etwas geändert, z.B.:
fensterstatus_schlafzimmer_dg:
friendly_name: Fenster Schlafzimmer-DG
value_template: |
{% set b1 = states('binary_sensor.lumi_lumi_sensor_magnet_aq2_007cf906_on_off') %}
{% set b2 = states('binary_sensor.lumi_lumi_sensor_magnet_aq2_698aff06_on_off') %}
{% if b1 == 'off' and b2 == 'off' %} geschlossen
{% elif b1 == 'on' and b2 == 'off' %} gekippt
{% elif b2 == 'on' %} offen
{% elif b1 == 'unavailable' or b2 == 'unavailable' %} nicht verfügbar
{% else %} ?
{% endif %}
icon_template: |
{% set b1 = states('binary_sensor.lumi_lumi_sensor_magnet_aq2_007cf906_on_off') %}
{% set b2 = states('binary_sensor.lumi_lumi_sensor_magnet_aq2_698aff06_on_off') %}
{% if b1 == 'off' and b2 == 'off' %} mdi:window-closed-variant
{% elif b1 == 'on' and b2 == 'off' %} mdi:angle-acute
{% elif b2 == 'on' %} mdi:window-open-variant
{% elif b1 == 'unavailable' or b2 == 'unavailable' %} mdi:exclamation
{% else %} ?
{% endif %}