Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

SKY2 Support #11

Open
aveach opened this issue Mar 14, 2019 · 7 comments
Open

SKY2 Support #11

aveach opened this issue Mar 14, 2019 · 7 comments
Assignees
Labels
bug Something isn't working SKY2 Blooomsky SKY2

Comments

@aveach
Copy link

aveach commented Mar 14, 2019

Looks like something may not be quite right with SKY2 support. Would love to help out to get this running properly.

Environment:

  • rpi 2B+
  • Raspbian 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux
  • Homebridge 0.4.46
  • homebridge-bloomsky v1.1.14

I setup everything according to the readme and initially set debug to true. Here is what I'm seeing in the logs:

pi@hb-server:~ $ cat /var/log/homebridge.log | grep -i bloomsky
[3/14/2019, 1:36:14 PM] Loaded plugin: homebridge-bloomsky
[3/14/2019, 1:36:14 PM] Registering platform 'homebridge-bloomsky.Bloomsky'
[3/14/2019, 1:36:24 PM] [Bloomsky] Initializing Bloomsky platform...
[3/14/2019, 1:36:24 PM] [Bloomsky] Bloomsky Init
[3/14/2019, 1:36:25 PM] [Bloomsky] didFinishLaunching
[3/14/2019, 1:36:25 PM] [Bloomsky] updateData
[3/14/2019, 1:39:07 PM] Loaded plugin: homebridge-bloomsky
[3/14/2019, 1:39:07 PM] Registering platform 'homebridge-bloomsky.Bloomsky'
[3/14/2019, 1:39:29 PM] [Bloomsky] Initializing Bloomsky platform...
[3/14/2019, 1:39:29 PM] [Bloomsky] Bloomsky Init
[3/14/2019, 1:39:29 PM] [Bloomsky] didFinishLaunching
[3/14/2019, 1:39:29 PM] [Bloomsky] updateData
[3/14/2019, 1:39:30 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:39:30 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:39:30 PM] [Bloomsky] Add Accessory: 442C053A0E57
[3/14/2019, 1:39:30 PM] [Bloomsky] FFMPEG constructor
[3/14/2019, 1:39:30 PM] [Bloomsky] Debug loggin enabled...
[3/14/2019, 1:39:30 PM] [Bloomsky] createCameraControlService
[3/14/2019, 1:39:30 PM] [Bloomsky] _createStreamControllers
[3/14/2019, 1:39:30 PM] [Bloomsky] adding StreamController #1/1
[3/14/2019, 1:39:30 PM] [Bloomsky] 1/1 stream controllers registered
[3/14/2019, 1:39:30 PM] [Bloomsky] 0000003E-0000-1000-8000-0026BB765291
[3/14/2019, 1:39:30 PM] [Bloomsky] 00000111-0000-1000-8000-0026BB765291
[3/14/2019, 1:39:30 PM] [Bloomsky] 00000110-0000-1000-8000-0026BB765291.0
[3/14/2019, 1:39:30 PM] [Bloomsky] Registered 1 Camera Control Services
[3/14/2019, 1:39:31 PM] [Bloomsky] new accessory pushed...
[3/14/2019, 1:39:31 PM] [Bloomsky] publishCameraAccessories
[3/14/2019, 1:39:31 PM] [Bloomsky] new accessory registered...
[3/14/2019, 1:39:31 PM] [Bloomsky] displayName: Copper Vineyards; UUID: 553fc96c-d308-44ca-8599-3538b4e66996; category: 1; services: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]; reachable: false; context: [object Object]; cameraSource: [object Object]; _associatedPlugin: homebridge-bloomsky; _associatedHAPAccessory: [object Object]; 
[3/14/2019, 1:39:31 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:40:01 PM] [Bloomsky] updateData
[3/14/2019, 1:40:31 PM] [Bloomsky] updateData
[3/14/2019, 1:40:31 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:40:31 PM] [Bloomsky] [object Object]
[3/14/2019, 1:40:31 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:40:31 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:40:31 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:40:31 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:40:31 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:40:31 PM] [Bloomsky] temporary file written
[3/14/2019, 1:40:31 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:41:01 PM] [Bloomsky] updateData
[3/14/2019, 1:41:31 PM] [Bloomsky] updateData
[3/14/2019, 1:41:31 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:41:31 PM] [Bloomsky] [object Object]
[3/14/2019, 1:41:31 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:41:31 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:41:31 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:41:31 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:41:31 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:41:31 PM] [Bloomsky] temporary file written
[3/14/2019, 1:41:31 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:42:01 PM] [Bloomsky] updateData
[3/14/2019, 1:42:02 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:42:02 PM] [Bloomsky] [object Object]
[3/14/2019, 1:42:02 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:42:02 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:42:02 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:42:02 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:42:02 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:42:02 PM] [Bloomsky] temporary file written
[3/14/2019, 1:42:02 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:42:32 PM] [Bloomsky] updateData
[3/14/2019, 1:42:32 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:42:32 PM] [Bloomsky] [object Object]
[3/14/2019, 1:42:32 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:42:32 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:42:32 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:42:32 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:42:32 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:42:32 PM] [Bloomsky] temporary file written
[3/14/2019, 1:42:32 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:43:02 PM] [Bloomsky] updateData
[3/14/2019, 1:43:02 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:43:02 PM] [Bloomsky] [object Object]
[3/14/2019, 1:43:02 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:43:02 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:43:02 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:43:02 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:43:02 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:43:02 PM] [Bloomsky] temporary file written
[3/14/2019, 1:43:02 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:43:32 PM] [Bloomsky] updateData
[3/14/2019, 1:43:32 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:43:32 PM] [Bloomsky] [object Object]
[3/14/2019, 1:43:32 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:43:32 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:43:32 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:43:32 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:43:32 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:43:32 PM] [Bloomsky] temporary file written
[3/14/2019, 1:43:32 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:44:02 PM] [Bloomsky] updateData
[3/14/2019, 1:44:03 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:44:03 PM] [Bloomsky] [object Object]
[3/14/2019, 1:44:03 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:44:03 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:44:03 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:44:03 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:44:03 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:44:03 PM] [Bloomsky] temporary file written
[3/14/2019, 1:44:03 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:44:33 PM] [Bloomsky] updateData
[3/14/2019, 1:44:33 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:44:33 PM] [Bloomsky] [object Object]
[3/14/2019, 1:44:33 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:44:33 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:44:33 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:44:33 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:44:33 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:44:34 PM] [Bloomsky] temporary file written
[3/14/2019, 1:44:34 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:45:03 PM] [Bloomsky] updateData
[3/14/2019, 1:45:04 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:45:04 PM] [Bloomsky] [object Object]
[3/14/2019, 1:45:04 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:45:04 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:45:04 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:45:04 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:45:04 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:45:04 PM] [Bloomsky] temporary file written
[3/14/2019, 1:45:04 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:45:34 PM] [Bloomsky] updateData
[3/14/2019, 1:45:34 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:45:34 PM] [Bloomsky] [object Object]
[3/14/2019, 1:45:34 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:45:34 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:45:34 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:45:34 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:45:34 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:45:34 PM] [Bloomsky] temporary file written
[3/14/2019, 1:45:34 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:46:04 PM] [Bloomsky] updateData
[3/14/2019, 1:46:04 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:46:04 PM] [Bloomsky] [object Object]
[3/14/2019, 1:46:04 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:46:04 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:46:04 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:46:04 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:46:04 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:46:04 PM] [Bloomsky] temporary file written
[3/14/2019, 1:46:04 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:46:34 PM] [Bloomsky] updateData
[3/14/2019, 1:46:34 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:46:34 PM] [Bloomsky] [object Object]
[3/14/2019, 1:46:34 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:46:34 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:46:34 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:46:34 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:46:34 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:46:34 PM] [Bloomsky] temporary file written
[3/14/2019, 1:46:34 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:47:04 PM] [Bloomsky] updateData
[3/14/2019, 1:47:04 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:47:04 PM] [Bloomsky] [object Object]
[3/14/2019, 1:47:04 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:47:04 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:47:04 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:47:04 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:47:04 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:47:05 PM] [Bloomsky] temporary file written
[3/14/2019, 1:47:05 PM] [Bloomsky] temporary file updated...
[3/14/2019, 1:47:34 PM] [Bloomsky] updateData
[3/14/2019, 1:47:35 PM] [Bloomsky] updateExistingAccessories
[3/14/2019, 1:47:35 PM] [Bloomsky] [object Object]
[3/14/2019, 1:47:35 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:47:35 PM] [Bloomsky] Update Accessory
[3/14/2019, 1:47:35 PM] [Bloomsky] registerNewAccessories
[3/14/2019, 1:47:35 PM] [Bloomsky] stationNeedsToBeRegistered: [object Object]
[3/14/2019, 1:47:35 PM] [Bloomsky] Update Reachability
[3/14/2019, 1:47:35 PM] [Bloomsky] temporary file written
[3/14/2019, 1:47:35 PM] [Bloomsky] temporary file updated...

