DBuit / Homekit-panel-card

Homekit panel card for home assistant
MIT License
304 stars 54 forks source link

[idea] Person card #25

Closed sauloonze closed 4 years ago

sauloonze commented 4 years ago

I would like to contribute to a more immersive experience when the card is a person. It could be something similar to the weather card. I would like to display the person and devices states.

DBuit commented 4 years ago

Hi man,

Sounds cool if you can make a pull request and i will check it out!

Freshhat commented 4 years ago

@sauloonze i'm just remodeling my mobile view with the Homekit Panel Card. @DBuit Thanks for it.

For the Person Tile i used the following config:

            - card: picture-entity
                cardOptions:
                  image: /local/pictures/xxx.jpg
                  entity: person.xxx
                  show_name: false
                noPadding: true
                cardStyle: ":host {\n\theight: 100%;\n}\nha-card {\n\tbackground: transparent;\n\tcolor: #E9E9E9;\n\tbox-shadow: none;\n\theight: 100%;\n}\n.header {\n\tpadding: 10px 10px 0 10px;\n}\n.header .name, .header .name .ellipsis {\n\tfont-size: 13px!important;\n\tcolor: #AF8A31;\n\topacity: 1;\n}\n.footer {\n  padding: 0!important;\n  font-size: 12px!important;\n  color: #e9e9e9!important;\n  text-align: center!important;\n}\n"

Maybe this is what you're searching for

DBuit commented 4 years ago

This is added in V0.4.9.5 you now have ìmageandoffImage` option