Nextion/Ns panel/ESP-Home set input_text

I get target is invalid option for homeassistant.service on this:

binary_sensor:
  - platform: nextion
    name: $device_name bedroom temp button
    page_id: 13
    component_id: 8
    on_click:
      - homeassistant.service:
          service: input_text.set_value
          target:
            entity_id: input_text.ns_kitchen_temp
          data:
            value: "climate.bedroom"     

The bigger picture of it all is that I’m trying to create a thermostat page where I select the room from icons and I can use the same up/down buttons and text field for all rooms based on the selected value.
So when I click “bedroom” button it sets a input text with climate.bedroom.
A sensor retrieves the bedroom target temp:

{{ state_attr(states('input_text.ns_kitchen_temp'), 'temperature') }}

and this value is presented on the screen.
But I need to know the selected room and my thought was an input_text.

This is what it should be:

binary_sensor:
  - platform: nextion
    name: $device_name bedroom temp button
    page_id: 13
    component_id: 8
    on_click:
      - homeassistant.service:
          service: input_text.set_value
          data:
            entity_id: input_text.ns_kitchen_temp
            value: "climate.bedroom"  
1 Like