With debug set to false:

[3/14/2019, 1:48:03 PM] Loaded plugin: homebridge-bloomsky
[3/14/2019, 1:48:03 PM] Registering platform 'homebridge-bloomsky.Bloomsky'
[3/14/2019, 1:48:24 PM] [Bloomsky] Initializing Bloomsky platform...
[3/14/2019, 1:48:24 PM] [Bloomsky] Bloomsky Init
[3/14/2019, 1:48:24 PM] [Bloomsky] didFinishLaunching
[3/14/2019, 1:48:26 PM] [Bloomsky] new accessory pushed...
[3/14/2019, 1:48:26 PM] [Bloomsky] publishCameraAccessories
[3/14/2019, 1:50:56 PM] [Bloomsky] new accessory pushed...
[3/14/2019, 1:50:56 PM] [Bloomsky] publishCameraAccessories
@aphex3k
Copy link
Owner

aphex3k commented Mar 14, 2019

Do you know how to directly communicate with the bloom sky API? If so, can you send me a (anonymized) copy of the response json text?

@aphex3k aphex3k self-assigned this Mar 14, 2019
@aphex3k aphex3k added bug Something isn't working SKY2 Blooomsky SKY2 labels Mar 14, 2019
@aveach
Copy link
Author

aveach commented Mar 14, 2019

