I would think you should use the Shell Command integration instead of the Command line Switch integration. It’s designed to register a service that can be called from a script or automation. Then you can create an automation that runs every 15 hours (or maybe every 12, which would probably be simpler) that calls that service.
EDIT:
In theory you should be able to also use the RESTful Command integration, but it doesn’t support digest authentication.
i tried your code via HA’s terminal and it did not work. also tried Developer’s tab and same issue.
i think it has something to do with the beginning part of “curl -s --digest -u”
i really appreciate your time and help in figuring this out. thank you!
i combed through all of the amcrest digest posts and played with all the possible combinations.
happy to say this works in order to set the amcrest doorbell 410 to encode in h264
‘’’
Hi,
I have the same problem, I just can not understand how to get the symbol to change and stay in the state on/off.
Using the tool in “Developer Tool” and set state to on/off works fine, but how can I do this from within the command_line action.
As I understand the command_line->command_on/off “takes” the event that should do the actual state shift on the entity. Normally it would be easy just to drop a new event or just call a default facility but here it seems just not work. Would be most thankful if anyone could help me out.
Regards,
Eric
‘’’