Thanks for the quick response, I got this to almost work.
Issues i have are thus: If "" scale_adress= 'x/x/x' "" has no previous value the script will not write "100" until a value is written once. (problem if power goes out) ""
Also for every PIR-trigger that is sent a new event based script is started which puts everything out of sync.
Should it be a resident script instead?
Issues i have are thus: If "" scale_adress= 'x/x/x' "" has no previous value the script will not write "100" until a value is written once. (problem if power goes out) ""
Also for every PIR-trigger that is sent a new event based script is started which puts everything out of sync.
Should it be a resident script instead?