Forcing update of command line switch status on startup

Hi all:

I have some command line switches to control foscam cameras. To reduce traffic to the cameras, I have them poll pretty infrequently (i.e. once an hour). However, on startup, the status always defaults to off, regardless of the true state, and I have to wait an hour before it will update. Is there anyway to force a command line switch to fetch status? I’d want to do this on a startup event.

Thanks

Try setting up an automation with an even trigger of startup and then the service is homeassistant.update_entity

1 Like

Yep, what @silvrr said. BTW, the startup trigger is documented here: