frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Automations Visual- and YAML editor not showing the same information

Open Diskoteket opened this issue 2 years ago • 3 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.

Describe the issue you are experiencing

When I write an automation using the Visual Editor and select the device trigger, a phone, phone leaves a zone and select the zones they do not reflect as selected in the Visual editor, but are there in the yaml editor of the same automation.

Describe the behavior you expected

For the Visual editor to show the selected zones that the yaml editor does.

Steps to reproduce the issue

  1. Create a new automation
  2. Select the Device trigger
  3. Choose a phone device
  4. Choose phone leaves a zone
  5. Save the automation
  6. Stop editing the automation
  7. Start editing the automation again
  8. Look at the Visual editor and discover that no zone is selected
  9. Toggle the YAML editor and discover that a zone is actually selected.

What version of Home Assistant Core has the issue?

Home Assistant 2022.12.1

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Mozilla Firefox 105.0, Chromium Version 105.0.5195.125

Which operating system are you using to run this browser?

Arch Linux

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

What the Visual editor displays

Screenshot from 2022-12-10 21-03-45

What the YAML editor displays

description: New Automation
mode: single
trigger:
  - platform: device
    device_id: some-id-123123123
    domain: device_tracker
    entity_id: device_tracker.my_phone
    type: leaves
    zone: zone.home
  - platform: device
    device_id: some-id-123123123
    domain: device_tracker
    entity_id: device_tracker.wifes_phone
    type: leaves
    zone: zone.home
condition:
  - condition: not
    conditions:
      - condition: zone
        entity_id: device_tracker.wifes_phone
        zone: zone.home
      - condition: zone
        entity_id: device_tracker.wifes_phone
        zone: zone.home
action: []

Diskoteket avatar Dec 10 '22 20:12 Diskoteket

The same here. Visual editor does not show action names only greyed out the type of action (hvac_mode, "typ pracy hvac"(hvac_mode again)) instead of the action to execute. It is correcti in yaml file.

image

tmark00 avatar Dec 11 '22 19:12 tmark00

For what it's worth, I tested your exact steps 1-8 on 2022.11.2 and it worked as expected, the zone was correctly loaded in the visual editor after saving and exiting.

Either that means it broke between 2022.11 and 2022.12, or there's something more subtle going on.

karwosts avatar Dec 12 '22 04:12 karwosts

I updated to 2022.12.3 and the issue persists.

Diskoteket avatar Dec 12 '22 18:12 Diskoteket

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 Mar 12 '23 19:03 github-actions[bot]