kk7ds / mficlient

A client library and tool for Ubiquiti's mFi system
9 stars 5 forks source link

Dimmer Support #1

Open joshughes opened 8 years ago

joshughes commented 8 years ago

Just leaving a note... I was thinking of doing the same thing for home assistant! Good Work.

curl -X POST -d dimmer_level=50 -b "AIROS_SESSIONID=01234567890123456789012345678901" 10.1.7.9/sensors/1

So it seems like implementing dimmer to this library and making a homeassistant light device could work. I need to actually hook up a switch to a dimmable light bulb. If you were already planning on doing the work I didn't want to duplicate effort!

kk7ds commented 8 years ago

I don't have access to any dimmers at the moment, so I can't do (or at least test) this. Happy to pull a patch though of course!

Thanks!

--Dan

joshughes commented 8 years ago

Cool, I will get to work on submitting a patch for your approval.

kk7ds commented 8 years ago

Sweet. The internals of mficlient are (more than just) a little icky at the moment. I quickly took some code I had to do a thing internally and tried to spawn it out into a library so I could add mFi to HA in short order.

Just hedging so you don't vommit when you dive in :)