Stevsu
(steven surinx)
January 13, 2024, 2:15pm
1
hi there,
i,am running HAS for about a year now and loving it, now i want to stepup and
try to run a python script as service but it isn’t showing in the developper/service window ,
i installed pyscript through HACS and placed the script in the folder
/config/pyscript/<script>.py
``
if someone could help putting me in the wright direction solving this problem
Did you run the reload service after you added the script?
Stevsu
(steven surinx)
January 14, 2024, 10:46am
3
Yes, also a reboot.
Strange ,also thé downloading,witch i added, configuration.yaml, service don’t show in thé service window
So I just re-did it, just to verify
hacs install
device install
add new script
reload…
And my script is showing
Not sure if it shows when the script itself is not working correctly, add debug logging?
Stevsu
(steven surinx)
January 14, 2024, 3:32pm
5
yes, those steps
this is my config
# Loads default set of integrations. Do not remove.
default_config:
api:
pyscript:
allow_all_imports: true
hass_is_global: true
downloader:
download_dir: downloads
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
a screenshot from studio code server
and the script works ,its scrapping some tabel from a site and creating a csv.file
I have nothing in configyaml, but that is a docker install…now starting my VM to see if that is different
Stevsu
(steven surinx)
January 14, 2024, 4:21pm
7
additional it wasn’t there, after the installation ,so i putted it there ,but didn’t change a thing.
And my very slow VM just started… I have the same result as you have… none…weird
I then added in configuration.yaml
python_script:
placed my script in
/config/python_scripts
and then I can see it…my container behaves different
Sadly I need to go so can not do more analysis