Hi.
The (relevant) configuration I have in LoveLace is as follows:
type: picture-elements
image: /local/images/floor1.png
elements:
- entity: sensor.livingroom_cover_state
style:
left: 18%
top: 14%
tap_action:
action: navigate
navigation_path: /lovelace/1
type: state-label
This is a Shelly cover engine. I have created a sensor through the YAML configuration entry:
- platform: template
sensors:
livingroom_cover_state:
friendly_name: Livingroom Cover State
value_template: "{{ state_attr('cover.shelly_shsw_25_bcddc277487c', 'current_position') }}"
unit_of_measurement: '%'
I did not find a way to react to a single_tap with a different object. I wish that when that object in picture-element is single-pressed, a slider bar of the entity ‘cover.shelly_shsw_25_bcddc277487c’ will be shown. If I use regular entity, then I get a bar on the picture-element, but I could not scale it to a desirable size.
So, my desire is either:
- Have a resizeable cover slider of the entity inside the picture-element
- Have a sensor button (showing the cover %) and a single-tap on it would bring up a slider of a different entity (meaning - it will show sensor.livingroom_cover_state, but on click it will bring up a slider of cover.shelly_shsw_25_bcddc277487c)
Any help would be appreciated. Thanks!