frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Boolean selector in blueprint cannot be updated after creating automation

Open gregrob opened this issue 3 years ago • 6 comments

Checklist

  • [x] I have updated to the latest available Home Assistant version.
  • [x] I have cleared the cache of my browser.
  • [x] I have tried a different browser to see if it is related to my browser.

The problem

  • Create an automation based on a blueprint with a boolean selector and select save.
  • Go back into the automation and change the state of the boolean selector. No option for save appears.
  • Change an additional selector so an option for save appears. The old value of the boolean selector is preserved.

I have simplified my blueprint yaml to the minimum and attached below. This minimised yaml also causes the behaviour that I am observing.

What version of Home Assistant Core has the issue?

2022.4.1 (first observed the problem), still exists with 2022.7.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Blueprint, Automation

Link to integration documentation on our website

https://www.home-assistant.io/docs/blueprint/selectors/

Diagnostics information

No response

Example YAML snippet

blueprint:
  name: Boolean Selector Test
  description: Boolean Selector Test
  domain: automation

  input:
    active_only_at_night:
      name: Active at night
      description: The automation only works at night.
      default: false
      selector:
        boolean:

mode: single
max_exceeded: silent

trigger: []
condition: []
action: []

Anything in the logs that might be useful for us?

No response

Additional information

No response

gregrob avatar Apr 10 '22 10:04 gregrob

I ran into the same issue. But it's even worse:

  • It already fails during the creation of an automation!

My example is:

    my_boolean:
      name: my example boolean
      description: my example boolean 
      default: true
      selector:
        boolean: {}

When I create a new automation, and change this boolean to false, the safe button pops up (so far so good).
Then I press the safe button and look in the yaml. It is saved as true (the default), not false !!!

erkr avatar Apr 23 '22 16:04 erkr

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 22 '22 17:07 github-actions[bot]

Still an issue in latest core-2022.7

erkr avatar Jul 22 '22 17:07 erkr

Still the same for me with 2022.7.6.

@erkr I've been manually editing the automation yaml files to true/false ever since April to work around this :laughing:

gregrob avatar Jul 23 '22 09:07 gregrob

Yes, that's what I do as well

erkr avatar Jul 23 '22 17:07 erkr

Still present...

Home Assistant 2022.9.6 Supervisor 2022.09.1 Operating System 9.0 Frontend 20220907.2 - latest

smartqasa avatar Sep 22 '22 18:09 smartqasa

Issue is still present

Home Assistant 2022.10.3 Supervisor 2022.10.0 Operating System 9.2 Frontend 20221010.0 - latest

smartqasa avatar Oct 11 '22 21:10 smartqasa

Issue is no longer present

Home Assistant 2022.11.3 Supervisor 2022.10.2 Operating System 9.3 Frontend 20221108.0 - latest

It appears to have been corrected.

smartqasa avatar Nov 20 '22 11:11 smartqasa

Checked with Chrome (Version 107.0.5304.107 (Official Build) (64-bit)) and Firefox (107.0 (64-bit)) - the issue appears to be resolved. Will close the issue.

Home Assistant 2022.11.4 Supervisor 2022.10.2 Operating System 9.3 Frontend 20221108.0 - latest

gregrob avatar Nov 21 '22 08:11 gregrob