#can someone dm me so i can ask for some

1 messages · Page 1 of 1 (latest)

unreal whale
#

You'll get better help in the channels - if you find somebody willing to talk about it in DMs you only get their perspective (which may not even be correct).

jolly blaze
#

well i am not entirely sure how to word my question

unreal whale
#

Moving to DMs won't help with that

#

But ... just ask it, people can ask for clarification if you're unclear

jolly blaze
#

I would like to organize my scripts into septerate files but if i do an include dir list my scripts wont show up

#

script:
!include_dir_list /scripts/lights
!include_dir_list /scripts/test

#

that is the config.yaml

#

alias: "studsmoodlight"

#

that is one of the .yaml files in /scripts/lights

unreal whale
#

That's not how you would do it though

#
script: !include_dir_named scripts/
``` is how you would do it
#

_named is important

jolly blaze
#

it is still not working you would not know how i would make a script to test to see if what i am doing is working that would just show up as a script?

unreal whale
#

Do you now have

script: !include_dir_named scripts/
``` and ***not*** `include_dir_list `
#

Scripts are a dictionary (named) not a list

jolly blaze
#

wait i just copied one of your other scripts and changed the alias and it showed up

unreal whale
#

Magic 😉

#

So ... that tells you that you should have run...

sour muskBOT
jolly blaze
#

okay another question i am running my home assistant in a virtual machine on vsphere how do i enable raspberry pi remote gpio it says i need to do a env command where do i put that command

#

The rpi_gpio integration is the base for all related GPIO platforms in Home Assistant. For the platform configurations, please check their corresponding sections.

The remote Raspberry Pi and the control computer where Home Assistant is running must be prepared to run remote_rpi_gpio, see details here.

Note that for virtual environments you may need to set an environment variable when starting the environment to set the pin factory, example:

Environment = GPIOZERO_PIN_FACTORY=pigpio PIGPIO_ADDR=YOUR_RPi_IP_ADDRESS

#

that envirorment = where would that goo

unreal whale
#

You'd want to ask that in #integrations-archived though most recommendations will probably be to use an ESP instead

jolly blaze
#

okay

#

thank you for your help

#

for a script file what is the minimum ammount of code for it to show up as a script file>

unreal whale
#

It has to be a valid script

#

So, test.yaml:

sequence:
  - delay: '00:00:01'
``` should show up as `script.test`