I am having a few issues with user variables not being updated. Is there a reason you can see why this script will not reset the variable to 0
It updates fine to 1 from pause or play but will not do any thing with off??
If my kodi is off it does not report being off (Not sure if this is because its being run on a raspberry Pi), which was then causing the script to fail and hence not update the variable.
However I also discovered that no mater what I did I could not trigger a blockly script based on a variable change i.e.
if variable = 1 then turn on light.
regardless of how I triggered the variable (from a script or manually)
So I re-wote all the blokly scripts in lua (gave me a chance to learn a new language) and everything works much better... All my triggers fire whenever a variable is changed or set.
Not sure why I did not get any help on this? was it posted in the wrong place?