Is it really neccesary to confirm the reboot in 2 dialogs?



For some reason I have to click many times in order to reboot. first there is the dialog that offers the option reboot or reload. Then I need to click again to conform. Suggestion; probably cleaner to add a link reload next to the reboot option. keep the final confirmation, but skip the dialog in between

2 Likes

Feature requests go here: home-assistant · Discussions · GitHub

And according to the developers when this was introduced, yes it is necessary as reloading should be favoured over restarting.

I do not agree with them and will vote for your feature request if you make one.

3 Likes

Me too…

Also don’t confuse rebooting with restarting.

Reboot: power cycle the host hardware, everything restarts. This should very rarely be required.

Restart: only the Home Assistant application is restarted. Other things like add-ons and the supervisor keep running in their own containers.

I have created an issue here: Restart and reload more consistent · home-assistant · Discussion #2487 · GitHub

1 Like

Download “Custom Sidebar” integration from HACS and try this settings. You can restart and reload with one click or one confirmation. Also you can modify according to your needs whole sidebar. And finally you can also restart without any confirmation with one click (not recommended due to mistaken actions)

Cheers,

id: sidebar
order:
  - item: overview
    name: OVERVIEW
    order: 1
  - item: studio code
    name: VS CODE
    order: 2
  - item: store
    order: 3
  - new_item: true
    item: BACKUPS
    href: "/cebe7a76_hassio_google_drive_backup/ingress"
    icon: mdi:google-drive
    order: 4
  - new_item: true
    item: INTEGRATIONS
    href: "/config/integrations"
    icon: mdi:transit-connection-variant
    order: 5
  - new_item: true
    item: AUTOMATIONS
    href: "/config/automation"
    icon: mdi:arrow-decision
    order: 6
  - new_item: true
    item: SCRIPTS
    href: "/config/script"
    icon: mdi:script-text-play
    order: 7
  - new_item: true
    item: 'RESTART'
    icon: 'mdi:restart-alert'
    on_click:
      action: 'javascript'
      code: |
        openConfirmDialog({
            title: 'Restart Home Assistant?',
            text: 'This will interrupt all running automations and scripts!',
            confirmText: 'Restart',
            dismissText: 'Cancel',
            destructive: true,
            confirm: () => {
              callService('homeassistant', 'restart');
            }
          });
    bottom: true
    order: 8
  - new_item: true
    item: 'RELOAD'
    icon: 'mdi:reload'
    on_click:
      action: 'javascript'
      code: |
        callService('homeassistant', 'reload_all');
    bottom: true
    order: 9
  - new_item: true
    item: UPDATES
    notification: >
      {% set totalUpdates = states.update | selectattr('state', 'eq', 'on') | list | length %}
      {{ totalUpdates if totalUpdates > 0 else '' }}
    href: "/config/updates"
    icon: mdi:download
    item_background: >
      {% set totalUpdates = states.update | selectattr('state', 'eq', 'on') | list | length %}
      {% if totalUpdates > 0 %} green {% endif %}
    bottom: true
    order: 10
  - new_item: true
    item: DEV TOOLS
    href: "/developer-tools/yaml"
    icon: mdi:hammer-screwdriver
    order: 11
    bottom: true
  - item: settings
    bottom: true
  - item: history
    hide: true
  - item: snapshots
    hide: true
  - item: map
    hide: true
  - item: energy
    hide: true
  - item: media
    hide: true
exceptions:
  - device:
    - android
    - ios
    extend_from: base
    order:
      - item: overview
        hide: true
      - item: phone
        hide: false
        order: 1
        icon: 'mdi:cellphone'
      - new_item: true
        item: 'RELOAD'
        icon: 'mdi:reload'
        on_click:
          action: 'javascript'
          code: |
            callService('homeassistant', 'reload_all');
        bottom: true
        hide: true
  - device:
    - windows
    extend_from: base
    order:
      - item: phone
        hide: true
        order: 1
        icon: 'mdi:cellphone'

Nice! thanks for sharing!

1 Like

So the Developer Tools section has moved to the Settings menu in core-2026.2, which means it has gone from 5 clicks to 6. More not less. :roll_eyes: