Service call error input_text

Hello,
I have upgraded to 2021.8.0 and the code still won’t work

Clearly you are doing something consistently different from what I and koying did (because we used the code you posted and it works for us). Unfortunately, neither of us knows what you are doing differently.


As an experiment, remove the regex pattern from the configuration of input_text.pin_eingabe (and them, just for good measure, execute Configuration > Server Controls > Reload Input Texts). Now try to use a Button Card as originally configured:

type: button
tap_action:
  action: call-service
  service: input_text.set_value
  service_data:
    value: '000000'
  target:
    entity_id: input_text.pin_eingabe
name: Test

If that still fails to work then I’m out of ideas to identify the root cause of this problem.

Hello,
I removed the regex, and it still won’t work, the same damn error Like before

Everything you explained and provided can be duplicated on another system but without the error. Therefore there is a missing piece to this puzzle; there is something about your system’s configuration, or the way it is using that Button Card, that is different from my system and koying’s. Unfortunately, I can’t think of what that missing clue might be.

Hence my question :wink:

That’s the code where the button is. It’s the last thing on this page:

- title: Admin
    path: admin
    visible:
      - user: 75a4ceb3b1e24e8689e677fd9ed2a83f
    panel: false
    badges:
      - entity: sensor.aarons_zimmer_temperature
      - entity: sensor.aarons_zimmer_light_level
      - entity: sensor.bad_bwm_temperature
      - entity: sensor.bad_bwm_light_level
      - entity: alarm_control_panel.ha_alarm
      - entity: counter.dimmer_aus_gedruckt
    cards:
      - type: button
        tap_action:
          action: call-service
          service: script.1628016560072
          service_data: {}
          target: {}
        show_icon: false
        name: PIN reset
      - type: custom:bignumber-card
        entity: sensor.otp_3
        color: red
        icon: mdi:matrix
      - type: custom:bignumber-card
        entity: sensor.otp_2
        color: yellow
      - type: custom:bignumber-card
        entity: sensor.otp
        color: green
      - type: custom:bignumber-card
        entity: sensor.otp_sensor
        color: white
        icon: mdi:matrix
      - type: conditional
        conditions:
          - entity: sensor.blitzortung_lightning_counter
            state_not: '0'
        card:
          type: entities
          entities:
            - entity: sensor.blitzortung_lightning_azimuth
              name: Winkel
              secondary_info: last-changed
            - entity: sensor.blitzortung_lightning_counter
              name: Anzahl
              secondary_info: last-changed
            - entity: sensor.blitzortung_lightning_distance
              name: Entfernung
              secondary_info: last-changed
          show_header_toggle: false
          title: Blitze
      - type: entities
        entities:
          - entity: input_boolean.standort
          - entity: input_boolean.musik_sonos_auslosen
          - entity: input_boolean.genauer_standort_aaron
      - type: custom:scheduler-card
        title: false
        include:
          - light
          - media_player
          - notify
          - switch
        discover_existing: true
        time_step: 1
      - type: horizontal-stack
        cards:
          - type: button
            tap_action:
              action: toggle
            entity: input_boolean.led_bad
          - type: button
            tap_action:
              action: toggle
            entity: input_boolean.led_esszimmer
          - type: button
            tap_action:
              action: toggle
            entity: input_boolean.led_keller
          - type: button
            tap_action:
              action: toggle
            entity: input_boolean.led_schlafzimmer
          - type: button
            tap_action:
              action: toggle
            entity: light.handy_aaron_app
            show_icon: true
            icon: hass:switch
      - type: alarm-panel
        states:
          - arm_away
          - arm_home
          - arm_night
          - arm_custom_bypass
          - arm_vacation
        entity: alarm_control_panel.ha_alarm
        theme: day_and_night
      - type: entity
        entity: device_tracker.oneplus_nord
      - type: button
        tap_action:
          action: navigate
          navigation_path: /alarm-0/alarm-0/
        name: Alarm
        theme: happy
        hold_action:
          action: call-service
          service: camera.play_stream
          service_data:
            media_player: media_player.aarons_alexa
          target:
            entity_id: camera.camera1
        icon: mdi:camera-control
      - type: sensor
        entity: sensor.cpu_temperature
        hours_to_show: 72
        detail: 2
        theme: day_and_night
        graph: line
        name: 'CPU Temperatur '
      - type: gauge
        entity: sensor.openweathermap_rain
        min: 0
        max: 100
        severity:
          green: 0
          yellow: 20
          red: 40
        name: Regen
        theme: auto
      - type: gauge
        entity: sensor.openweathermap_cloud_coverage
        min: 0
        max: 100
        severity:
          green: 10
          yellow: 50
          red: 70
      - type: entities
        entities:
          - device_tracker.ac2003
          - sensor.ac2003_active_notification_count
          - sensor.ac2003_app_importance
          - sensor.ac2003_app_memory
          - sensor.ac2003_app_rx_gb
          - sensor.ac2003_app_tx_gb
          - sensor.ac2003_audio_mode
          - sensor.ac2003_battery_state
          - sensor.ac2003_battery_temperature
          - sensor.ac2003_ble_transmitter
          - sensor.ac2003_bluetooth_connection
          - sensor.ac2003_charger_type
          - sensor.ac2003_detected_activity
          - binary_sensor.ac2003_device_locked
          - sensor.ac2003_do_not_disturb_sensor
          - sensor.ac2003_geocoded_location
          - binary_sensor.ac2003_headphones
          - binary_sensor.ac2003_interactive
          - sensor.ac2003_internal_storage
          - binary_sensor.ac2003_is_charging
          - binary_sensor.ac2003_keyguard_locked
          - sensor.ac2003_last_notification
          - sensor.ac2003_last_reboot
          - sensor.ac2003_last_removed_notification
          - sensor.ac2003_last_update_trigger
          - sensor.ac2003_light_sensor
          - sensor.ac2003_media_session
          - binary_sensor.ac2003_music_active
          - binary_sensor.ac2003_power_save
          - sensor.ac2003_proximity_sensor
          - sensor.ac2003_public_ip_address
          - sensor.ac2003_ringer_mode
          - sensor.ac2003_sleep_confidence
          - sensor.ac2003_sleep_segment
          - binary_sensor.ac2003_speakerphone
          - sensor.ac2003_steps_sensor
          - sensor.ac2003_total_rx_gb
          - sensor.ac2003_total_tx_gb
          - sensor.ac2003_volume_level_alarm
          - sensor.ac2003_volume_level_call
          - sensor.ac2003_volume_level_music
          - sensor.ac2003_volume_level_ringer
          - sensor.ac2003_wifi_bssid
          - sensor.ac2003_wifi_connection
          - sensor.ac2003_wifi_frequency
          - sensor.ac2003_wifi_ip_address
          - sensor.ac2003_wifi_link_speed
          - sensor.ac2003_wifi_signal_strength
          - binary_sensor.ac2003_wifi_state
      - type: entities
        entities:
          - sensor.ipad_von_aaron_activity
          - sensor.ipad_von_aaron_battery_state
          - sensor.ipad_von_aaron_bssid
          - sensor.ipad_von_aaron_connection_type
          - sensor.ipad_von_aaron_last_update_trigger
          - sensor.ipad_von_aaron_ssid
          - sensor.ipad_von_aaron_storage
      - type: entities
        entities:
          - binary_sensor.updater
      - type: picture-entity
        entity: camera.camera1
      - type: custom:notify-card
        target: notify.mobile_app_ac2003
        data:
          tag: locupdate
      - type: button
        tap_action:
          action: call-service
          service: input_text.set_value
          service_data:
            value: '000000'
          target:
            entity_id: input_text.pin_eingabe
        name: Test