Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95365

State on a Picture Entity Card

$
0
0

@ChrLipp wrote:

Hello everyone,

I have an Husqvarna Automower and integrated it with the following HACS plugin: https://github.com/walthowd/ha-automower This integration provides

  • a device tracker
  • a vacuum instance
device_tracker.automower_h_xxx home source_type: gps
	latitude: XXX
	longitude: XXX
	gps_accuracy: 0
	status: Parked manually
	id: automower_h_xxx
	name: Miki
	icon: mdi:sleep
	vendor: Husqvarna
	model: Automower 450X
	friendly_name: Miki
vacuum.miki Parked manually status: Parked manually
	battery_level: 0
	battery_icon: mdi:battery-alert
	connected: false
	nextStartSource: NO_SOURCE
	operatingMode: AUTO
	showAsDisconnected: false
	storedTimestamp: 2020-04-07T14:53:35.931000
	friendly_name: Miki
	icon: mdi:sleep
	supported_features: 223

I created a camera like

camera:
- platform: generic
  name: Automower Location
  still_image_url: https://maps.googleapis.com/maps/api/staticmap?center={{ states.device_tracker.automower.attributes.latitude }},{{ states.device_tracker.automower.attributes.longitude }}&zoom=19&size=500x500&maptype=satellite&markers=color:blue%7Clabel:P%7C{{ states.device_tracker.automower.attributes.latitude }},{{ states.device_tracker.automower.attributes.longitude }}&key=YOURAPIKEY
  limit_refetch_to_url_change: true

this results to the following data:

camera.miki idle access_token: xxx
	friendly_name: Miki
	entity_picture: /api/camera_proxy/camera.miki?token=xxx
	supported_features: 0

and included a picture entity on my gui

  - type: picture-entity
    entity: camera.miki
    camera_view: live

As you can see on https://www.home-assistant.io/lovelace/picture-entity/ the picture is displayed with the name and the state of the entity in the bottom. In my case it displays “Miki” as the name and “Untätig” which is just the german translation for “idle”. But I don’t want to display the state of the camera, instead I want to display the status of the device tracker or the state of the vauum entity.

How can I do this? I tried to make a template sensor feed by the camera and the vacuum entity and display it with the picture-entity, but this didn’t work.

Thanks for your help!
Kind regards, Christian

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95365

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>