theautomationguy:
@UKHeliBob that was the previous version I did that to not the last one I posted
So how is it running?
If it isn't then maybe it's time to show you about printing debug messages to trace the code action.
Do this proper and you walk away with more than just a sketch.