Help with Templating (input_number to set brightness when running script)

no it allowed templating. On that is, or True.
Cant get it away anymore, using either:

{“object_id”:“developer”, “view”:“false”, “visible”:"false " } or

{“object_id”:“developer”, “view”:"{{ is_state(‘input_select.mode’, ‘Developer’) }}", “visible”:"{{ is_state(‘input_select.mode’, ‘Developer’) }} " }

hmm, seems it only accepts, true or True…

Invalid service data for group.set: invalid boolean value false for dictionary value @ data['visible']. Got 'False '

Forget what i said about only accepting true. It didnt accept " False", or " False ". Spaces…

tried a binary_sensor:

{“object_id”:“developer”, “view”:"{{is_state(‘binary_sensor.mode_developer’,‘on’)}}", “visible”:"{{is_state(‘binary_sensor.mode_developer’,‘on’)}}"}

no such luck.

Guess is was the templating after all… such a pity, only half the support we want…

1 Like

filed a feature request at:

workaround for the time being:

##########################################################################################
## Switch
##########################################################################################

switch:
  - platform: template
    switches:
      mode_developer:
        friendly_name: Developer mode switch
        value_template: >
          {{ is_state('input_select.mode', 'Developer') }}
        turn_on:
          - service: script.mode_developer_direct
          - service: homeassistant.turn_on
            entity_id: input_boolean.notify_developing
          - service: group.set
            data:
              object_id: developer
              view: true
              visible: true
        turn_off:
          - service: script.mode_normal_direct
          - service: homeassistant.turn_off
            entity_id: input_boolean.notify_developing
          - service: group.set
            data:
              object_id: developer
              view: false
              visible: false

or, even better maybe per Mode:

scene_developer:
  alias: Call Developer scene
  sequence:
    - service: homeassistant.turn_off
      entity_id: group.philips_motion_sensor_switches
    - service: input_select.select_option
      data:
        entity_id: input_select.theme
        option: 'matrix'
    - service: group.set
      data:
        object_id: developer
        view: true
        visible: true

anyways, hoping for the templating option…

1 Like