Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to assign functions #13

Open
IRONROCK20 opened this issue Apr 13, 2018 · 7 comments
Open

Not able to assign functions #13

IRONROCK20 opened this issue Apr 13, 2018 · 7 comments

Comments

@IRONROCK20
Copy link

IRONROCK20 commented Apr 13, 2018

Hello guys, I've a problem and maybe somebody already found a solution for it.
I've successfully got 8 Flics working in Homekit. Pressing a button I have a response in the Home app (or Eve or Hesperus).

The problem is that I cannot assign a function (Single press...) to a button In Eve app or Hesperus.
It's completely "blocked", like unavailable.

P.S. I've dlicd server working on Docker in a Synology NAS and all the rest is working pretty fine.
"flicd -f flic.sqlite3 -s 0.0.0.0 -d"

Thank you in advance for the help!!!
888fd63c-1277-4118-9a66-82c06106c8b3

@IRONROCK20
Copy link
Author

Solved, it needs to have an hub!

@speshy
Copy link

speshy commented Jul 10, 2018

I had the same issue and got to the same conclusion, so I closed the issue. I've since used Stephen Radford's dash button plugin as a basis to write my own accessory plugin for the flic button. I only need an on/off for now.
So I'm guessing a standard switch doesn't require a hub but a programmable one does? I might experiment with this again when I have more time (and when I understand what the code is doing) but I've got what I need, so priority is very low for me.

Sidenote: while looking at the homebridge-flic plugin, the flic client code npm module fliclib-daemon-client looks different (out of date?) with the current client code from fliclib-linux-hci. Not an issue, just an observation.

@lswee
Copy link

lswee commented Aug 4, 2018

Ah man, I've had such a day. I've had two of these buttons working fine, but I updated my home WiFi and basically had to start again.

Everything worked apart from the Flic buttons. Previously I could set them to do whatever, either within Hesperus or the Home app. Now I'm getting the same issue as above.

When I first add the button via Hesperus, the process goes fine, right until the end when it says it "timed out", however it still adds it to the Home app and Hesperus itself which is strange. Then within Home I get the same error as IRONROCK20. What would cause this? I've completely wiped my Pi, created a new Homebridge with a new name, but now it is saying this thing about a hub...

Anyone have any ideas?

speshy - would you mind sharing that code? All I've ever really wanted from these Flics is to use them as an on/off switch.

@IRONROCK20
Copy link
Author

IRONROCK20 commented Aug 4, 2018 via email

@lswee
Copy link

lswee commented Aug 4, 2018

Yeah, that's what I've been trying to figure out. My AppleTv was there and under iCloud I can see my Home and it says connected, but it's not working and it's not in my Home app on my iPhone.

I guess something has gone awry there, but I've tried turning off iCloud on both, but it doesn't seem to have worked... I'm not sure what else to do, whether to just wait and see if it turns up by itself.

But I think that's the issue here and not the flic plugin. I would like to see speshy's work though.

Edit: Sheesh, a factory reset of the Apple TV got it back.

@speshy
Copy link

speshy commented Aug 5, 2018

I've put my code, well my mishmash of other peoples code into a repo https://github.com/speshy/homebridge-flic_button if you need to look at it. Its just a toggle switch, nothing clever. Set up rules in hesperus to handle on/off of both the light and the switch so that they update each other's on off value.
Sometimes the button isn't very responsive. Either doesn't work or it does so after a time period. But my raspberry is in another room - so I suspect that is the reason. I should try it for a week where they're both in the same room see how that pans out.

Which version of apple tv is required to get your plugin working?

@lswee
Copy link

lswee commented Aug 10, 2018

Ah, I see. Thank you for sharing.

I believe it’s the ones with tvOS, so third generation onwards. It’s linked to one’s iCloud account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants