alexander-vitishchenko / hc3-to-mqtt

Fibaro HC3 integration with Home Assistant & NodeRed
MIT License
31 stars 13 forks source link

feat request : nice blinder support #36

Closed ka2er closed 1 year ago

ka2er commented 1 year ago

Hi I have Nice blinder. I could try to add support just need some guidelines.

I would like to be able to use Yubii Home as mqtt gateway, send order from HASS via mqtt in order to open and close blinder.

Do you have some kind of "add device support" guideline documentation ?

alexander-vitishchenko commented 1 year ago

Hi @ka2er

Happy to help. I have my home lab with Z-Wave devices and Nice is new to me, even Fibaro device signatures are supposed to be the same.

Can you send me device JSON info so I estimate the effort for new device type support implementation?

ka2er commented 1 year ago

As published into mqtt ?

alexander-vitishchenko commented 1 year ago

It is a bit simple, open Fibaro HC3 user interface, click at "Swagger" icon at the top-bottom part

image

Then select "devices" from the dropdown list => enter your device id and share with me the resulting JSON

ka2er commented 1 year ago

{
  "id": 34,
  "name": "VR baie vitrée",
  "roomID": 221,
  "view": [
    {
      "assetsPath": "dynamic-plugins/com.fibaro.remoteBaseShutter",
      "name": "com.fibaro.remoteBaseShutter",
      "translatesPath": "/assets/i18n/com.fibaro.remoteBaseShutter",
      "type": "ts"
    },
    {
      "assetsPath": "dynamic-plugins/favorite-positions",
      "name": "favorite-positions",
      "translatesPath": "/assets/i18n/favorite-positions",
      "type": "ts"
    }
  ],
  "type": "com.fibaro.remoteBaseShutter",
  "baseType": "com.fibaro.remoteController",
  "enabled": true,
  "visible": true,
  "isPlugin": false,
  "parentId": 46,
  "viewXml": false,
  "hasUIView": true,
  "configXml": false,
  "interfaces": [
    "favoritePosition",
    "nice",
    "niceMono"
  ],
  "properties": {
    "buttonHold": 5000,
    "categories": [
      "remotes"
    ],
    "configuration": true,
    "dead": false,
    "deadReason": "",
    "deviceControlType": 53,
    "deviceIcon": 218,
    "deviceRole": "BlindsWithoutPositioning",
    "deviceState": "Configured",
    "favoritePositions": [
      {
        "label": "Favorite position 1",
        "name": "FavoritePosition1",
        "value": 50
      }
    ],
    "favoritePositionsNativeSupport": true,
    "icon": {
      "path": "/assets/icon/fibaro/com.fibaro.remoteBaseShutter_garage/com.fibaro.remoteBaseShutter_garage.png",
      "source": "HC"
    },
    "inputToChannelMap": {
      "close": [
        3
      ],
      "open": [
        1
      ],
      "partialOpen1": [],
      "step": [],
      "stop": [
        2
      ],
      "toggleCh1": [],
      "toggleCh2": [],
      "turnOffCh1": [],
      "turnOffCh2": [],
      "turnOnCh1": [],
      "turnOnCh2": [],
      "unsupported": []
    },
    "log": "",
    "logTemp": "",
    "manufacturer": "NICE",
    "model": "",
    "niceId": 13,
    "niceProtocol": "Opera0",
    "numberOfSupportedButtons": 8,
    "saveLogs": true,
    "supportedDeviceRoles": [
      "BlindsWithoutPositioning",
      "VenetianBlinds",
      "Awning"
    ],
    "userDescription": ""
  },
  "actions": {
    "close": 0,
    "open": 0,
    "setFavoritePosition": 1,
    "stop": 0
  },
  "created": 1649487581,
  "modified": 1671310429,
  "sortOrder": 15
}
alexander-vitishchenko commented 1 year ago

Interesting, this differs from Fibaro Z-Wave shutters.

Can you please also share few screenshots from Fibaro HC3 UI, showing what properties and actions are available for you?

alexander-vitishchenko commented 1 year ago

Hi @ka2er

Please let me know if you request is still relevant, or it could be closed as no inputs/screenshots provided?

ka2er commented 1 year ago

sorry I had forgotten ... my bad :/

image image image image

Do you need screenshot of another UI parts ?

ka2er commented 1 year ago
image
alexander-vitishchenko commented 1 year ago

Thanks @ka2er - this is very useful!

Can you please additionally send me JSON file for device #46, which is indicated as a parent for your blinder #34?

I'll see if I can release a new version of the QuickApp tomorrow, along with other updates accumulated over the last few weeks.

ka2er commented 1 year ago
{
  "id": 46,
  "name": "VR baie vitrée",
  "roomID": 221,
  "view": [],
  "type": "com.fibaro.device",
  "baseType": "",
  "enabled": true,
  "visible": false,
  "isPlugin": false,
  "parentId": 7,
  "viewXml": false,
  "hasUIView": false,
  "configXml": false,
  "interfaces": [
    "nice",
    "niceMono"
  ],
  "properties": {
    "buttonHold": 5000,
    "categories": [
      "other"
    ],
    "configuration": true,
    "dead": false,
    "deadReason": "",
    "deviceControlType": 1,
    "deviceIcon": 28,
    "deviceRole": "Other",
    "deviceState": "Configured",
    "icon": {},
    "inputToChannelMap": {},
    "log": "",
    "logTemp": "",
    "manufacturer": "NICE",
    "model": "",
    "niceId": 13,
    "niceProtocol": "Opera0",
    "numberOfSupportedButtons": 8,
    "saveLogs": true,
    "supportedDeviceRoles": [
      "Other"
    ],
    "userDescription": ""
  },
  "actions": {},
  "created": 0,
  "modified": 1671310430,
  "sortOrder": 23
}
alexander-vitishchenko commented 1 year ago

This was quick. Thanks and I'll let you know if I need more information.

alexander-vitishchenko commented 1 year ago

@ka2er I've added experimental Nice shutter support to the latest release, can you please check it out?

It should theoretically support other types of Nice devices, and Zigbee, if you have it for testing in your environment?

alexander-vitishchenko commented 1 year ago

Hi @ka2er,

Please let me know if the latest QuickApp version works for you, or if the request is still relevant?

ka2er commented 1 year ago

Hi, it works : well done!! I successfully open / close / stop my shutter from Haas. Thanks ! does the PayPal Donate is still revelant ?

alexander-vitishchenko commented 1 year ago

Hi @ka2er,

Donates are always relevant :-) and it's up to you to decide how much you appreciate the work done.

Thank you, Alexander