Do you know how to directly communicate with the bloom sky API? If so, can you send me a (anonymized) copy of the response json text?

Thanks for the response! See the response json attached (had to use .txt since GitHub doesn't allow .json uploads).

sky2_response.txt

@aveach
Copy link
Author

aveach commented Mar 18, 2019

@aphex3k Was that .json output what you were looking for, or did you need something different?

FWIW, I compared my output to the api-result.json you have in the repo and the fields and structure are exactly the same...

@aphex3k
Copy link
Owner

aphex3k commented Mar 18, 2019

Yes, thank you! I just haven't had the time to check yet.

@aveach
Copy link
Author

aveach commented Mar 25, 2019

Looking more into this...

Based on this line:
[3/14/2019, 1:39:31 PM] [Bloomsky] displayName: Copper Vineyards; UUID: 553fc96c-d308-44ca-8599-3538b4e66996; category: 1; services: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]; reachable: false; context: [object Object]; cameraSource: [object Object]; _associatedPlugin: homebridge-bloomsky; _associatedHAPAccessory: [object Object];

Looks like HAPNodeJS.Service[] isn't returning valid data?

@aveach
Copy link
Author

aveach commented Mar 29, 2019

Somehow after a few restarts of the Homebridge server (was playing with using systemd vs init.d) I got a log message to pair the bloom sky accessory in the Home app. I did that and I got the tiles to pop up in the app but but nothing works (No Response). Seeing this in the logs:

[3/28/2019, 4:09:03 PM] [Bloomsky] Delivering snapshot at path: /usr/node_modules/homebridge-bloomsky/lib/553fc96c-d308-44ca-8599-3538b4e66996.jpg
[3/28/2019, 4:09:03 PM] [Bloomsky] ... using Jimp
[3/28/2019, 4:09:03 PM] [Bloomsky] Error reading snapshot at path: Error: ENOENT: no such file or directory, open '/usr/node_modules/homebridge-bloomsky/lib/553fc96c-d308-44ca-8599-3538b4e66996.jpg'

Seeing this in stderr:

Thu, 28 Mar 2019 23:13:42 GMT HAPServer [E7:EB:DE:49:17:1F] Error getting snapshot: ENOENT: no such file or directory, open '/usr/node_modules/homebridge-bloomsky/lib/553fc96c-d308-44ca-8599-3538b4e66996.jpg'

@aphex3k
Copy link
Owner

aphex3k commented May 22, 2020

Just letting you know that SKY2 is still in the works...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working SKY2 Blooomsky SKY2
Projects
None yet
Development

No branches or pull requests

2 participants