reset manual_control is never working because bug in condition value?
See original GitHub issueVersion information:
Latest
Description:
I cannot get reset manual_control to work, it’s not grabbing the code correctly it seems. Let me show you what I tried doing in the developer tool. I have multiple switches, but for this example I use switch.adaptive_lighting_bedroom
with light.desk
.
My automation is exactly the same as @basnijholt, except I notify another device of course. This is what I see in the developer tool:
light: {{ "light.desk" }}
{{ state_attr("switch.adaptive_lighting_bedroom", "manual_control") }}
{{ light in state_attr("switch.adaptive_lighting_bedroom", "manual_control") }}
{{ "light.desk" in state_attr("switch.adaptive_lighting_bedroom", "manual_control") }}
And this is the output:
light: light.desk
['light.desk']
False
True
What is happening here, I don’t really understand. My reasoning is correct right? But in any case, the automation is always failing on this condition in the action
segment of the automation.
Edit: see fix in latest comment.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11
Top Results From Across the Web
Symptoms of a Bad or Failing AC Control Switch - YourMechanic
As the physical switch controlling AC, common signs include overheating AC parts, certain settings not working, or the AC compressor not ...
Read more >Guide to F1 Manager 2022 bug reporting : r/F1Manager - Reddit
I have not found a way to progress, and he's annoyed that he'll have to restart his game and lose his progress because...
Read more >programming Flashcards - Quizlet
bug. An error in a program. do-while loop. Java code creating a repetitive process that occurs as long as a condition is true;...
Read more >Continuous-time or discrete-time PID controller - Simulink
Initial conditions and reset trigger — See the Source and External reset parameters. Output saturation limits and built-in anti-windup mechanism — See the...
Read more >ng-select/ng-select: Native angular select component - GitHub
A function to compare the option values with the selected values. The first argument is a value from an option. The second is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This was it @Chreece you’re the man! It seems that you need to be very nitpicky working with template coding… It worked immediately. Let me make a suggestion to @basnijholt to change his Readme.
Yes sorry, I didn’t see the declaration of the variables in your automation. Try the fix in my last post