#Turn on a switch when a Lovelace page is opened?

1 messages · Page 1 of 1 (latest)

night marten
#

I have some 3D printers in my basement. Each printer has a camera. I have a couple LED lights on a smart plug that illuminate the printers.

I have a button for the lights on the Lovelace page for my printers. I would like to automate it so that when I load the 3d printer page in a browser or in the mobile app the lights automatically turn on. Ideally, they would turn off when I navigate to a different Lovelace page.

I looked at the browser-mod add-on, but that seems like too much work. I use a lot of different computers and different browsers and I don't want a million entities for every single one.

olive shale
#

I think browser-mod is your only bet

#

it does have a concept of "auto registering" every browser

night marten
#

Do you happen to know if browser-mod counts in the mobile app as a browser?

olive shale
#

just checked, yes it does