HS105WHich model? The current driver only supports hs1* series with single outlets
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
HS105WHich model? The current driver only supports hs1* series with single outlets
You need to execute a command to create the tplink driver using API (similar to ph calibration), thats all, then you can create outlet using that driver and associate it with an equipment using the normal UI
This is still an issue?
create a file with following data (kasa.json) . Type "hs1xx" is important, this tells reef-pi that its a kasa smartplug. Change the SMART_PLUG_IP with your smar plug's IP (check your router or kasa app to get the ip ).what command is used to create the driver?
{"name":"KasaTest","type":"hs1xx","config":{"address":"SMART_PLUG_IP:9999"}}
curl -X PUT -d @kasa.json http://REEF_PI_IP/api/drivers -b cookie.txt
this is a bug. :-( . We'll have to fix it.Here are the logs:
It looks like a PCA9685 needs to be connected when enabling the PCA9685 option. Only then I do not expect that reef pi does not start, rather gives an error.
Can someone try the same? I have nothing connected to the PI, running 2.4 with raspbian 4.14. From a blank install just enable the "PCA9685" update and reboot.
Deleting the database afterward brings you back to a functioning reef-pi, Thanks!!
I just noticed this driver support was landed soon after the 3.0 alpha prerelease, so this is not present in rhat release. Are you building from master? If not, you have to wait till I cut a new release of build from master.create a file with following data (kasa.json) . Type "hs1xx" is important, this tells reef-pi that its a kasa smartplug. Change the SMART_PLUG_IP with your smar plug's IP (check your router or kasa app to get the ip ).
Then use reef-pi api to create a new driver. Use appropriate reef-pi ip. You'll need to create the cookie.txt file using auth/signin api. if its there, it can be reused.Code:{"name":"KasaTest","type":"hs1xx","config":{"address":"SMART_PLUG_IP:9999"}}
After this you should see a new driver name kasa is visible in Configuration -> Drivers section. You can go to connectors and create outlet and associate the new driver from UI . Let me know how it goes . I was ecstatic to see this workingCode:curl -X PUT -d @kasa.json http://REEF_PI_IP/api/drivers -b cookie.txt
I'm building from source. I'll test later today.I just noticed this driver support was landed soon after the 3.0 alpha prerelease, so this is not present in rhat release. Are you building from master? If not, you have to wait till I cut a new release of build from master.
I must say I also like the less wire aspect of it . The dependency on WiFi is a concern though.The really great thing about the tplink driver, or reef pi supporting a good smart plug, is that it eliminates having non technical people having to wire up something to control MAINS(120v or 240v) power. Issues with safety(UL listings and such) are taken off the table if well made UL listed devices are used for the AC side of things.
Well the pi depends on wifi. I have a few cheap etekcity esp8266 based outlets and I have to say they dont give me a problem.I must say I also like the less wire aspect of it . The dependency on WiFi is a concern though.
you can develop your driver code in someplace inside the reef-pi repo itself (not in reef-pi/driver), and wire it up in here . Once its tested with your physical setup, copy the driver code in reef-pi/drivers, unit test it and raise a PR against reef-pi/drivers. You can refer to your pr branc of reef-pi/drivers that has your code in reef-pi controller repo under Gopkg.toml . Currently it points to master, change it to your remote branch and test again. Let me know if you need any helpi should add to my above post that i've updated factories.go to include my driver directory, and placed it in it's own directory in /gospace/pkg/dep/sources/https---github.com-reef--pi-drivers/ and did a make clean and make start-dev...but still no joy.
Did the existing hs1xxx driver worked?i should add to my above post that i've updated factories.go to include my driver directory, and placed it in it's own directory in /gospace/pkg/dep/sources/https---github.com-reef--pi-drivers/ and did a make clean and make start-dev...but still no joy.
You have to update the Gopkg.toml and run dep ensure -update github.com/reef-pi/drivers etc.. dont take that route right now. Just keep the code inside reef-pi controller repo and hook it up in the factory as i mentioned beforei should add to my above post that i've updated factories.go to include my driver directory, and placed it in it's own directory in /gospace/pkg/dep/sources/https---github.com-reef--pi-drivers/ and did a make clean and make start-dev...but still no joy.
We have to cross check if the culprit is reef-pi or something else running on pi. Assuming its reef-pi, I am noticing 20% memory usage increase in past 10 days. Is that assessment correct? Can you share some details around what all you have configured on the reef-pi? I can then reproduce and fix the issue. I am specifically looking at timer, lights, ato, temp controller, ph etc.
you can develop your driver code in someplace inside the reef-pi repo itself (not in reef-pi/driver), and wire it up in here . Once its tested with your physical setup, copy the driver code in reef-pi/drivers, unit test it and raise a PR against reef-pi/drivers. You can refer to your pr branc of reef-pi/drivers that has your code in reef-pi controller repo under Gopkg.toml . Currently it points to master, change it to your remote branch and test again. Let me know if you need any help
No... this should be enough to test it at your endI added it to my factories.go....so i need to push to my clone and point to that? Before i test w/ my physical setup?
No... this should be enough to test it at your end