steveredden / homebridge-kasa-lightstrip

A homebridge plugin for controlling Kasa Light Strips :zap:
MIT License
2 stars 1 forks source link

Error - Unable to get Characteristic in Mac OS environment #6

Open akrtek opened 2 years ago

akrtek commented 2 years ago

I am unable to get the app working successfully. Running homebridge on an M1 Mac Mini. I have gone into terminal and installed python-kasa library and confirmed that it is running in terminal, but I am still getting three errors for error getting characteristic 'xxx' where xxx is brightness, hue/saturation, and on.

Do I need to tell the homebrige ui to look for Python-kasa somehow? Appreciate any help

steveredden commented 2 years ago

This plugin just needs to be able to execute commands from the python-Kasa library. I’d start with confirming you can control your device using the commands from that library.

https://github.com/python-kasa/python-kasa

akrtek commented 2 years ago

Hello and sorry for the delay. Life became quite busy and I didn’t have time to attempt making this work until recently.

I appreciate the reply before but perhaps I am confused about the process to get it working so let me explain more.

I am running this from my M1 Mac mini. I have installed the Kasa python library using the Mac’s terminal and can run commands there.

What I don’t understand is should I be installing python as a plug-in for homebridge? With running it from the max it seems like python will only run in that specific terminal window.

So to make things easier, I went out and got a raspberry pi instead. I am running the latest version of pi os and setup homebridge as a service. I have installed the Kasa strip plugin through the homebridge gui. I went into terminal and ran pip3 install Kasa-python and it installs the library. So far so good. I then type Kasa into the terminal and it tells me command not recognized 🤦

Please forgive me as the workings of python are still new to which might explain why I had issues on both devices.