Picture Entity Card


A very useful card for controlling entities. By default, you will get more-info-dialog but using tap_action you can directly control entities that have on/off states. It allows you to generate a very nice looking card with a big touch area, highly recommended for mobile dashboards on small screens.

You can use different image combination to get a more realistic view for images with lights. The image setup also allows enough flexibility to get your garage picture with the door opened and closed.

You can also use camera domain entities to use that as camera_image.

Screenshot of the picture entity card Screenshot of the picture entity card.

Configuration Variables

type

(string)(Required)picture-entity

entity

(string)(Required)An entity_id to control via picture.

camera_image

(string)(Optional)Camera entity_id to use.

Default value: None

image

(string)(Optional)URL of an image.

Default value: None

state_image

(object)(Optional)See state_image object structure.

on

(string)(Required)URL of an image used for on state.

off

(string)(Required)URL of an image used for off state.

Default value: None

home

(string)(Optional)URL of an image used for home state.

not_home

(string)(Optional)URL of an image used for not_home state.

Default value: None

any

(object)(Optional)Any state that is supported by the entity works.

name

(string)(Optional)Custom name for entity.

Default value: None

show_info

(boolean)(Optional)Set to false to hide infobar.

Default value: true

tap_action

(string)(Optional)Set to toggle for turning entity on/off without opening a dialog.

Default value: dialog

Examples

Basic example:

- type: picture-entity
  image: https://images.pexels.com/photos/775219/pexels-photo-775219.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=295&w=490
  entity: light.bed_light

Screenshot of the picture entity card Screenshot of the picture entity card.

Example with night/day:

- type: picture-entity
  entity: light.bed_light
  image: http://farm7.static.flickr.com/6153/6220100622_88e64ec5d8_b.jpg
  state_image:
    "on": http://farm7.static.flickr.com/6220/6220100616_a877f41a66_b.jpg
  title: Livingroom lights