Traceback (most recent call last):
File "/Users/ndr/Downloads/ha-touch/widgets/switch.py", line 9, in <module>
from utils import entity, icon_folder, service
In your “Script:” section your Mac converted two dashes -- to an em (long) dash — automatically (... —toggle -> --toggle). It should be two dashes!
You need to put the utils.py script in your ~/Downloads/ha-touch/widgets/ folder. It seems like it’s not there, judging from the (incomplete!) error message.
I’m really sorry @basnijholt, I don’t want to stress you. But still nothing.
What I’ve done:
1- corrected the “- -toggle” as you suggested (without the spacing between the two -)
2- Replaced the whole folder (excluding “secret.py”) due to the fact I already had all the corrected files.
To be sure, i downloaded again all the github zip and put all the files there.
The error is still the same:
Traceback (most recent call last):
File "/Users/ndr/Downloads/ha-touch/widgets/switch.py", line 9, in <module>
from utils import entity, icon_folder, service
File "/Users/ndr/Downloads/ha-touch/widgets/utils.py", line 4, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
I have just an idea at the moment. Cause I still didn’t set up all of my stuff:
If I put, for example, two lights in the touch bar, it will show the state of both lights (of course).
But the result is a bit confusing, cause I will have two identical buttons showing on/off. Is there a way to show also the name of the light/button instead of only the state of that switch/light?