jimz011 / homekit-infused

Homekit Infused 5 2023
https://jimz011.github.io/homekit-infused/
Other
873 stars 137 forks source link

notifications #191

Open 602293544 opened 1 year ago

602293544 commented 1 year ago
- type: conditional
  conditions:
    - entity: light.chu_wu_jian_deng
      state_not: "unknown"
  card:
    !include
    - '../hki-base/templates/header/subtitle-notification-template.yaml'
    - icon: mdi:check-box-outline
      name: |-
        [[[ if (states['light.chu_wu_jian_deng'].state == "on") 
              return states['light.chu_wu_jian_deng'].attributes.friendly_name +"已打开";
            else 
              return states['light.chu_wu_jian_deng'].attributes.friendly_name +"已关闭";
        ]]]
jimz011 commented 1 year ago

Not sure what you want me to see here?