-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What am i doing wrong? #24
Comments
this repository is not "compatible" with hacs because it is a pyscrypt, not a Python script, from hacs you have to download only the pyscript integration, and then follow the step by step guide |
the |
yes that is the config yes. , Anything wrong you see? And when i restart ha i get this notification: Thanks for answering me! :) |
I don't understand what docker has to do with it, the actions of the guides should be done starting from the folder that contains, |
wait, from now on, I ask you a question you give me an answer |
|
I thought linking the files was on the server and not in ha hehe..
Yes!
Yes i did! :) Is my folder/file setup correct? i dont understand step 4. # use i created thjeese 2 folders "/pyscript/apps/" # Create a symbolic link to the apps directory named switchbot This i was guessing is outside ha? in terminal? i dont know how to do that on a synology nas. must be in docker?? :) |
99% wrong |
back to the questions |
i downloaded the zip file. and used the files from there my discord username is "labaland#1503" im in ha discord too if u want to help me faster :) if u want only :) |
you have to follow the steps in the guide, not download zipper or anything else |
custom procedures have too many things to check, help is only related to guide steps, or post installation problems |
just to be sure, |
Yes it is! |
perfect |
now follow the guide and in case of errors I am here |
Yes thanks! I will try now from beginning =) |
Ok step 1 works, really not sure about step 2 see below. added my api and key in secrets.yalm and used https://www.uuidgenerator.net/version4 to make a uuid like "867e72d6-f1b9-5g83-acb0-2b8586591bb3" created 2 folders pyscript & apps. Insiden HA config folder like: HAconfig.../pyscript/apps/ Then i used this command "ln -s /config/SwitchBot-API-Script-Caller/pyscript/apps/switchbot.py switchbot.py" without any errors. Rebooted ha and did not get any enteties and the deafault switchbot integration fails to run. Should i remove that one ? STEP 2: I really dont understand step 2. Should i create a config.yaml there and add this to it?: or do you mean HomeAssistant's own configuration.yaml? sry, and sry for not very good english! :D |
Nope |
neither me! I'm Italian 😅 |
so, can you post screen off homeassiant and pyscript folders? |
Haha i see! here it is =) pretty much the same i guess step 2: |
in this folder☝️, you have to create a config.yaml file and paste these code. allow_all_imports: true
apps:
switchbot: !include /config/SwitchBot-API-Script-Caller/pyscript/switchbot.yaml you have to have something like this: homeassiant/
└── pyscrpt/
├── apps/
└── config.yaml
other your files
configuration.yaml
you didn't have it because you didn't finish "installing" pyscript (procedure on their hacs page/repo) |
i created config.yaml now in homeassistant/pyscript/config.yaml wwith that text. it looks this:
added this in configuration.yaml: rebooted and no new entities, guess i have to do the refresh thing ? should i make a switch for each ir device or will this make me them? BTW i have the SwitchBot Hub Mini and a bluetooth proxy esp32 this integration adds both my Curtain and self added ir devices? |
Now i have the services in home assistant! Thank YOU so much for helping me this much! Hope it will help another noob like me too! I got my infrared devices but not like my courtain.? The regular switchbot integration fails at ha boot now 🤔 I think i have to use SwitchBot Generic Command for that! (edit nope? i dont get a entity for it so cant use custom command?) thanks!!! 😍 |
great!
I didn't understand this question 😅
I don't know, the official integration uses a different method of connection, so they can't affect each other in any case, "easy" curtain management will come with the next version, until then, they will be generated as switch entities that can be used with generic command |
Okey it started after i added this integration :P |
I repeat, it is not my problem, the official integration uses the Bluetooth API, my script uses the http request API. You must have modified it to something you shouldn't have |
This makes no sense, they are two completely different things, the only thing in common is the fiscal object |
ok :/ Now i tested to only add back the folder "SwitchBot-API-Script-Caller" and not script pyscript, and no "pyscript: !include pyscript/config.yaml" in comfiguration.yaml Then integration fails again. so something in that folder i guess?? 😆 |
Are you using both ? :) |
this is impossible because just the |
okey, very wierd :P But "pyscript" in pic above is in the error message. so must be some kind of conflict? i have no idea. i wait for update then =) |
@SiriosDev |
yes there is but it is not yet ready, you can use it, but without in-depth programming knowledge it will not work |
okey i understand =) |
@SiriosDev |
Next version 😉 |
Cant wait :D |
@SiriosDev |
Nope, unfortunately is not supported by the Switchbot API, the only way is to take advantage of a custom remote control, and the generic command |
ahh okey! Then i will use that =) When do you think next update will be? or is it not possible to say :P |
I think around August, now I'm busy with the university. |
@SiriosDev Thanks! :) |
try and let me know |
But I am still in the midst of university exams so it still takes a while for the new update |
@SiriosDev The new HA update gave me back Switchbot curatin bluetooth again :P |
I said it myself that the errors were not related to this script. HVAC work by no doubt, it is the only one I can physically test, in fact the first version was only generic and hvac everything else is thanks to two guys (the second of the two will be seen in the next update) |
@SiriosDev Hi! again! :) edit i found it, SwitchBot Cloud.. |
As you said, on Switch bot cloud integration work, but it's not fully working, turn on/off is still in a separated entity and some modality is not "starting" |
Hi i cant get HA to get the "switch.switchbot_remote_<device_name>"
This is how i installed this.
I could not find this in HACS and custom repistories did not work so i downloaded the zip from here and put the "SwitchBot-API-Script-Caller" folder in Homeassistant map "config"
I think im doing wrong at this step:
How do i do that in docker-compose.yaml? i have a synology nas. this is my dockercompose fpr homeassistant;
homeassistant:
container_name: home-assistant
image: homeassistant/home-assistant:latest
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/TZ:/etc/timezone:ro
- /run/dbus:/run/dbus:ro
- /volume3/docker/homeassistant:/config
- /volume3/docker/homeassistant/SwitchBot-API-Script-Caller/pyscript/apps/:/config/pyscript/apps/
environment:
- TZ=Europe/Stockholm
Please help teally want to use my ir devices in homeassistant ! :)
The text was updated successfully, but these errors were encountered: