#Have a link to that That function
1 messages · Page 1 of 1 (latest)
Right, so that's just assuming you set an environment variable named HOMEASSISTANT_TOKEN w/ your actual token value
so I don't actually need that?
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"
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
so i should use light.toggle?
I'd give it a shot and see, but that sounds reasonable