homebridge-fibaro-home-center icon indicating copy to clipboard operation
homebridge-fibaro-home-center copied to clipboard

Yubii Home support

Open coucou2000 opened this issue 3 years ago • 41 comments

Hi,

Do you support the Yubii Home which is very close to the FC3 lite.

Thanks

coucou2000 avatar Feb 04 '22 09:02 coucou2000

I tried with the last version, it doesn't work. No accessories loaded in the HomeBridge.

coucou2000 avatar Feb 04 '22 10:02 coucou2000

@coucou2000, is the plugin able to connect to your Subii Home ? Unfortunately I do not have such a device.

ilcato avatar Mar 01 '22 16:03 ilcato

@ilcato, yes the plugin is able to connect to my Yubii Home without problem, but no device loaded neither in the HomeBridge interface, nor in the Apple Homekit application. Here is exemple log :

[3/1/2022, 5:47:39 PM] [Homebridge UI] Changes to config.json saved. [3/1/2022, 5:47:39 PM] [Homebridge UI] Running Command: npm uninstall --save homebridge-fibaro-hc3 [3/1/2022, 5:47:44 PM] [Homebridge UI] Homebridge restart request received [3/1/2022, 5:47:44 PM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process [3/1/2022, 5:47:44 PM] [Homebridge UI] Sending SIGTERM to Homebridge [3/1/2022, 5:47:44 PM] Got SIGTERM, shutting down Homebridge... [3/1/2022, 5:47:49 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [3/1/2022, 5:47:54 PM] [HB Supervisor] Restarting Homebridge... [3/1/2022, 5:47:54 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /homebridge/node_modules [3/1/2022, 5:47:54 PM] [HB Supervisor] Started Homebridge v1.4.0 with PID: 5581 [3/1/2022, 5:47:55 PM] Loaded config.json with 1 accessories and 2 platforms. [3/1/2022, 5:47:55 PM] Loaded 0 cached accessories from cachedAccessories. [3/1/2022, 5:47:55 PM] --- [3/1/2022, 5:47:56 PM] Loaded plugin: [email protected] [3/1/2022, 5:47:56 PM] Registering accessory 'homebridge-dummy.DummySwitch' [3/1/2022, 5:47:56 PM] --- [3/1/2022, 5:47:56 PM] Loaded plugin: [email protected] [3/1/2022, 5:47:56 PM] Registering platform 'homebridge-fibaro-home-center.FibaroHC' [3/1/2022, 5:47:56 PM] --- [3/1/2022, 5:47:56 PM] Loaded plugin: [email protected] [3/1/2022, 5:47:56 PM] Registering platform 'homebridge-config-ui-x.config' [3/1/2022, 5:47:56 PM] --- [3/1/2022, 5:47:56 PM] Loading 2 platforms... [3/1/2022, 5:47:56 PM] [Config] Initializing config platform... [3/1/2022, 5:47:56 PM] [Config] Running in Service Mode [3/1/2022, 5:47:56 PM] [FibaroHC] Initializing FibaroHC platform... [3/1/2022, 5:47:57 PM] Loading 1 accessories... [3/1/2022, 5:47:57 PM] [Test] Initializing DummySwitch accessory... [3/1/2022, 5:47:57 PM] [Test] Setting switch to false Setup Payload: X-HM://0023ISYWYSHME Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 053-76-381            │     
└────────────┘     
                   

[3/1/2022, 5:47:57 PM] Homebridge v1.4.0 (HAP v0.10.0) (Homebridge E7E3) is running on port 52014. [3/1/2022, 5:47:57 PM] [FibaroHC] Loading accessories

coucou2000 avatar Mar 01 '22 16:03 coucou2000

@coucou2000, are you able to call the rest api from the Yubii interface ?

ilcato avatar Mar 01 '22 16:03 ilcato

@ilcato can you show me how to do it ?

coucou2000 avatar Mar 01 '22 17:03 coucou2000

@coucou2000, in the lower left-hand corner of the interface there are four buttons: Settings, Console, API documentation, Support. Select API documentation and access the interactive REST API documentation interface (Swagger).

From there you can call all the API. I'm interesting in what happens by calling the get devices api.

ilcato avatar Mar 01 '22 17:03 ilcato

@ilcato when i click Swagger button, it begins to load the http://192.168.1.110/swagger page. But for a few minutes, it's always in the loading status with the blanc page. Nothing appears in the page.

coucou2000 avatar Mar 01 '22 17:03 coucou2000

@ilcato I finally got the page loaded, i tried the GET ​/devices API, it seems OK with the 200 return code, here is a part of the result :

[ { "id": 1, "name": "zwave", "roomID": 219, "view": [], "type": "com.fibaro.zwavePrimaryController", "baseType": "", "enabled": true, "visible": false, "isPlugin": false, "parentId": 0, "viewXml": false, "configXml": false, "interfaces": [ "zwave" ], "properties": { "UIMessageSendTime": 0, "autoConfig": 0, "configured": true, "date": "a", "dead": false, "deviceControlType": 1, "deviceIcon": 28, "deviceRole": "Other", "disabled": 1, "emailNotificationID": 0, "emailNotificationType": 0, "endPoint": 0, "endPointId": 0, "liliOffCommand": "", "liliOnCommand": "", "log": "", "logTemp": "", "manufacturer": "", "markAsDead": true, "model": "", "nodeID": 1, "nodeId": 1, "parameters": [], "parametersTemplate": 0, "pollingDeadDevice": false, "pollingTime": 1354829138, "pollingTimeNext": 1354837724, "pollingTimeSec": 125, "productInfo": "", "pushNotificationID": 0, "pushNotificationType": 0, "remoteGatewayId": 0, "requestNodeNeighborStat": 0, "requestNodeNeighborStatTimeStemp": "", "requestNodeNeighborState": "", "requestNodeNeighborStateTimeStemp": "", "saveLogs": true, "serialNumber": "", "showChildren": 1, "smsNotificationID": 0, "smsNotificationType": 0, "status": "STAT_IDLE", "sunriseHour": "06:39", "sunsetHour": "17:30", "useTemplate": true, "userDescription": "", "value": 0, "zwaveBuildVersion": "3.67", "zwaveCompany": "Unknown", "zwaveInfo": "", "zwaveRegion": "EU", "zwaveVersion": "4.33" }, "actions": { "pollingDeadDevice": 1, "pollingTimeSec": 1, "reconfigure": 0, "requestNodeNeighborUpdate": 1, "turnOff": 0, "turnOn": 0 }, "created": 1643742562, "modified": 1643742562, "sortOrder": 1 }, { "id": 2, "name": "admin", "roomID": 219, "view": [], "type": "HC_user", "baseType": "com.fibaro.voipUser", "enabled": true, "visible": true, "isPlugin": false, "parentId": 0, "viewXml": false, "configXml": false, "interfaces": [ "voip" ],

coucou2000 avatar Mar 01 '22 17:03 coucou2000

How many ids are returned?

ilcato avatar Mar 01 '22 23:03 ilcato

@ilcato in all, 12 ids were returned.

coucou2000 avatar Mar 02 '22 06:03 coucou2000

@coucou2000, can you list the "type" attributes ?

ilcato avatar Mar 02 '22 08:03 ilcato

@ilcato :

com.fibaro.zwavePrimaryController HC_user com.fibaro.yrWeather com.fibaro.niceEngine iOS_device com.fibaro.remoteBaseShutter com.fibaro.ipCamera

for the moment, I just have a few electric shutters from the NICE brand.

coucou2000 avatar Mar 02 '22 09:03 coucou2000

@coucou2000, ok: none of these devices are currently supported by the plugin. What are com.fibaro.niceEngine and com.fibaro.remoteBaseShutter ?

ilcato avatar Mar 02 '22 09:03 ilcato

@ilcato for the moment, I just have a few remote electric shutters from the NICE brand. I suppose it's not supported currently ?

coucou2000 avatar Mar 02 '22 09:03 coucou2000

@ilcato for the moment, I just have a few remote electric shutters from the NICE brand. I suppose it's not supported currently ?

I only support roller shutter devices. Share the entire com.fibaro.remoteBaseShutter structure in order to understand if it's easy to manage.

ilcato avatar Mar 02 '22 09:03 ilcato

@ilcato in fact, it's a roller shutter device made by NICE using NICE 433MHz technology, it's also implemented in Fibaro HC3 :

https://manuals.fibaro.com/knowledge-base-browse/gateway-comparison/ https://www.niceforyou.com/en/solutions/automation-for-shutters.

coucou2000 avatar Mar 02 '22 09:03 coucou2000

@coucou2000, can you test 1.2.8-beta.2 ?

ilcato avatar Mar 02 '22 11:03 ilcato

@ilcato super, it works !

Just a question, i can up/down the shutter but can not have the STOP button. It's normal ?

coucou2000 avatar Mar 02 '22 11:03 coucou2000

yes. You can also use Siri to tell the % level to reach.

ilcato avatar Mar 02 '22 11:03 ilcato

i can use Siri to up/down completely the shutter, but when i asked to reach the % level, nothing happened, the commande is just ignored.

coucou2000 avatar Mar 02 '22 12:03 coucou2000

How do you spell it?

ilcato avatar Mar 02 '22 12:03 ilcato

I am French-speaking, for example, once translated, I ask SIRI to "lower the shutter of the living room to 50%"

coucou2000 avatar Mar 02 '22 12:03 coucou2000

With the Fibaro roller shutter it works. Can you post the entire message of the com.fibaro.remoteBaseShutter device ?

ilcato avatar Mar 02 '22 13:03 ilcato

which message exacte do u want to look ? The following is the last log i got :

[3/2/2022, 2:24:59 PM] [FibaroHC] Command: setValue, value: 50, to: 39

I asked SIRI to lower the shutter to 50%. Visibly, the commande is taken into account by the plugin. But no action taken by my shutter (id 39). Perhaps the shutter dosen't support this feature ?

coucou2000 avatar Mar 02 '22 13:03 coucou2000

No, I mean the one obtained from the API, like: { "id": 1, "name": "zwave", "roomID": 219, "view": [], "type": "com.fibaro.zwavePrimaryController", "baseType": "", "enabled": true, "visible": false, "isPlugin": false, "parentId": 0, "viewXml": false, "configXml": false, "interfaces": [ "zwave" ],

ilcato avatar Mar 02 '22 13:03 ilcato

{ "id": 33, "name": "Volet", "roomID": 221, "view": [ { "assetsPath": "/dynamic-plugins/com.fibaro.remoteBaseShutter/assets", "jsPath": "/dynamic-plugins/com.fibaro.remoteBaseShutter", "name": "com.fibaro.remoteBaseShutter", "translatesPath": "/dynamic-plugins/com.fibaro.remoteBaseShutter/i18n", "type": "ts" } ], "type": "com.fibaro.remoteBaseShutter", "baseType": "com.fibaro.remoteController", "enabled": true, "visible": true, "isPlugin": false, "parentId": 7, "viewXml": false, "configXml": false, "interfaces": [ "nice", "niceMono" ], "properties": { "buttonHold": 5000, "categories": [ "blinds", "remotes" ], "configuration": true, "dead": false, "deadReason": "", "deviceControlType": 53, "deviceIcon": 218, "deviceRole": "BlindsWithoutPositioning", "inputToChannelMap": { "close": [ 3 ], "open": [ 1 ], "partialOpen1": [], "step": [], "stop": [ 2 ], "toggleCh1": [], "toggleCh2": [], "turnOffCh1": [], "turnOffCh2": [], "turnOnCh1": [], "turnOnCh2": [], "unsupported": [] }, "log": "", "logTemp": "", "manufacturer": "NICE", "model": "", "niceId": 2, "niceProtocol": "Opera0", "numberOfSupportedButtons": 8, "saveLogs": true, "supportedDeviceRoles": [ "BlindsWithoutPositioning", "VenetianBlinds", "Awning" ], "userDescription": "" }, "actions": { "close": 0, "open": 0, "stop": 0 }, "created": 1646228877, "modified": 1646228877, "sortOrder": 7 },

coucou2000 avatar Mar 02 '22 14:03 coucou2000

Let me check tonight how the Fibaro Roller shutter is different from this perspective.

ilcato avatar Mar 02 '22 14:03 ilcato

Thanks a lot. Alternatively, it would be better if it's possible to implement the 3rd STOP button as done in the HC3 gateway.

HC3

coucou2000 avatar Mar 02 '22 14:03 coucou2000

Unfortunately the Home app doesn't expose the stop UI.

ilcato avatar Mar 02 '22 15:03 ilcato

Ok, hope Apple will open the function for the future.

coucou2000 avatar Mar 02 '22 17:03 coucou2000