Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106083

Template Light - State

$
0
0

Hi Everyone,

Need to preface this with I am fairly new to HA.
I have a pendant light that can only be controlled via RF. I have been able to create a script to handle light actions but can’t seem to keep track of the Light’s state.

Template Below:

light:
  - platform: template
    lights:
      family_room_fan_light:
        friendly_name: "Family Room Fan Light"
        unique_id: 999999003
        value_template: "{{ states('light.family_room_fan_light_state') == 'on' }}"
        turn_on:
          service: script.family_room_fan_light_actions
          data:
            action: "on"
        turn_off:
          service: script.family_room_fan_light_actions
          data:
            action: "off"

Light State Showing on HA as “OFF”, attempting to turn it on does turn it on but it does not change the state.

Any assistance would be greatly appreciated.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>