I have been desperately trying to figure out how to use ‘state’ to make a button (icon) change color based upon my washer’s state.
I have an input text field that I am storing the state in - Idle, Washing, Finished
I have tried several things, and I cant get anything to work. I have read through the examples on github, and tried several of them. I am getting closer, as I can make a direct example do whta it supposed to… but mine just doesnt work.
There is a good chance I am just not doing something right…
Ideally, I would do more than switch the icon - but this was my latest attempt. I am sure I am missing something critical. I dont need it to react based on an action… Just trying to read the value from the input text, and react on its behalf.
You definitely did not understand your mistake. Suggest you to check my advice again.
Just noticed - it is the THIRD time I am suggesting you the same. Guess I should give it up.
hmm… @Ildar_Gabdullin did actually identify the entity issue in his very first post. so i think he was right from the get go and had the original correct solution.
Thank you for pointing that out - I have corrected everything above, I totally missed that the first time around. Somehow I was focused on the spaces and did not see the subtle change in the entity! I guess thats what I get for rushing to attempt to fix things on my way out the door going to work!!