thomasloven / lovelace-state-switch

🔹Dynamically replace lovelace cards depending on occasion
MIT License
382 stars 27 forks source link

Switch on user agent #6

Closed legomind closed 4 years ago

legomind commented 5 years ago

It would be great to be able to match a regex expression against the user-agent.

I would use this to display full resolution camera streams on desktop and low res camera streams on mobile.

thomasloven commented 4 years ago

I believe mediaquery is a better method.