Hello, I want to realize the linkage between the air conditioner indicator and the lighting lamp, but I have encountered a problem. He will not be triggered in the automation, now he needs the help of a master, thank !
First of all, thank you very much for your reply. The entity is an air conditioner, and the indicator light of the air conditioner can be independently controlled on the remote control. As long as I judge the indicator light, this will enable me to control the bedroom light by the remote control. Simply put, it is to judge the state of an attribute in the entity
By the way, I am a smart home enthusiast from China. Not in English, the text is all from a translation, the language structure may be more complicated, thank you very much for your patience to read the reply
Does my previous answer help you solve the problem? If it doesn’t, please give more information regarding the entity (a screenshot of the state attribute as well as the states entity would help).
Thank you again. Your code can be triggered. Unfortunately, the switch of the whole air conditioner at that time. What I want is the switch of the indicator light in the air conditioner. I see that the status of the indicator light is included in the air conditioner. I need the bedroom light and the air conditioner indicator light to operate together
alias: Turn Off Light if AC Indicator Switch False
description: ''
mode: single
trigger:
- platform: state
entity_id: climate.mt8_cloud_266066
attribute: indicator__switch_status
to: 'false'
condition: []
action:
- service: light.turn_off
target:
entity_id: light.meshbulb1_cloud_012543
To try, make sure at the beginning indicator__switch_status is TRUE. Next, try turning OFF the AC so that indicator__switch_status become FALSE. It should trigger the automation.
At the beginning, must begin with indicator__switch_status: true
Turn off the AC, then it should change to indicator__switch_status: false
This will trigger your automation.
Last, to clarify where the problem might lies, use Troubleshooting Automation. You can also post the screenshot of the Debug Trace here.