Browser Mod Interaction Icon

I’m sure someone far more intelligent than me will tell me there’s a far simpler way of doing this, but sharing just in case this is useful for anyone.

Does anyone else find the browser mod interaction icon a pain sometimes? I have a display on virtually 24/7 and use browser mod to flash up cameras full screen on detection of motion (as well as other bits and pieces that also rely on browser mod) but found sooner or later they would stop working and I’d have to refresh the screen and click the icon before they all work again. I know with the BM latest release there is the option to hide the icon which I tried but things stopped working and I had to enable it again.

Anyway, I installed Hass Agent on the PC running HA which allows you to set up various commands via MQTT. This has allowed me to set automations to automatically refresh the browser on the display when it becomes unnavailable via browser mod but also click the interaction icon then hide the pointer.

I was also able to set up automations to automatically turn on / off the display which is also very handy - I run an all in one PC for the touch screen display so I had struggled to find a way to automatically turn off the display at night without turning off the PC.

Have you tried the MonitorSleepCommand? I am assuming yes, but have to ask.

It may be helpful to detail(share your code) for your current automations.

Yep, I have tried that along with various other methods I found looking online but the problem with them all was they didn’t just turn off the monitor, they either turned off the whole PC or put it in sleep mode. I wondered if it was because it’s an all in one so no separate screen. The only thing that worked was putting nircmd on the PC running home assistant and then setup helper buttons and automations to execute commands via hass agent

If anyone is interested I’d be more than happy to run through my setup with them in more detail as too much to write here but in a nutshell I downloaded and installed hass agent on the PC running home assistant (will try to attach some screenshots of the interface). This will then show up as various sensors in MQTT. Then set up some commands in hass agent which will then also show up in MQTT which can them be used for automations etc.

To turn my monitor off, hass agent is set to execute the display off nircmd on the PC running home assistant. To turn display on, I set up hass agent to execute commands to move the mouse pointer slightly. To solve the browser mod interaction icon problem I’ve set up automations and helper buttons so that when browser mod becomes unavailable commands are run from hass agent that refresh the browser which brings up the interaction icon in bottom left corner and then I’ve set commands to execute in hass agent that move the mouse pointer to the position of the browser mod interaction icon, click it and then move the pointer off the display. Hopefully this link opens a video of this which I had to take in slow motion so you can see better what is going on as in realtime the refresh happens very quickly.