[Release] [*ALPHA*] Lightify Gateway Integration - 0.22

Can you confirm your gateway device has been created, and that it is parsing data back from your Lightify hub?

I've had this running almost since day 1 (about 10 days now I think) so the Gateway Device is there, when I trigger via the HE dashboard a dim command the lights respond. I also toggled on the debug log switch and see a this in the logs:

LOG

dev:23062020-02-15 11:37:27.906 pm debug2135 >= 5000. First run: true

dev:23062020-02-15 11:37:27.904 pm debugProper time has passed, or it is the device's first run.

dev:23062020-02-15 11:37:27.868 pm infoLightify (192.168.1.52): Connection successfully established

dev:23062020-02-15 11:37:25.866 pm infoLightify (192.168.1.52): A connection issue occurred.

1 Like

Also I realize it's pretty late and you've been coding (as far as I can tell) all day and night; we can work this out after you've taken a breather.

1 Like

Could I have you change line 419 in your app to:

logDebug "responseArray[0] is ${responseArray[0]}"

And, update your gateway driver to the latest in GitHub?

I'm wondering if my method of detecting a response type by its initial byte might vary from gateway to gateway.

No worries :slight_smile: This has been a lot of fun, and I'm happy to be able to help.

2 Likes

Ok, this is interesting my line 419 is empty... There's a case statement above that, am I replacing the first line in the "case 20:"?

419 should be empty.

you should add that code into the empty line ā€” it's just for you :slight_smile:

Ok, line inserted.

When I tried to update gateway driver code from github I get an error when I try to save.>

Metadata Error: Capability 'Get Groups' not found. on line 64

I'm starting to think I should uninstall and start over, in case I missed something with the name changes.

Oh. Whoops. I should have labeled that capability getGroups as a command! Give me a minute.

Fixed :slight_smile:

No groups showing up yet.

My Log shows

dev:23062020-02-16 12:32:10.059 am debugLightify (192.168.1.52): Number of failed responses: 0

dev:23062020-02-16 12:32:08.323 am debugLightify (192.168.1.52): Transmitting: 0F00001E01000000FFFFFFFFFFFFFFFF00

dev:23062020-02-16 12:32:00.379 am debugLightify (192.168.1.52): Transmitting: 0B000013000000000100000000

dev:23062020-02-16 12:32:00.375 am debugLightify (192.168.1.52): Number of failed responses: 0

dev:23062020-02-16 12:31:50.056 am debugLightify (192.168.1.52): Transmitting: 0B000013000000000100000000

dev:23062020-02-16 12:31:50.053 am debugLightify (192.168.1.52): Number of failed responses: 0

dev:23062020-02-16 12:31:47.248 am debug2168 >= 5000. First run: true

dev:23062020-02-16 12:31:47.246 am debugProper time has passed, or it is the device's first run.

dev:23062020-02-16 12:31:47.226 am debugLightify (192.168.1.52): Stopping connectDevice loop. Starting refresh loop

dev:23062020-02-16 12:31:47.205 am infoLightify (192.168.1.52): Connection successfully established

dev:23062020-02-16 12:31:46.145 am debugLightify (192.168.1.52): Opening Socket Connection.

dev:23062020-02-16 12:31:45.271 am debugLightify (192.168.1.52): socketStatus: receive error: Stream closed.

dev:23062020-02-16 12:31:45.269 am infoLightify (192.168.1.52): A connection issue occurred.

dev:23062020-02-16 12:31:45.086 am debugLightify (192.168.1.52): Stopping refresh loop. Starting connectDevice loop

Could you get me the logs from your Lightify Bridge Integration app after hitting getGroups in the gateway device?

hmm, I think we're on to something, or maybe the dark chocolate sea salt cashews are triggering endorphins. If I turn off the gateway DEVICE debug logging and turn on the debugging in the gateway APP, I get no log entries when I go into the gateway APP and click the manage groups section and try the (empty) selection drop down.

Is there supposed to be a getGroups button in the gateway DEVICE page, I don't have one?

1 Like

There should be one in the device, yes

ok, I'm going to delete my devices and start over. I must have some old code on one or more devices. I'll let you know how it goes.

1 Like

Sounds good. The github URLs have changed, too, so you will want to copy/paste the raw code in for the device types you have.

I just tested this on my hub, and it is showing Get Groups

I went ahead and delete the gateway device and the driver code. I then grabbed the new URL and imported it. I now have the GetGroups button. But still not seeing any groups in the manage group section of the App. I tried the load and hit done/save on both app and driver. I even snuck line 419 back into the app. But I'm not getting any additional info in my logs. I think I'm going to nuke it all and start over. If that doesn't work I'm going to call it until tomorrow. THANK YOU for your time on this integration!

2 Likes

Thank you for your support in testing it! :slight_smile: Iā€™m calling it for the night, and will check back in the morning.

Deleted everything (pro tip, delete the app and all the devices go with it.) Deleted all the custom code for app and eight devices. Recreated from your Git using latest URLs. Installed App, hit done, re-entered and saw my bulbs so I checked them and hit add. I exited, went to gateway driver page and hit the getGroups button, went back to App and entered Manage Group page.... and no groups.

Log file excerpt after hitting getGroup

dev:24192020-02-16 01:31:10.073 am debugLightify (192.168.1.52): Transmitting: 0B000013000000000100000000

dev:24192020-02-16 01:31:10.067 am debugLightify (192.168.1.52): Number of failed responses: 0

dev:24192020-02-16 01:31:03.053 am debugLightify (192.168.1.52): Transmitting: 0F00001E01000000FFFFFFFFFFFFFFFF00

dev:24192020-02-16 01:31:00.651 am debugLightify (192.168.1.52): Transmitting: 0B000013000000000100000000

dev:24192020-02-16 01:31:00.635 am debugLightify (192.168.1.52): Number of failed responses: 0

Don't let this keep you up, you've accomplished a lot. Don't forget to remove that crown when you turn in, it would wreck your hair.

my groups did not populate in the app eather. Also tested pre staging but our lamps over here (and seems like rest of the world from the community) don't support it, they HAVE to be on to set a colour or kelvin. The only thing that works is set level, is there a way to send a ON before a colour change (unless already on)?

No groups here either. Maybe you need a European driver? I use color prestaging extensively in my setup.