Quick Restart Chrome Browser Extension

I’ve been playing around with browser extensions and I just published my first one for Home Assistant, this one is a single click to to check config and restart HA found in the current browser page. In the Chrome web store, publishing for firefox soon.

Chrome Webstore - Home Assistant Quick Restart Chrome Extension

Firefox Add-Ons - Home Assistant Quick Restart Chrome Extension

Edge Add-Ons - Home Assistant Quick Restart Chrome Extension

Github for extension - https://github.com/warwickofthegh/Browser-Extension-Home-Assistant-Quick-Restart

Keen to hear feedback on code, I essentially grab the auth token object from the current page and then use the HA RESTApi to get and post actions.

7 Likes

Thank you. This is so much easier then trying to make a link in the sidebar to go to the server settings.
Works perfectly.

1 Like

nice idea but mine stays grey on the HA page?
ah… refreshed page and it’s available

1 Like

Thanks, yeah quite a few improvements could/can/will be made.

The auth token becomes stales and needs to be refreshed after a period (if page isn’t refreshed)

Firefox add-on now available https://addons.mozilla.org/en-US/firefox/addon/home-assistant-quick-restart/

1 Like

Thanks this is very usefull for me!
Off-topic: Are there still people using Firefox nowadays? :stuck_out_tongue:

1 Like

Yes actually. Try accessing the Proxmox console in chrome and you’ll see why.

Proxmox works fine for me in Chome using, i’m still on v5 though, what issue do you have?

the shell won’t load. error. It’s like trying to load a http iFrame when HA is running https - chrome just blocks it dead. Firefox works. Using latest proxmox. Tried d/l certs for proxmox and installing as well but it’s insecure and just won’t load a console.

1 Like

Version 2.0 is now live in Chrome Web Store and FireFix Add-ons Store.

  • Still no configuration required, and now no refresh is required if access_token has expired
  • If access_token as expired I now use the refresh_token to get a new access token

I wanted to keep this extension as simple as possible, but I’m thinking of adding a settings page where you can toggle the config check to happen or not, as instances with less resources this can take awhile - any other feature requested please let me know.

1 Like

Now available as an Edge Add-On in the Microsoft Store

https://microsoftedge.microsoft.com/addons/detail/kolacdnkhgnmbgnfcekhdnkoghneemdf

Hi, wanted to try it but I dont know how to config RestAPI in HA ?

#### Button Click
1. REST Api access_token extracted from HassConnection object, checked if valid by calling /apicheck, if invalid new token requested using refresh_token
2. Config Check performed calling REST Api, if invalid the message is shown in extension pop-up
3. Restart performed calling REST Api, status shown in extension pop-up

Thanks for your help

1 Like

No configuration required from you at all, just install and it will work!

Sorry my wording many have confused the situation, essentially that is what the code does when you click the button

1 Like

Thanks, it works perfectly.

1 Like