thomasloven / lovelace-state-switch

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

FR - Improve DeviceID states selection #22

Closed septeven closed 2 years ago

septeven commented 4 years ago

Hi Thomas, I would like to use state-switch to show a card when using a mobile device (ios / companion and access from safari) and another when not using a mobile device (laptop, imac, etc...)

For now, it's not possible to use a filter like not in states and that'd be pretty boring if I was required to list all deviceID.

Would it be possible to support a not filter and/or the ability to define an array of deviceID ? Thanks

Mariusthvdb commented 3 years ago

+1 to this, running in to the exact same issue here

seems to be even frustrated by the fact that using an exact deviceID for a iOS device doesn't work either... which would be a bug?

would be great if we could set a default: state as with the other parameters.

thomasloven commented 2 years ago

The default parameter works with deviceID too.