Is there anyone that have a sensor to show countdown to a specific date?
In my case i want to know when lets encrypt expires.
Or
Running hass.io
âapt-get install ssl-cert-checkâ is not possible â-bash: apt-get: command not foundâ
OK, use the second method.
I really dont get where to put the script
Create a folder in your .homeassistant
directory called python_scripts. Create a new file in there called countdown.py and insert the contents of the file from the thread I linked to, changing the dates to whatever date you want.
Save the file, and in your configuration.yaml put a line saying python_script:
.
Restart HA.
Then where are all your homeassistant configuration files?
Idk if it is any difference but i am running hassio (resinos-hassio-1.1-raspberrypi3.img)
Yes, but presumably you edit your configuration.yaml file once in a while? It must be somewhere.
Oh yes, almost daily
But that i do that from âBrowser-based configuration file editor for Home Assistant.â
Does that not tell you where your configuration files are?
If not, youâll have to wait for somebody else to tell you what the directory is called and where it is, I donât use hassio.
Does that âbrowser-based configuration file editor for Home Assistantâ allow you to place files into your config directory? If not, youâll need to setup Samba so you can access the directory. Once you have that, it will be your network location \config. For me its hassio\config.
Turned out there is a component for it https://home-assistant.io/components/sensor.cert_expiry/
Now able to access through samba
Should it be python_script or python_scripts in configuration.yaml?
Since the directory is called python_scripts
S on the directory, no s in configuration.yaml.
Like secrets/secret.
Great i will try
How to fetch info in frontend?
Manually, by going to the services page (remote control icon in the dev panel), selecting your python script in the list and pressing âcall serviceâ
Or in an automation by calling the service in your action.