ilcato / homebridge-Fibaro-HC2

Homebridge plugin for Fibaro Home Center 2 (and Home Center Lite ...)
Apache License 2.0
66 stars 27 forks source link

Remotec zxt-120 A/C Controller #55

Closed Auto-m8r closed 6 years ago

Auto-m8r commented 7 years ago

Hi Ilcato,

I love the work you have done with the Fibaro HC2 home bridge plugin.

I have found that my Remotec ZXT-120 A/C Controller does not work in homebridge, it did detect before i updated to 1.09 however it still did not work correctly.

Is there a way to get this device working correctly?

ilcato commented 7 years ago

Did it work before? Really? I never supported it.

Auto-m8r commented 7 years ago

Homebridge imported it and it displayed in the home app. The device didn't really work though as most of the functions were not working. If i adjusted the temp on my iPhone the A/C unit would power on however i couldn't control heat, cool or turn off after that.

it would be great if it did work though.

Mx-Razvan commented 7 years ago

Hi! now I find my answer to the same problem. :( In fact my remotec worked quite well after selecting all in HCL - remotec - Parameter 35 Learn location status and save. Indeed - would be great to have it working again

ilcato commented 7 years ago

@Auto-m8r , @Mx-Razvan, can you send me the result of the following query:

http://YOUR_HC_IP_ADDRESS:80/api/devices/DEVICE_ID

where YOUR_HC_IP_ADDRESS is the address of your Home Center and DEVICE_ID is the ID of the Remotec device.

Mx-Razvan commented 7 years ago

Will do asap.

Thanks, R

Mx-Razvan commented 7 years ago

but where I have to submit the above command?

ilcato commented 7 years ago

In a browser from a computer connected to the same network as the Home Center

Mx-Razvan commented 7 years ago

sorry - already tried but by mistake I typed 88 instead 80. here we go:

this is the main device (it has 4 branches):

{"id":61,"name":"Remotec","roomID":1,"type":"com.fibaro.zwaveDevice","baseType":"com.fibaro.device","enabled":true,"visible":false,"isPlugin":false,"parentId":1,"remoteGatewayId":0,"interfaces":["battery","zwave","zwaveConfiguration","zwaveSlaveRouting"],"properties":{"batteryLevel":58,"batteryLowNotification":"true","configured":"true","dead":"false","defInterval":"0","deviceControlType":"0","deviceIcon":"28","deviceSpecificData":"","deviceSpecificIdType":"","emailNotificationID":"0","emailNotificationType":"0","endPointId":"0","liliOffCommand":"","liliOnCommand":"","log":"","logTemp":"","manufacturer":"","markAsDead":"true","maxInterval":"0","minInterval":"0","model":"","nodeId":"16","parameters":[{"id":25,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":26,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":27,"lastReportedValue":429,"lastSetValue":429,"size":2,"value":429},{"id":28,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":32,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":33,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":35,"lastReportedValue":0,"lastSetValue":0,"size":4,"value":0},{"id":37,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0}],"parametersTemplate":"417","pollingTimeSec":0,"productInfo":"82,84,1,1,131,119,1,20","pushNotificationID":"0","pushNotificationType":"0","remoteGatewayId":"0","saveLogs":"true","serialNumber":"","smsNotificationID":"0","smsNotificationType":"0","stepInterval":"0","useTemplate":"true","userDescription":"","zwaveCompany":"Remotec Technology Ltd","zwaveInfo":"6,3,42","zwaveSoftwareVersion":"{}","zwaveVersion":"1.20"},"actions":{"getParameter":1,"reconfigure":0,"setInterval":1,"setParameter":2},"created":1491189604,"modified":1491189604,"sortOrder":55}

and this is the ac control where I set the temperature, cool/heat/dry so on. this used to work in homekit:

{"id":62,"name":"AC Control","roomID":1,"type":"com.fibaro.setPoint","baseType":"com.fibaro.hvac","enabled":true,"visible":true,"isPlugin":false,"parentId":61,"remoteGatewayId":0,"interfaces":["battery","zwave","zwaveSwitchAll"],"properties":{"batteryLevel":58,"parameters":[{"id":25,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":26,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":27,"lastReportedValue":429,"lastSetValue":429,"size":2,"value":429},{"id":28,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":32,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":33,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":35,"lastReportedValue":0,"lastSetValue":0,"size":4,"value":0},{"id":37,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0}],"pollingTimeSec":0,"zwaveCompany":"Remotec Technology Ltd","zwaveInfo":"6,3,42","zwaveVersion":"1.20","batteryLowNotification":"true","configured":"true","dead":"false","defInterval":"0","deviceControlType":"0","deviceIcon":"71","emailNotificationID":"0","emailNotificationType":"0","endPointId":"0","liliOffCommand":"","liliOnCommand":"","log":"","logTemp":"","manufacturer":"","markAsDead":"true","maxInterval":"0","minInterval":"0","mode":"1","model":"","nodeId":"16","parametersTemplate":"417","productInfo":"82,84,1,1,131,119,1,20","pushNotificationID":"0","pushNotificationType":"0","remoteGatewayId":"0","saveLogs":"true","serialNumber":"","smsNotificationID":"0","smsNotificationType":"0","stepInterval":"0","supportedModes":"1,2,8","switchAllMode":"SWITCH_ALL_EXCLUDED_FROM_THE_ALL_ON_ALL_OFF_FUNCTIONALITY","targetLevel":"28.00","unit":"C","useTemplate":"true","userDescription":"","value":"28.00"},"actions":{"reconfigure":0,"setInterval":1,"setSetpointMode":1,"setThermostatSetpoint":2},"created":1491189604,"modified":1491189604,"sortOrder":47}

also there are two more branches - a temperature sensor inside:

{"id":63,"name":"Temperatura SENZOR","roomID":1,"type":"com.fibaro.temperatureSensor","baseType":"com.fibaro.multilevelSensor","enabled":true,"visible":true,"isPlugin":false,"parentId":61,"remoteGatewayId":0,"interfaces":["battery","zwave"],"properties":{"batteryLevel":58,"parameters":[{"id":25,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":26,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":27,"lastReportedValue":429,"lastSetValue":429,"size":2,"value":429},{"id":28,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":32,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":33,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":35,"lastReportedValue":0,"lastSetValue":0,"size":4,"value":0},{"id":37,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0}],"pollingTimeSec":0,"zwaveCompany":"Remotec Technology Ltd","zwaveInfo":"6,3,42","zwaveVersion":"1.20","batteryLowNotification":"true","configured":"true","dead":"false","defInterval":"0","deviceControlType":"0","deviceIcon":"30","emailNotificationID":"0","emailNotificationType":"0","endPointId":"0","liliOffCommand":"","liliOnCommand":"","log":"","logTemp":"","manufacturer":"","markAsDead":"true","maxInterval":"0","minInterval":"0","model":"","nodeId":"16","offset":"0.00","parametersTemplate":"417","productInfo":"82,84,1,1,131,119,1,20","pushNotificationID":"0","pushNotificationType":"0","remoteGatewayId":"0","saveLogs":"true","serialNumber":"","showFireAlarm":"true","showFreezeAlarm":"false","smsNotificationID":"0","smsNotificationType":"0","stepInterval":"0","unit":"C","useTemplate":"true","userDescription":"","value":"26.00"},"actions":{"reconfigure":0,"setInterval":1},"created":1491189604,"modified":1491189604,"sortOrder":49}

a operation mode branch - cool/heat/ dry/resume:

{"id":64,"name":"Mod OP AC","roomID":1,"type":"com.fibaro.operatingMode","baseType":"com.fibaro.hvac","enabled":true,"visible":true,"isPlugin":false,"parentId":61,"remoteGatewayId":0,"interfaces":["battery","zwave"],"properties":{"batteryLevel":58,"parameters":[{"id":25,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":26,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":27,"lastReportedValue":429,"lastSetValue":429,"size":2,"value":429},{"id":28,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":32,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":33,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":35,"lastReportedValue":0,"lastSetValue":0,"size":4,"value":0},{"id":37,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0}],"pollingTimeSec":0,"zwaveCompany":"Remotec Technology Ltd","zwaveInfo":"6,3,42","zwaveVersion":"1.20","batteryLowNotification":"true","configured":"true","dead":"false","defInterval":"0","deviceControlType":"0","deviceIcon":"70","emailNotificationID":"0","emailNotificationType":"0","endPointId":"0","liliOffCommand":"","liliOnCommand":"","log":"","logTemp":"","manufacturer":"","markAsDead":"true","maxInterval":"0","minInterval":"0","mode":"0","model":"","nodeId":"16","parametersTemplate":"417","productInfo":"82,84,1,1,131,119,1,20","pushNotificationID":"0","pushNotificationType":"0","remoteGatewayId":"0","saveLogs":"true","serialNumber":"","smsNotificationID":"0","smsNotificationType":"0","state":"0","stepInterval":"0","supportedModes":"0,1,2,3,5,6,8","unit":"","useTemplate":"true","userDescription":"","value":"0.00"},"actions":{"reconfigure":0,"setInterval":1,"setMode":1},"created":1491189604,"modified":1491189604,"sortOrder":48}

and a fan branch - low speed, high speed...:

{"id":65,"name":"Ventilator AC","roomID":1,"type":"com.fibaro.fanMode","baseType":"com.fibaro.hvac","enabled":true,"visible":true,"isPlugin":false,"parentId":61,"remoteGatewayId":0,"interfaces":["battery","zwave"],"properties":{"batteryLevel":58,"parameters":[{"id":25,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":26,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":27,"lastReportedValue":429,"lastSetValue":429,"size":2,"value":429},{"id":28,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":32,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":33,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":35,"lastReportedValue":0,"lastSetValue":0,"size":4,"value":0},{"id":37,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0}],"pollingTimeSec":0,"zwaveCompany":"Remotec Technology Ltd","zwaveInfo":"6,3,42","zwaveVersion":"1.20","batteryLowNotification":"true","configured":"true","dead":"false","defInterval":"0","deviceControlType":"0","deviceIcon":"73","emailNotificationID":"0","emailNotificationType":"0","endPointId":"0","liliOffCommand":"","liliOnCommand":"","log":"","logTemp":"","manufacturer":"","markAsDead":"true","maxInterval":"0","minInterval":"0","mode":"4","model":"","nodeId":"16","parametersTemplate":"417","productInfo":"82,84,1,1,131,119,1,20","pushNotificationID":"0","pushNotificationType":"0","remoteGatewayId":"0","saveLogs":"true","serialNumber":"","smsNotificationID":"0","smsNotificationType":"0","state":"0","stepInterval":"0","supportedModes":"0,1,2,3,4,5,128","unit":"","useTemplate":"true","userDescription":"","value":"0.00"},"actions":{"reconfigure":0,"setFanMode":1,"setInterval":1},"created":1491189604,"modified":1491189604,"sortOrder":46}

ilcato commented 7 years ago

Understood. I removed support for com.fibaro.setPoint. How wa the user interface for "AC Control" in the home app?

Auto-m8r commented 7 years ago

@ilcato

I can see @Mx-Razvan already posted the results, do you require mine also?

As for your question above, the multiple Fibaro devices presented as one device in the home app. It was quite good however as I originally posted mostly unusable for me.

Mx-Razvan commented 7 years ago

Yes - multiple fibaro devices presented as one in home app, with the ''AC control'' functions displayed. When I gave commands in home app the modifications were just in this branch in fibaro system. The control in home app had cool/heat/dry and off switch. Also it had a slider for temperature setup. Both of them working updated and working after parameter 35 select and save

Auto-m8r commented 7 years ago

@Mx-Razvan

What is parameter 35 used for and what do you have it set to?

If @ilcato can get this functioning again for us I will need to set this so mine works correctly?

Mx-Razvan commented 7 years ago

As Remotec is not very generous with this parameter role I think that the AC controller activate the IR code map learned before from the AC remote control. In my case after the first homebridge and fibaro plugin install the homekit showed AC control switch in the home app. It has switches for cool / heat / dry and a slider for temperature but it did nothing. After checking all items in this parameter list and save - it started to function normally and an OFF option was added to the home app switch. And all the functions, including the temperature setup were ok and working. After a forced reinstall of homebridge and fibaro plugin (1.0.9) at the fibaro accessories import in homekit the AC control accessory is no more imported and showed.

ilcato commented 7 years ago

@Mx-Razvan this is very strange. It is true that there was a support for com.fibaro.setPoint devices in terms of visualisation of an HomeKit accessory but there was no support for controlling state. There was a support for setting and reading temperature but nothing all. I will try to support it in the next week end.

Auto-m8r commented 7 years ago

Thanks @ilcato I appreciate your hard work on this. I'm happy to assist with whatever testing you may require.

Mx-Razvan commented 7 years ago

@ilcato yes - it is. After the initial install of homebridge , fibaro plugin and accessories import I started to see the on the home app the entrance (the physical location of remotec) temperature - 30 degrees and two more temperature (from other sensors, apart from remotec, less than 30 degrees and very close as values). And I said what the hell is this - can't be so warm there - at the remotec level, so I started to play with it and saw that actually home app read the last temperature set from fibaro in "ac control" and not from the temperature sensor embedded in the same device. Trying to control the device at that stage - no reaction. Then I played a little in Fibaro as I said and the result was that it started to work normally. Thanks for your work and looking forward for support. Let me know if you need anything to be tested or additional details are needed.

ilcato commented 7 years ago

@Mx-Razvan , @Auto-m8r , please try the just committed version of the index.js file: replace the existing version in your setup and restart homebridge.

Mx-Razvan commented 7 years ago

@ilcato Jus did this. No new item in the accesory list.

Mx-Razvan commented 7 years ago

@ilcato Now it appears img_0014 img_0015

Like last time first is for off, heat, cool and auto (from top to bottom) and the other slider is for temperature setup. Do not see the "dry" option but isn't necessary

Mx-Razvan commented 7 years ago

After some playing with it seems that now the temperature setup is working fine in the AC unit predefined value (16 - 30 degrees). Unfortunatelly now the on/off cool, heat buttons aren't working. Originaly in fibaro the operation mode is set by device no 64 from above - mod op ac: img_0018 If the fibaro is accesed through a browser. The AC controls: img_0017 aren't working. So a working AC control should have mixed functions from com.fibaro.setPoint and com.fibaro.operatingMode. The strange thing is that in fibaro ipad app the AC Control (62 from above) is working and it sends commands for heat/cool/dry and they are transmitted to the AC unit: img_0020 but it has no OFF or auto options.

Auto-m8r commented 7 years ago

I to have tested this and can confirm that I now have the device visible in HomeKit however I can only control temperature as was the case before.

Sent from my iPhone

On 10 Apr 2017, at 4:17 am, Mx-Razvan notifications@github.com wrote:

After some playing with it seems that now the temperature setup is working fine in the AC unit predefined value (16 - 30 degrees). Unfortunatelly now the on/off cool, heat buttons aren't working. Originaly in fibaro the operation mode is set by device no 64 from above - mod op ac:

If the fibaro is accesed through a browser. The AC controls: aren't working. So a working AC control should have mixed functions from com.fibaro.setPoint and com.fibaro.operatingMode. The strange thing is that in fibaro ipad app the AC Control (62 from above) is working and it sends commands for heat/cool/dry and they are transmitted to the AC unit: but it has no OFF option.

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

ilcato commented 7 years ago

@Mx-Razvan, can you play with the api interface via http://HC2_IP/docs ? You should go the devices section and select /devices/{deviceID}/action/{actionName}

put:

try different values for the number in [] and try to figure out the correspondence between the numbers and the modes.

Unfortunately I do not have this device and cannot test it.

Auto-m8r commented 7 years ago

Hi @ilcato

I wanted to assist in testing this however after reading through the instruction above and @Mx-Razvan's previous posts I am confused as to which device we should be testing this against?

My setup is similar to @Mx-Razvan , with the below used devices:

Device 27

screen shot 2017-04-17 at 9 35 19 pm

and Device 29

screen shot 2017-04-17 at 9 36 28 pm

I use device 29 to turn the AC on by selecting either "cooling" or "heating" mode and then I turn it off by selecting "off" mode, device 27 is used to set the desired temperature only.

regardless I tried running your commands against both devices and nothing happened at all so I suspect I am using the wrong commands perhaps? below is a screenshot off the window:

screen shot 2017-04-17 at 9 43 25 pm

What am I doing wrong?

ilcato commented 7 years ago

Did you tried values 1, 2, 3, 4, 5 beside the 10 I see?

ilcato commented 7 years ago

Try also setMode or setSetpointMode instead of mode

Auto-m8r commented 7 years ago

Thanks for the tip @ilcato, setMode is the one we want. I'll run through some testing tomorrow for the various modes as it's a little late in the evening here now.

Thanks

Auto-m8r commented 7 years ago

@ilcato,

I have confirmed the following using setMode on device 29.

0 = off 1 = heat 2 = cool 5 = resume (whatever last state was before powering off) 8 = Dry Air

let me know if you need me to test further.

FYI Device 29 details:

"id": 29, "name": "Status AC", "roomID": 7, "type": "com.fibaro.operatingMode", "baseType": "com.fibaro.hvac", "enabled": true, "visible": true, "isPlugin": false, "parentId": 26, "remoteGatewayId": 0, "interfaces": [ "battery", "zwave" ], "properties": { "batteryLevel": 100, "parameters": [ { "id": 27, "lastReportedValue": 0, "lastSetValue": 0, "size": 2, "value": 0 }, { "id": 25, "lastReportedValue": 22, "lastSetValue": 22, "size": 1, "value": 22 } ], "pollingTimeSec": 0, "zwaveCompany": "Remotec", "zwaveInfo": "6,3,42", "zwaveVersion": "1.20", "batteryLowNotification": "true", "configured": "true", "dead": "false", "defInterval": "0", "deviceControlType": "0", "deviceIcon": "70", "emailNotificationID": "0", "emailNotificationType": "0", "endPointId": "0", "liliOffCommand": "", "liliOnCommand": "", "log": "", "logTemp": "", "manufacturer": "", "markAsDead": "true", "maxInterval": "0", "minInterval": "0", "mode": "0", "model": "", "nodeId": "9", "parametersTemplate": "0", "productInfo": "82,84,1,2,131,119,1,20", "pushNotificationID": "0", "pushNotificationType": "0", "remoteGatewayId": "0", "saveLogs": "true", "serialNumber": "", "smsNotificationID": "0", "smsNotificationType": "0", "state": "0", "stepInterval": "0", "supportedModes": "0,1,2,5,6,8,10", "unit": "", "useTemplate": "false", "userDescription": "", "value": "0.00" }, "actions": { "reconfigure": 0, "setInterval": 1, "setMode": 1 }, "created": 1492420135, "modified": 1492420135, "sortOrder": 13 }

Mx-Razvan commented 7 years ago

@ilcato Hi! I was away from my home for a while. Let me know what you need further. @Auto-m8r - per my understanding your device 29 is the one with the operation mode control, right? Similar with my 64.

Auto-m8r commented 7 years ago

Correct @Mx-Razvan, My device 29 is equal to your Device 64

ilcato commented 7 years ago

Thinking about how to correlate from the Fibaro API the two device in order to create a single HomeKit accessory that can control both the mode and temperature.

Auto-m8r commented 7 years ago

That would be the ideal solution if it can be done

Sent from my iPhone

On 22 Apr 2017, at 9:01 pm, ilcato notifications@github.com wrote:

Thinking about how to correlate from the Fibaro API the two device in order to create a single HomeKit accessory that can control both the mode and temperature.

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

Mx-Razvan commented 7 years ago

Hi @ilcato & @Auto-m8r

Browsing through fibaro interface I saw a new plugin - mock device - allowing to create virtual devices from all kind, including like above ac control and operation mode. Still haven't figured it out how to link new created devices with the real devices but maybe it could be an idea for a single device to be integrated, after its setup, in fibaro plugin

ilcato commented 7 years ago

which plugin @Mx-Razvan ?

Auto-m8r commented 7 years ago

I can’t seem to find it either @Mx-Razvan?

I have however since created a virtual device that works in HomeBridge to turn the AC on and Off.

screen shot 2017-05-01 at 10 58 10 pm screen shot 2017-05-01 at 10 57 51 pm

On 1 May 2017, at 7:45 pm, ilcato notifications@github.com wrote:

which plugin @Mx-Razvan https://github.com/Mx-Razvan ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ilcato/homebridge-Fibaro-HC2/issues/55#issuecomment-298312317, or mute the thread https://github.com/notifications/unsubscribe-auth/AZnYMDzvr8VxxY07F5vzAKHOOqHg538mks5r1anTgaJpZM4Mw85c.

Mx-Razvan commented 7 years ago

@ilcato - thiss one: mock

Auto-m8r commented 7 years ago

Oddly this does not appear under plugins for me?

Sent from my iPhone

On 2 May 2017, at 5:18 pm, Mx-Razvan notifications@github.com wrote:

@ilcato - thiss one:

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

Mx-Razvan commented 7 years ago

@Auto-m8r - do you have 4.120? It should appear at "other", along with Philips Hue, Planika Fireplace and Wake On Lan. Speaking about your VD for on/off - could you write it here?

Mx-Razvan commented 7 years ago

As I updated recently from HCL to HC-2 I noted that this plugin is no available in HC-2, only in HCL.

Apart of this - any news on this subject?

ilcato commented 7 years ago

No news, I'involved in a complete rewriting of the plugin. Regarding HC2 the plugin is perfectly compatible, I have an HC2 and developed the plugin for it. It also worked on HCL but as a secondary positive effect.

agisofttm commented 7 years ago

Hmmm, can someone help about Remotec issue.... We just added Remotec ZXT-120 to fibaro, restarted homebridge and i can't see it in Accessories...... I've stopped homebridge service, and started manualy and have this output....

[6/9/2017, 8:17:17 PM] [Dima Style] Error getting data from Home Center: TypeError: Cannot read property 'getCharacteristic' of undefined at Accessory._sideloadServices (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:880:5) at PlatformAccessory._prepareAssociatedHAPAccessory (/usr/lib/node_modules/homebridge/lib/platformAccessory.js:148:32) at Server._handleRegisterPlatformAccessories (/usr/lib/node_modules/homebridge/lib/server.js:431:15) at Server. (/usr/lib/node_modules/homebridge/lib/server.js:36:10) at emitOne (events.js:96:13) at API.emit (events.js:191:7) at API.registerPlatformAccessories (/usr/lib/node_modules/homebridge/lib/api.js:159:8) at ShadowAccessory.resgisterUpdateccessory (/usr/lib/node_modules/homebridge-fibaro-hc2/dist/shadows.js:88:17) at FibaroHC2.addAccessory (/usr/lib/node_modules/homebridge-fibaro-hc2/dist/index.js:146:25) at LoadAccessories.devices.map (/usr/lib/node_modules/homebridge-fibaro-hc2/dist/index.js:102:22)

ilcato commented 7 years ago

@agisofttm, which version of the plugin do you have. Please upgrade to the last version: 2.0.3

agisofttm commented 7 years ago

@ilcato we are with 2.0.1

pi@Raspberry:~ $ sudo npm ls -g | grep fibaro ├─┬ homebridge-fibaro-hc2@2.0.1 pi@Raspberry:~ $

agisofttm commented 7 years ago

Forgot to mention..... my fibaro is with new beta from yesterday 4.131 - if there is some difference of course

ilcato commented 7 years ago

@agisofttm Please upgrade to the last version: 2.0.3

agisofttm commented 7 years ago

@ilcato hmm... updated to 2.0.3, and now I have other new devices, but this one particular, and one energy meter are missing.... should I delete folders /accessories and /persist and try again?

ilcato commented 7 years ago

It should not be necessary. try to delete only accessories folder

agisofttm commented 7 years ago

@ilcato ... nope... still the same....

[6/9/2017, 9:39:55 PM] [Dima Style] Added/changed accessory: Вентилация [6/9/2017, 9:39:55 PM] [Dima Style] Added/changed accessory: 154.2 [6/9/2017, 9:39:55 PM] [Dima Style] Added/changed accessory: Осв. между етажи [6/9/2017, 9:39:55 PM] [Dima Style] Error getting data from Home Center: TypeError: Cannot read property 'getCharacteristic' of undefined at Accessory._sideloadServices (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:880:5) at PlatformAccessory._prepareAssociatedHAPAccessory (/usr/lib/node_modules/homebridge/lib/platformAccessory.js:148:32) at Server._handleRegisterPlatformAccessories (/usr/lib/node_modules/homebridge/lib/server.js:431:15) at Server. (/usr/lib/node_modules/homebridge/lib/server.js:36:10) at emitOne (events.js:96:13) at API.emit (events.js:191:7) at API.registerPlatformAccessories (/usr/lib/node_modules/homebridge/lib/api.js:159:8) at ShadowAccessory.resgisterUpdateccessory (/usr/lib/node_modules/homebridge-fibaro-hc2/dist/shadows.js:88:17) at FibaroHC2.addAccessory (/usr/lib/node_modules/homebridge-fibaro-hc2/dist/index.js:158:25) at LoadAccessories.devices.map (/usr/lib/node_modules/homebridge-fibaro-hc2/dist/index.js:105:22) [6/9/2017, 9:40:02 PM] Mute : [false] [6/9/2017, 9:40:02 PM] Busy with alarm now - not getting status [6/9/2017, 9:40:02 PM] Got status [6/9/2017, 9:40:02 PM] Results:

any other ideas?

ilcato commented 7 years ago

Check to see if you are really on 2.0.3

ilcato commented 7 years ago

let me see your config.json

agisofttm commented 7 years ago

@ilcato - there it is

pi@Raspberry:~/.homebridge $ sudo npm list -g | grep fibaro ├─┬ homebridge-fibaro-hc2@2.0.3 pi@Raspberry:~/.homebridge $

and config.json

pi@Raspberry:~/.homebridge $ cat config.json { "bridge": { "name": "Дима Стил", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" }, "platforms": [ { "platform": "FibaroHC2", "name": "Dima Style", "host": "192.168.2.57", "username": "vladimirtodorov@dimastyle.com", "password": "", "grouping": "room", "pollerperiod": "2", "securitysystem": "disabled" }, { "platform": "Paradox", "ip": "192.168.2.54", "port": 8084, "password": "****", "accessories": [ { "name": "Alarm", "config": { "type": "Alarm" } },

            {
            "name": "Офис Влади",
            "config": {
                "type": "Motion Sensor",
                "zone": 20,
                "pgm": 0
                }
            },

            {
            "name": "Етаж 2 ВИП",
            "config": {
                "type": "Motion Sensor",
                "zone": 19
                }
            },

            {
            "name": "Етаж 2 Ап.1",
            "config": {
                "type": "Contact Sensor",
                "zone": 4
                }
            },

            {
            "name": "Етаж 2 Ап.2",
            "config": {
                "type": "Contact Sensor",
                "zone": 22
                }

            }               
         ]
     }
],
"accessories": [
]

} pi@Raspberry:~/.homebridge $