question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

reset manual_control is never working because bug in condition value?

See original GitHub issue

Version 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:closed
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
JDFS404commented, Aug 19, 2021

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.

1reaction
Chreececommented, Aug 19, 2021

Yes sorry, I didn’t see the declaration of the variables in your automation. Try the fix in my last post

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found