I’m at a total loss with this one.
I have a tile set up to display whether my heating is on or off and at what set point the heating has been set to.
The problem I’m having is that it always shows the previous set point temperature not the current set point temperature.
Here is what it is showing in the dashboard:-
Which is the previous setting it was set to.
Here is the formatting of the tile and as you can see it evalutes to 14 which is correct, and yet it shows 22.5.
I’m at a loss as to why this is.
Any ideas folks…
EDIT: Here is the global variable which is showing 14.
Tile Giving Incorrect Variable Value
Yes. It’s really weird.
If I turn my heating on, to say 22, then the tile changes to 14.
If I turn my heating off, which sets a default value of 14, the tile then changes to 22.
If I turn my heating on, to say 23, then the tile changes to 14.
If I turn my heating off, which sets a default value of 14, the tile then changes to 23.
It seems to always take the previous setting not the current one.
Really weird.
Seems like race conditions. Do you have another piston that sets the global var? If so, why would you have two pistons handling parts of the same task?
Yes there is.
When I was setting it up yesterday it got quite large and then when I was saving it, I just got the spinning post its so I broke them down into 2. (I know there used to be a problem with this so assumed it was the same issue).
Let me try again with one piston and see what happens.
OK. All sorted now.
I have a separate pistons for my tiles.
It seems like the ‘On Events From’ in the tiles was reading the value of the variable before it had a chance to change to the new variable setting.
I put a 20 second wait in my tile piston before it read the variable and that has done the trick.