Hello.
First I have to say that I am a complete toddler in this field.
I have a question:
I try to follow the syntax of the script and HASS changes it anyway.
Is this normal or am I making a mistake somewhere? Where?
HASS - modifi:
elements:
- entity: switch.denni_svetlo
image: /local/ter_den.jpg
style:
left: 50%
top: 50%
width: 100%
type: image
- entity: switch.topeni
image: /local/ter_den_top.jpg
style:
left: 50%
top: 93%
width: 95%
tap_action:
action: toggle
type: image
- conditions:
- entity: switch.destovani
state: 'on'
- entity: switch.th_meter
state: 'on'
- entity: switch.hladina
state: 'off'
elements:
- image: /local/ter_dest_2.jpg
style:
left: 50%
top: 45%
width: 100%
type: image
type: conditional
- conditions:
- entity: switch.denni_svetlo
state: 'off'
- entity: switch.nocni_svetlo
state: 'on'
elements:
- image: /local/ter_noc_2.jpg
style:
left: 50%
top: 45%
width: 100%
type: image
type: conditional
- entity: sensor.terarium_temperature
prefix: 'teplota '
style:
color: red
font-size: 18px
font-weight: bold
left: 45%
top: 25%
width: 25%
type: state-label
- entity: sensor.terarium_humidity
prefix: 'vlhkost '
style:
color: blue
font-size: 18px
font-weight: bold
left: 65%
top: 35%
width: 25%
type: state-label
- entity: switch.topeni
state_image:
'off': /local/on_5.png
'on': /local/off_7.png
style:
left: 10%
top: 85%
width: 15%
tap_action:
action: toggle
type: image
- entity: switch.denni_svetlo
state_image:
'off': /local/on_5.png
'on': /local/off_7.png
style:
left: 50%
top: 10%
width: 15%
tap_action:
action: toggle
type: image
- entity: switch.nocni_svetlo
state_image:
'off': /local/on_5.png
'on': /local/off_7.png
style:
left: 10%
top: 10%
width: 15%
tap_action:
action: toggle
type: image
- entity: script.1593030877976
state_image:
'off': /local/on_5.png
'on': /local/off_7.png
style:
left: 90%
top: 20%
width: 15%
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.1593030877976
type: image
- conditions:
- entity: switch.hladina
state: 'on'
elements:
- image: /local/v1tr.png
style:
left: 50%
top: 50%
width: 30%
type: image
type: conditional
image: /local/ter_cb.jpg
type: picture-elements
i am:
type: picture-elements
image: /local/ter_cb.jpg
elements:
- type: image
entity: switch.denni_svetlo
image: /local/ter_den.jpg
style:
left: 50%
top: 50%
width: 100%
- type: image
entity: switch.topeni
image: /local/ter_den_top.jpg
style:
left: 50%
top: 93%
width: 95%
tap_action:
action: toggle
- type: conditional
conditions:
- entity: switch.destovani
state: 'on'
- entity: switch.th_meter
state: 'on'
- entity: switch.hladina
state: 'off'
elements:
- type: image
image: /local/ter_dest_2.jpg
style:
left: 50%
top: 45%
width: 100%
- type: conditional
conditions:
- entity: switch.denni_svetlo
state: 'off'
- entity: switch.nocni_svetlo
state: 'on'
elements:
- type: image
image: /local/ter_noc_2.jpg
style:
left: 50%
top: 45%
width: 100%
- type: state-label
entity: sensor.terarium_temperature
prefix: 'teplota '
style:
color: red
font-size: 18px
font-weight: bold
left: 45%
top: 25%
width: 25%
- type: state-label
entity: sensor.terarium_humidity
prefix: 'vlhkost '
style:
color: blue
font-size: 18px
font-weight: bold
left: 65%
top: 35%
width: 25%
- type: image
entity: switch.topeni
tap_action:
action: toggle
state_image:
'on': /local/off_7.png
'off': /local/on_5.png
style:
width: 15%
left: 10%
top: 85%
- type: image
entity: switch.denni_svetlo
tap_action:
action: toggle
state_image:
'on': /local/off_7.png
'off': /local/on_5.png
style:
width: 15%
left: 50%
top: 10%
- type: image
entity: switch.nocni_svetlo
tap_action:
action: toggle
state_image:
'on': /local/off_7.png
'off': /local/on_5.png
style:
width: 15%
left: 10%
top: 10%
- type: image
entity: script.1593030877976
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.1593030877976
state_image:
'on': /local/off_7.png
'off': /local/on_5.png
style:
width: 15%
left: 90%
top: 20%
- type: conditional
conditions:
- entity: switch.hladina
state: 'on'
elements:
- type: image
image: /local/v1tr.png
style:
width: 30%
top: 50%
left: 50%
maybe that’s why some things don’t work for me
thanks for the help