As a newbie I’m trying to make a remote in lovelace. “Picture element card”
The Bose presets are triggered by an input_number element, 1 to 6. This is working fine, when moving the slider I can switch radio stations.
When pushing to LOGO in the picture element, I want to call- service “input_number.set_value”
but get “Invalid service data for input_number.set_value: required key not provided @ data[‘value’]. Got None”
here’s my yaml
indent preformatted text by 4 spaces
input_number:
soundtouch_living:
name: Bose Living
initial: 1
min: 1
max: 6
step: 1
mode: slider
unit_of_measurement: step
indent preformatted text by 4 spaces
ui-lovelace.yaml:
card:
type: picture-elements
image: /local/icons/radio_icons/backsideliving.png
elements:
- type: image
image: /local/icons/radio_icons/radio1.png
tap_action: call-service
service: input_number.set_value
data:
entity_id: input_number.soundtouch_living
value: 1
What am I doing wrong here ?
Hope you guys can help me… THX
Hi Aaron,
I’m not using that setup any more I did find another solution.
I did some diggin’ in the archives and found the setup I used then (I think it is the one)
Hope it helps.
### Remote Living
- type: custom:card-modder
card:
type: picture-elements
image: /local/icons/radio_icons/backside.png
elements:
- type: image
image: /local/icons/radio_icons/radio1.png
tap_action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.living_preset_1
style:
top: 10em
left: 7em
width: 85px
height: 85px
padding: 15px
#filter: invert(0.20)
- type: image
image: /local/icons/radio_icons/stubru.png
tap_action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.living_preset_2
style:
top: 10em
left: 17em
width: 85px
height: 85px
padding: 15px
#filter: invert(0.20)
- type: image
image: /local/icons/radio_icons/rootsleg.png
tap_action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.living_preset_3
style:
top: 10em
left: 27em
width: 85px
height: 85px
padding: 15px
#filter: invert(0.20)
- type: image
image: /local/icons/radio_icons/nostalgie.png
tap_action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.living_preset_4
style:
top: 18em
left: 7em
width: 85px
height: 85px
padding: 15px
#filter: invert(0.20)
- type: image
image: /local/icons/radio_icons/kingdub.png
tap_action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.living_preset_5
style:
top: 18em
left: 17em
width: 85px
height: 85px
padding: 15px
#filter: invert(0.20)
- type: image
image: /local/icons/radio_icons/vrtnieuws.png
tap_action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.living_preset_6
style:
top: 18em
left: 27em
width: 85px
height: 85px
padding: 15px
#filter: invert(0.20)
style:
background-image: url("/local/lovelace/cardbackK.png")
background-repeat: no-repeat
background-size: 100% 180px
border-radius: 20px
border: solid 1px rgba(100,100,100,0.3)
Success!