#Have a link to that That function

1 messages · Page 1 of 1 (latest)

arctic oyster
#

Here:

fresh field
#

Right, so that's just assuming you set an environment variable named HOMEASSISTANT_TOKEN w/ your actual token value

arctic oyster
#

so I don't actually need that?

fresh field
#

Correct, if you just want to put the token value directly in your code (not typically a great idea, but if it's kept hidden and not uploaded anywhere, you could probably get by w/ it).

#

If you just wanted to put the token in your code, you'd just assign token = "your API key"

arctic oyster
#

Ok, I'm using it personally, not uploading it anywhere, so it should work

#

I tried it,

#

now getting no errors but light is not turning on

fresh field
#

You're using cover.toggle on a light.wled

#

Those seem incompatible

arctic oyster
#

so i should use light.toggle?

fresh field
#

I'd give it a shot and see, but that sounds reasonable

arctic oyster
#

aaa it works!!!

#

thank you so much!