Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Add Script for Command Line Use

Featured Replies

I am trying to add a script that can be called from the command line but not sure where I should add this script file.  I understand there is a user scripts plugin and I have used this and it is great however I am trying to run a script from Home Assistant through a command line and I don't think this plugin would work with that. Where should I add my script to make this work?

Edited by mgranger

  • Community Expert

Assuming you are running Home Assistant as a docker, if you put it in the appdata for the docker then the application will be able to get to it wherever it has appdata mapped.

 

I don't know any details about how to make Home Assistant use the script.

1 hour ago, mgranger said:

Home Assistant through a command line and I don't think this plugin would work with that

it should.  Script would be something like docker exec HomeAssistant /config/NameOfScript.sh

  • Community Expert
24 minutes ago, Squid said:

it should.  Script would be something like docker exec HomeAssistant /config/NameOfScript.sh

Yes that would work if you needed to run it yourself. I was thinking more in terms of letting HomeAssistant run it as needed. 

 

I briefly looked at HomeAssistant since I have some home automation, but my needs are so simple I figured that would be a project for another day.:D

  • Author

Ok so here is what I am trying to do even though I am sure it is unecessary.  I am trying to monitor how many days are left on my let's encrypt cert.  So I came across this forum but it requires a script that someone wrote.

 

https://community.home-assistant.io/t/sensor-to-show-expiry-date-of-ssl-certificate/13479

 

So I am kind of unsure where to put this script file to get it to run from home-assistant.  

 

@trurl  I would suggest trying home-assistant sometime.  I started with the basic stuff but have branched out over about a year and half of using it.  

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.