ralfvd / com.everspring

Everspring support Homey
GNU General Public License v3.0
4 stars 14 forks source link

SP-816 (SP-103) added as unknown z-wave device #30

Open bexelius opened 6 years ago

bexelius commented 6 years ago

Hi! I bought 5x SP-103 (modell name updated to SP-816) that is Z-wave + certified.

Link here: https://www.nexa.se/vara-produkter/zwave/sp816-rorelsevakt

  1. When adding SP-103 via application the details say "Click the tamper switch behind the battery cover". Correction is that you need to click it 3 times

  2. After doing that and the application adds the device, it will be added as an unknown z-wave device and you will not be able to use it.

Could you please look into this? Would be awesome if the SP-103 worked :-)

Best regards Victor

skarmklipp 2018-08-24 19 03 19 skarmklipp 2018-08-24 19 02 56 img_20180824_190541 img_20180824_190527

ralfvd commented 6 years ago

Victor,

Can you send the node details of the SP-103 once it is connected? Specifically Manufacturer ID, Product Type ID and Product ID.

Then I can look into it.

Thanks.

bexelius commented 6 years ago

Hi Sir (wow fast reply) sure - please see attached info: skarmklipp 2018-08-24 19 18 14

bexelius commented 6 years ago

"zwave": { "manufacturerId": 96, "productTypeId": 257, -> 1 "productId": 1, -> 5 "learnmode": { "image": "/drivers/SP103/assets/learnmode.svg", "instruction": { "en": "Click the tamper switch behind the battery cover", -> Click the tamper switch behind the battery cover 3 times "nl": "Druk op de tamper knop achter de batterij klep" } },

ralfvd commented 6 years ago

Did you already change the code yourself to see if it then works correctly? If so, I can easily add in the in current code and immediately push it to the app store release ;-)

bexelius commented 6 years ago

Oh sorry, I did not change code. I just read you can install nodejs and install from github hehe :-D I will do that if you dont have time to change. Thank you again for super fast replies!

bexelius commented 6 years ago

Ok pushed :-D Will test on nodejs etc and verify

bexelius commented 6 years ago

Hm noob here..

✘ Homey App did not validate against level debug: [ { "keyword": "type", "dataPath": ".drivers[8].zwave.defaultConfiguration[0].id", "schemaPath": "#/properties/defaultConfiguration/items/properties/id/type", "params": { "type": "number" }, "message": "should be number" } ]

ralfvd commented 6 years ago

I am currently getting the same issue while trying to validate the app with the new settings. Working on it ;-)

On Fri, Aug 24, 2018 at 8:05 PM Victor Bexelius notifications@github.com wrote:

Hm noob here..

✘ Homey App did not validate against level debug: [ { "keyword": "type", "dataPath": ".drivers[8].zwave.defaultConfiguration[0].id", "schemaPath": "#/properties/defaultConfiguration/items/properties/id/type", "params": { "type": "number" }, "message": "should be number" } ]

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ralfvd/com.everspring/issues/30#issuecomment-415837467, or mute the thread https://github.com/notifications/unsubscribe-auth/AQebQGo9t3HV7tB9VtrEli6mwT79b02wks5uUEBvgaJpZM4WLr6L .

ralfvd commented 6 years ago

SP816 is now on Github and pending approval in the app store. Let me know how it works.

bexelius commented 6 years ago

✓ Validating app... ✓ Homey App validated successfully against level debug ? Choose an active Homey: Homey (online) You have selected Homey as your active Homey. ✓ Packing Homey App... ✓ Installing Homey App on Homey ✓ Homey App com.everspring successfully installed

skarmklipp 2018-08-24 22 18 16 ..

Stack trace:

Error: Cannot find module 'homey-zwavedriver' at Function.Module._resolveFilename (module.js:538:15) at Function.Module._load (module.js:468:25) at Module.require (module.js:587:17) at require (internal/module.js:11:18) at Object. (/drivers/AN179/driver.js:4:21) at Module._compile (module.js:643:30) at Object.Module._extensions..js (module.js:654:10) at Module.load (module.js:556:32) at tryModuleLoad (module.js:499:12) at Function.Module._load (module.js:491:3)

Exit code: 1 Exit signal: null

ralfvd commented 6 years ago

If you install via GitHub, you have to add the homey-zwave driver manually from its location: https://github.com/athombv/node-homey-zwavedriver , install it in node_modules/homey-zwavedriver

On 24 August 2018 at 22:16:09, Victor Bexelius (notifications@github.com) wrote:

Stack trace:

Error: Cannot find module 'homey-zwavedriver' at Function.Module._resolveFilename (module.js:538:15) at Function.Module._load (module.js:468:25) at Module.require (module.js:587:17) at require (internal/module.js:11:18) at Object. (/drivers/AN179/driver.js:4:21) at Module._compile (module.js:643:30) at Object.Module._extensions..js (module.js:654:10) at Module.load (module.js:556:32) at tryModuleLoad (module.js:499:12) at Function.Module._load (module.js:491:3)

Exit code: 1 Exit signal: null

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ralfvd/com.everspring/issues/30#issuecomment-415870850, or mute the thread https://github.com/notifications/unsubscribe-auth/AQebQPam-Qm6ACP8uCEtsgbBZh_mezUGks5uUF8JgaJpZM4WLr6L .

bexelius commented 6 years ago

Device now added, nice! However motion detection not registered and flow not working

skarmklipp 2018-08-24 22 54 18 skarmklipp 2018-08-24 22 53 13 skarmklipp 2018-08-24 22 52 54

bexelius commented 6 years ago

Hi Sir, I am just guessing here but:

  1. New SP-103 modell is now z-wave + compliant

1.1 Source: https://shopcdn.textalk.se/shop/ws27/47027/art42/154548242-1b2484-ZC10-17115829.pdf

1.2 New spec info: https://shopcdn.textalk.se/shop/ws27/47027/art42/154548242-7606c0-SP816_A501112630R_20171030.pdf

  1. Might be that homey-meshdriver is to be used 2.1 Source: https://github.com/athombv/node-homey-meshdriver

Again, just guessing :)

xeterixon commented 5 years ago

Seems like the device reports motion as a notification. I made a quick hack in my fork, and it seems to work. https://github.com/xeterixon/com.everspring

screenshot 2018-10-18 at 18 30 59

I'll test it a bit more, and perhaps try to fix the tamper alarm, before doing a pull request.

JMeinen69 commented 5 years ago

install it in node_modules/homey-zwavedriver

Hi there. i'm totally new to this programming, but fun to learn. I managed to install the app to my homey. But now i have to instal the zwavedriver to my homey. Its unclear what you mean bij this. "install it in node_modules/homey-zwavedriver" i tried the same procedure as installing the app but no luck. Please give me a walkthrough.

ferdw commented 5 years ago

Is there any progress on including this one in the "official" app?

ralfvd commented 5 years ago

it should now be available as an beta app in the app store. let me know your findings.

On Sat, Dec 8, 2018 at 11:10 AM ferdw notifications@github.com wrote:

Is there any progress on including this one in the "official" app?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ralfvd/com.everspring/issues/30#issuecomment-445448006, or mute the thread https://github.com/notifications/unsubscribe-auth/AQebQJjWvYOxuzs3TlcdGI4fl8_32-iAks5u25ApgaJpZM4WLr6L .