I tried all possible (i think) combinations of single and double quotes to wrap this command and url, but always the same result. Any idea what might be wrong?
I know I can use rest sensor for this, but I want to use it in controllable manner. Sensor refreshes at somehow random times, creating race conditions for other depending sensors. Also it refreshes way to frequently to need (changing SID every ~30 seconds instead obtaining it once after HA restart).
Didd’t try this previously… so tested and unfortunatelly exactly the same error
...return code: 1
NoneType: None
I’m wondering if this might be sort of privledges setup problem? However I added config to whitelist_external_dirs already. What might be the difference between running this command from HA terminal and as a script?
The key was that /config is already root folder for curl command to put output there. So using config/sid.json I was trying to create file in /config/config, which resulted in error, since this subfolder does not existis!