sensor.yaml

bssid hozzárendelése szöveges szenzorhoz.
 avatar
user_4999651
plain_text
7 months ago
1.9 kB
0
Indexable
Never
- platform: template
  sensors:
    bori_wifiap:
      friendly_name: Bori WifiAP
      icon_template: >
        mdi:wifi
      value_template: >
        {% if (states('sensor.accord_bssid') [12:17] == "BE:C6") %}
          Iroda
        {% elif (states('sensor.accord_bssid') [12:17] == "BE:C7") %}
          Iroda
        {% elif (states('sensor.accord_bssid') [12:17] == "BE:C6") %}
          Iroda                    
        {% elif (states('sensor.accord_bssid') [12:17] == "BF:36") %} 
          Udvar
        {% elif (states('sensor.accord_bssid') [12:17] == "BF:37") %} 
          Udvar
        {% elif (states('sensor.accord_bssid') [12:17] == "BE:E0") %} 
          Emelet
        {% elif (states('sensor.accord_bssid') [12:17] == "BE:E1") %} 
          Emelet
        {% elif (states('sensor.accord_bssid') [12:17] == "BE:E0") %} 
          Emelet          
        {% elif (states('sensor.accord_bssid') [12:17] == "C1:08") %} 
          Kisgarázs
        {% elif (states('sensor.accord_bssid') [12:17] == "C1:09") %} 
          Kisgarázs
        {% elif (states('sensor.accord_bssid') [12:17] == "B4:61") %} 
          Nappali
        {% elif (states('sensor.accord_bssid') [12:17] == "B4:60") %} 
          Nappali
        {% elif (states('sensor.accord_bssid') [12:17] == "B4:60") %} 
          Nappali
        {% elif (states('sensor.accord_bssid') [12:17] == "07:47") %} 
          Terasz
        {% elif (states('sensor.accord_bssid') [12:17] == "07:47") %} 
          Terasz
        {% elif (states('sensor.accord_bssid') [12:17] == "07:19") %} 
          Műhely-Garázs
        {% elif (states('sensor.accord_bssid') [12:17] == "07:20") %} 
          Műhely-Garázs
        {% elif (states('sensor.accord_bssid') [12:17] == "07:21") %} 
          Műhely-Garázs
        {% elif (states('binary_sensor.accord') == "off") %} 
          Nincs a hálózaton
        {%else%}
          Nincs a hálózaton
        {% endif %}
Leave a Comment