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

Try to add the "switchglobalvariables" parameter in config.json with a value of "".

agisofttm commented 7 years ago

@ilcato - tried, but same error. Actually fibaro plugin is working, but those devices is not shown - it generates error and continiue to working to next plugin ....

pi@Raspberry:~/.homebridge $ homebridge WARNING The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi. WARNING Please fix your application to use the native API of Avahi! WARNING For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs WARNING The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. WARNING Please fix your application to use the native API of Avahi! WARNING For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister [6/10/2017, 11:52:38 AM] Loaded plugin: homebridge-fibaro-hc2 [6/10/2017, 11:52:38 AM] Registering platform 'homebridge-fibaro-hc2.FibaroHC2' [6/10/2017, 11:52:38 AM] --- [6/10/2017, 11:52:38 AM] Loaded plugin: homebridge-paradox-securitysystem [6/10/2017, 11:52:38 AM] Registering platform 'homebridge-paradox.Paradox' [6/10/2017, 11:52:38 AM] --- [6/10/2017, 11:52:38 AM] Loaded plugin: homebridge-server [6/10/2017, 11:52:38 AM] Registering platform 'homebridge-server.Server' [6/10/2017, 11:52:38 AM] --- [6/10/2017, 11:52:38 AM] Loaded config.json with 0 accessories and 2 platforms. [6/10/2017, 11:52:38 AM] --- [6/10/2017, 11:52:39 AM] Loading 2 platforms... [6/10/2017, 11:52:39 AM] [Dima Style] Initializing FibaroHC2 platform... [6/10/2017, 11:52:39 AM] Initializing Paradox platform... [6/10/2017, 11:52:39 AM] Looking for accessories in config file [6/10/2017, 11:52:39 AM] Accessory [6/10/2017, 11:52:39 AM] Alarm [6/10/2017, 11:52:39 AM] Found: Alarm [Alarm] [6/10/2017, 11:52:39 AM] Accessory [6/10/2017, 11:52:39 AM] Офис Влади [6/10/2017, 11:52:39 AM] Found: Офис Влади [Motion Sensor] [6/10/2017, 11:52:39 AM] Accessory [6/10/2017, 11:52:39 AM] Етаж 2 ВИП [6/10/2017, 11:52:39 AM] Found: Етаж 2 ВИП [Motion Sensor] [6/10/2017, 11:52:39 AM] Accessory [6/10/2017, 11:52:39 AM] Етаж 2 Ап.1 [6/10/2017, 11:52:39 AM] Found: Етаж 2 Ап.1 [Contact Sensor] [6/10/2017, 11:52:39 AM] Accessory [6/10/2017, 11:52:39 AM] Етаж 2 Ап.2 [6/10/2017, 11:52:39 AM] Found: Етаж 2 Ап.2 [Contact Sensor] [6/10/2017, 11:52:39 AM] Initializing platform accessory 'Alarm'... [6/10/2017, 11:52:39 AM] Initializing platform accessory 'Офис Влади'... [6/10/2017, 11:52:39 AM] Initializing platform accessory 'Етаж 2 ВИП'... [6/10/2017, 11:52:39 AM] Initializing platform accessory 'Етаж 2 Ап.1'... [6/10/2017, 11:52:39 AM] Initializing platform accessory 'Етаж 2 Ап.2'... [6/10/2017, 11:52:39 AM] Loading 0 accessories... [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Диспенсер [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Ап.1 Движение [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Ап.1 Температура [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Ап. 1 Осветеност [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Ап.1 Бойлер Офиси [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Бойлер Офиси [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Площандка [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: да се ползва за Вент [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: UPS Стая Влади [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: ВакуАктив [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Врата Стая Влади [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Темп. Стая Влади [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Кафе Машина [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Клима Влади [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Офис Влади [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: UPS Eaton [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Дим Фризьoри [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Темп.Въздух [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Реклама [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Педикюр [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: 48V Захранване [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Сървър Вентилация [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Фризьори [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: ДНК [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Аудио [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Рецепция Движение [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Рецепция [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Осветеност [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Врата [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: led рецепция [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Влажност [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Външна Температура [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Влажност [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Подово Рецепция [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Темп. Рецепция [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Подово [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Наводнение [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Темп. Наводнение [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Трева Напояване [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Капково Напояване [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Движение [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Бойлер [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Сървър Шкаф [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Темп. Движение [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Пералня [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Сушилня [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: UPS APC SC1000 [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Бойлер [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: 2️⃣ [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: 3️⃣ [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: 1️⃣ [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Вентилация [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: 154.2 [6/10/2017, 11:52:39 AM] [Dima Style] Configured Accessory: Осв. между етажи Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐     
│ 031-45-154 │     
└────────────┘     

[6/10/2017, 11:52:39 AM] [Dima Style] didFinishLaunching. [6/10/2017, 11:52:39 AM] Homebridge is running on port 51826. [6/10/2017, 11:52:39 AM] [Dima Style] Loading accessories [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: Диспенсер [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: Ап.1 Движение [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: Ап.1 Температура [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: Ап. 1 Осветеност [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: Ап.1 Бойлер Офиси [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: Бойлер Офиси [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: Площандка [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: да се ползва за Вент [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: UPS Стая Влади [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: ВакуАктив [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: Врата Стая Влади [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: Темп. Стая Влади [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: Кафе Машина [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: Клима Влади [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: Офис Влади [6/10/2017, 11:52:39 AM] [Dima Style] Added/changed accessory: UPS Eaton [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Дим Фризьoри [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Темп.Въздух [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Реклама [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Педикюр [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: 48V Захранване [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Сървър Вентилация [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Фризьори [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: ДНК [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Аудио [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Рецепция Движение [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Рецепция [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Осветеност [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Врата [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: led рецепция [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Фризьори [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Влажност [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Външна Температура [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Влажност [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Подово Рецепция [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Темп. Рецепция [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Фризьори [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Подово [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Наводнение [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Темп. Наводнение [6/10/2017, 11:52:40 AM] [Dima Style] Added/changed accessory: Трева Напояване [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: Капково Напояване [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: Движение [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: Бойлер [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: Сървър Шкаф [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: Темп. Движение [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: Пералня [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: Сушилня [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: UPS APC SC1000 [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: Бойлер [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: Бойлер [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: 2️⃣ [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: 3️⃣ [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: 1️⃣ [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: Вентилация [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: 154.2 [6/10/2017, 11:52:41 AM] [Dima Style] Added/changed accessory: Осв. между етажи [6/10/2017, 11:52:41 AM] [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/10/2017, 11:52:49 AM] Mute : [false] [6/10/2017, 11:52:49 AM] Busy with alarm now - not getting status [6/10/2017, 11:52:49 AM] Got status [6/10/2017, 11:52:49 AM] Results: [6/10/2017, 11:52:49 AM] Zone 4 off (Етаж 2 Ап.1) [6/10/2017, 11:52:49 AM] Zone 19 off (Етаж 2 ВИП) [6/10/2017, 11:52:49 AM] Zone 20 off (Офис Влади) [6/10/2017, 11:52:49 AM] Zone 22 off (Етаж 2 Ап.2) [6/10/2017, 11:52:49 AM] Alarmstatus :Disarmed [6/10/2017, 11:52:59 AM] Mute : [false] [6/10/2017, 11:52:59 AM] Busy with alarm now - not getting status [6/10/2017, 11:52:59 AM] Got status [6/10/2017, 11:52:59 AM] Results: [6/10/2017, 11:52:59 AM] Zone 4 off (Етаж 2 Ап.1) [6/10/2017, 11:52:59 AM] Zone 19 off (Етаж 2 ВИП) [6/10/2017, 11:52:59 AM] Zone 20 off (Офис Влади) [6/10/2017, 11:52:59 AM] Zone 22 off (Етаж 2 Ап.2) [6/10/2017, 11:52:59 AM] Alarmstatus :Disarmed [6/10/2017, 11:53:09 AM] Mute : [false] [6/10/2017, 11:53:09 AM] Busy with alarm now - not getting status [6/10/2017, 11:53:09 AM] Got status [6/10/2017, 11:53:09 AM] Results: [6/10/2017, 11:53:09 AM] Zone 4 off (Етаж 2 Ап.1) [6/10/2017, 11:53:09 AM] Zone 19 off (Етаж 2 ВИП) [6/10/2017, 11:53:09 AM] Zone 20 off (Офис Влади) [6/10/2017, 11:53:09 AM] Zone 22 off (Етаж 2 Ап.2) [6/10/2017, 11:53:09 AM] Alarmstatus :Disarmed [6/10/2017, 11:53:19 AM] Mute : [false] [6/10/2017, 11:53:19 AM] Busy with alarm now - not getting status [6/10/2017, 11:53:19 AM] Got status [6/10/2017, 11:53:19 AM] Results: [6/10/2017, 11:53:19 AM] Zone 4 off (Етаж 2 Ап.1) [6/10/2017, 11:53:19 AM] Zone 19 off (Етаж 2 ВИП) [6/10/2017, 11:53:19 AM] Zone 20 off (Офис Влади) [6/10/2017, 11:53:19 AM] Zone 22 off (Етаж 2 Ап.2) [6/10/2017, 11:53:19 AM] Alarmstatus :Disarmed

agisofttm commented 7 years ago

@ilcato - the issue is resolved - the problem is this smart meter "Netichome DIN Smart Meter", also called Quibino Smart meter. Because he doesn't have a template, I needed to configure it from parameters, but on fibaro UI it shows "Unconfigured", so I removed it and everything is perfect again.... is there a way to ignore Unconfigured devices in your plugin?

ilcato commented 7 years ago

Name it with an _ in front

agisofttm commented 7 years ago

@ilcato - Thank you very much for the help. Sorry again

Mx-Razvan commented 7 years ago

Hi Ilcato

after the update to 2.0.4 the AC Control accessory is blocked on hating - 21 degrees. It shows that is on all the time. The temperature setup is working but I cannot put it on cool or off (like before, unless it didn't work in HC2)

also - on the global variables - made according to the wiki - just the first one from the list is working - switching from true to false and back in HC2. The second one and the rest aren't working.

Any ideas why?

Thanks

ilcato commented 7 years ago

which was the previous version of your setup? 2.0.3 or before?

Mx-Razvan commented 7 years ago

1.1.2

ilcato commented 7 years ago

In 1.1.2 you were not able to change the cooling state, I mean you were able to change it from the Home app but the state was not propagated to the Home Center and viceversa.

Mx-Razvan commented 7 years ago

Yes - I was able to change the state and it remained as I set it in home app, without being propagated to HC2. Just the temperature set worked. Now the temperature set is working and propagated to HC2 but when I try to put it on cool, off or auto in Home app it keeps returning to Heat 21 degrees

ilcato commented 7 years ago

ok, just publish 2.0.5 that by default behave like 1.1.2. The new logic is for heating thermostats like Danfoss in order to manage the cooling state that is not present in the z-wave device.

ilcato commented 7 years ago

For other device I still need to implement the logic for managing the cooling state. I do not have this kind of devices so it is not a priority for me.

Mx-Razvan commented 7 years ago

Understood. I'll update and see how is working

gondiciembre commented 6 years ago

Hi there ilcato ! sorry to bother, do you still plan to support Remotec ? thanks for all your work!

ilcato commented 6 years ago

Not without a real device to test

Mx-Razvan commented 6 years ago

Hi ilcato! As i have uninstalled the HCL and the accesories from another location I’m able to send you the spare remotec controler for test if you want. Just let me know

ilcato commented 6 years ago

@Mx-Razvan, sure.

ilcato commented 6 years ago

@Auto-m8r, @gondiciembre, @agisofttm, thanks to @Mx-Razvan that provided me a Remotec device I was able to implement a full Remotec zxt-120 support. I committed the code on GitHub but not published on npm. Please try the new functionality by updating the "dest" directory on your setup. Thanks.

agisofttm commented 6 years ago

@ilcato - Thats a great news - I'll try it as soon as possible 😁

gondiciembre commented 6 years ago

@ilcato I have just tested it and it is working great ! thanks so much for working on this.

ilcato commented 6 years ago

Ok, I'll publish it then