Configure automation with boolean in visual editor

hello colleagues, I can’t figure out how to create an automation in the visual environment when the state of an attribute is of type on, off, true, or false, because in the editor it only accepts string, instead if I go to the yaml editor and removing the quotes works perfectly, but it doesn’t let me have it in visual mode anymore.

I don’t know if I’m doing something wrong or if it’s something that the home assistant developers are overlooking, what do you guys think? Thanks.

Hello? Is there anyone here? :rofl:

The Automation Editor has several known limitations (and bugs) and you have encountered one of them.

When using my visual editor this is what I get if I use not.

alias: Test Sun
description: ""
trigger: []
condition:
  - condition: not
    conditions:
      - condition: sun
        after: sunrise
action:
  - service: input_boolean.turn_on
    data: {}
    target:
      entity_id: input_boolean.test2_toggle
mode: single

wow, error/limitation still since 2020 :grimacing: :grimacing:

ok, this is good for contition, but i have another example as a trigger:

Can you just use a sun trigger?

So holding to the question of making an automation with the visual editor. I was still able to make this.

alias: Test Sun
description: ""
trigger:
  - platform: state
    entity_id:
      - sun.sun
    attribute: rising
    to: "off"
condition: []
action:
  - service: input_boolean.turn_on
    data: {}
    target:
      entity_id: input_boolean.test2_toggle
mode: single

The visual editor made this and has no problem with it.
Am I missing something?

off with quotes is a string, I’m not sure if that works or not, but if it works on the trigger it should work on the conditions, and it doesn’t work in visual editor for conditions.

[/quote]

sun trigger it’s a very very basic trigger, only have this options, sunset is not the same as going from rising true to rising false…