tim-hellhake / flic-button-adapter

Flic button adapter for WebThings Gateway
MIT License
1 stars 0 forks source link

Flic2 support #5

Closed tim-hellhake closed 4 years ago

tim-hellhake commented 4 years ago

There is a new release of the fliclib-linux-hci lib with Flic2 support. See https://github.com/50ButtonsEach/fliclib-linux-hci/commits/master.

freaktechnik commented 4 years ago

Huh, I thought they claimed flic 2 would use an "all new" "open" protocol...

tim-hellhake commented 4 years ago

They have new SDKs for the flic2 but only for android and ios. I couldn't find a specification of the protocol itself. But I thought it makes more sense to update this addon rather than creating a new add-on for the flic2. I guess they implemented the new protocol in the binary.

mrstegeman commented 4 years ago

f2438f4db05dfb4f4f6341aac21eccc8561370e5

I'm waiting on mine to arrive to test.

mrstegeman commented 4 years ago

By the way, they did document the protocol here: https://github.com/50ButtonsEach/flic2-documentation/wiki/Flic-2-Protocol-Specification

However, I assume it only applies to the Flic 2, so it makes sense to just stick with the binary approach this adapter uses.

ghost commented 4 years ago

Thank you for flic2 support! Do you know when this version is available on Mozilla WebThings gateway >> add-ons >>new addon?

Right now I see the flic button add-on but, its a version behind this one ( showing 0.2.0). Thanks for the information!

mrstegeman commented 4 years ago

I someone (you, @tim-hellhake, @freaktechnik) wants to test this and see if it works, that'd be great. Otherwise, I need to wait for my button to arrive from Sweden sometime in the next couple weeks.

tim-hellhake commented 4 years ago

I can test it but I guess i have to use a custom build of the gateway with the new service binary?

mrstegeman commented 4 years ago

Not the gateway, just the add-on. The binary is in the add-on.

ghost commented 4 years ago

Just wanted to thank the Mozilla team here for all the amazing products you build and impact to open source community - its had a huge impact on many people's careers (including mine).

mrstegeman commented 4 years ago

@PaulFish-Radius Thanks 😄

mrstegeman commented 4 years ago

Ok, this seems to work. I've released v0.3.0.

ghost commented 4 years ago

Works great @mrstegeman ty