Hey all,
I’m having problems displaying an image on my Sensecap Indicator running OpenHASP.
This is the executed automation:
params:
domain: openhasp
service: push_image
service_data:
obj: p3b14
height: 90
width: 90
image: https://i.scdn.co/image/ab67616d0000b273d00e49003543a5bb5aa5b873
entity_id:
- openhasp.plate1
target:
entity_id:
- openhasp.plate1
running_script: false
This is the automation:
alias: Push cover art
description: ""
triggers:
- entity_id: media_player.bar
trigger: state
conditions:
- condition: template
value_template: >
{{ trigger.from_state.attributes.entity_picture !=
trigger.to_state.attributes.entity_picture }}
actions:
- data:
obj: p3b14
height: 90
width: 90
image: "{{ state_attr('media_player.bar','entity_picture') }}"
target:
entity_id: openhasp.plate1
action: openhasp.push_image
And this is the OpenHASP config for that page:
{"comment":"Designer Config","plate":{"w":480,"h":480,"size_name":"large_square","primary_color":"#42a5f6ff","secondary_color":"#fb8c00ff","theme":"materialdark"}}
{"page":3,"comment":"---------- Page 1 ----------NOTE: OBJ: 89 is used in automation for Sunton devices !! "}
{"id":13,"obj":"obj","x":0,"y":20,"w":480,"h":61,"enabled":false,"radius":10,"bg_color":"#000000","bg_opa":100,"border_color":"#FFAC00","border_width":2}
{"id":14,"obj":"obj","x":80,"y":140,"w":320,"h":266}
{"id":15,"obj":"img","x":100,"y":100,"w":100,"h":75,"parentid":14,"src":"","pivot_x":0,"pivot_y":0}
Help is much appreciated. Pulling my hair out at this point