emilohman / homey-plejd

This App brings support for the Plejd devices.
MIT License
11 stars 7 forks source link

Just some questions #5

Open danielswe88 opened 3 years ago

danielswe88 commented 3 years ago

First of all; great work!

Secondly: how is it looking like to using the pushes at wall buttons as triggers in homey? Let's say I double click a plejd button and from there trigger a homey scenario? Is this something that could work in the future? Or is this something that would never work due to technical reasons?

emilohman commented 3 years ago

Thank you!

Right now it won't work until Athom fixes support for realtime events for bluetooth: https://github.com/athombv/homey-apps-sdk-issues/issues/81 When that is fixed it might work if we can figure out how the button works. I don't own one my self. Here is some debug info from HA that can be useful: https://github.com/klali/ha-plejd/issues/24

danielswe88 commented 3 years ago

Hello!

Ah ok, Actually I wasn't thinking about the "plejd button", I was thinking about regular wall buttons with plejd pucks connected. But I guess it would be good to add support for both regular wall buttons connected to plejd AND the "plejd buttons" which they sell...

What is your plejd dev set up looking like?

emilohman commented 3 years ago

aah ok.. I don't know if it's possible to detect double click. But what should work is to create a scenario in Plejd that got triggered on double-click. When Athom fixes realtime event for BLE in homey we could listen for that scenario and use it in a homey flow. But first we need https://github.com/athombv/homey-apps-sdk-issues/issues/81 to be fixed.

danielswe88 commented 3 years ago

Ah ok. That would be good enough :)

On 3 Mar 2021, at 15:27, Emil Öhman notifications@github.com wrote:

 aah ok.. I don't know if it's possible to detect double click. But what should work is to create a scenario in Plejd that got triggered on double-click. When Athom fixes realtime event for BLE in homey we could listen for that scenario and use it in a homey flow. But first we need athombv/homey-apps-sdk-issues#81 to be fixed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

danielswe88 commented 3 years ago

Would this work now since they are launching possibilities to detect Bluetooth events?

thomaoh commented 3 years ago

Hello! Long silence in this thread.. Thread: https://github.com/athombv/homey-apps-sdk-issues/issues/81 - was closed due to version 6 of Homey. This version contains support for BLE notifications. Will it be a new version of Plejd App supporting notification from Plejd button (WPH-01)? It would be great with button support (both buttons of WPH-01) and more related Flow Cards to be able to control other devices or creating other Homey Flows 😃?

emilohman commented 3 years ago

I just released a new version of the app that includes support for buttons: https://homey.app/sv-se/app/se.emilohman.plejd/Plejd/

At this point only single click is supported because I've not find a good way of detecting double.

danielswe88 commented 2 years ago

Is there some way to turn on some debugging mode on this homey plug-in? It never really works for me. I moved my homey closer to a plejd puck, and I have reinstalled the plug in many times. It only works for a short period of time and then the plug in stops work.

emilohman commented 2 years ago

Homey v7.2.1 has some fixes for BLE connections. Could you please try that version and see if it works better?