thomasloven / lovelace-state-switch

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

How to use the state switch card with multiple cards #10

Closed miguelarios closed 4 years ago

miguelarios commented 4 years ago

In a very simple example I am trying to use the same home.yaml view to change the cards inside depending on the user and the browser used. I was using the custom header plugin to change the tabs but prefered to not create multiple yaml views and instead change the cards inside a view. Just noticed that the stateswitch card can't work on multiple card types inside. Not sure if this is an issue or it is as it was intended. My use case is what I explained above. There is another issue that someone opened about a user agent this would also be part of this as I notice a different device ID occurs on my Home Assistant iOS app depending on what wifi I am connected to as well.

`

`path: home title: Home icon: mdi:home-outline cards:

Not sure why my formatting is not working so apologies on the code. In general I have a simple setup with 2 lights in one state and the other with a custom button card for bedroom light for my mobile device.

thomasloven commented 4 years ago

Stacks