dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 498 forks source link

URC4450BC0-X-R by Universal Electronics Inc (Xfinity Keypad) #6685

Closed BabaIsYou closed 1 year ago

BabaIsYou commented 1 year ago

Describe the bug

  1. Same as decribed by closed issue #5695, that is for the xfinity keypad XHK1-UE I only get the temperature and and the ancillary control sensor showing up in API (and then in third party apps). May be it's normal but I also waited the presence sensor as described in request #4758
  2. The alarm system documentation states that "After pairing a keypad as sensor, it’s automatically added to the default alarm system with id “1”." In my case that's not what happened. The keypad was not added to the default alarm system image
  3. The sensors, nor the devices, are prsent in DeConz GUI, only the temperature sensor is present in Phoscon image image

Steps to reproduce the behavior

Pairing the device to my Zigbee Network

Expected behavior

Having device present in DeConz GUI, perhaps having the presence sensor alos added and having the keypas added in the default alarm system (or may be could I modify the documentation)

Screenshots

Se above. I could add others if needed.

Environment

deCONZ Logs

Dont' have log to produce at this time, may be it's normal behavior but not certain of that.

Additional context

Smanar commented 1 year ago

Hello, so first phoscon will don't help you here, sorry. More will be possible using domoticz (but untested, so probably not finished)

About the presence sensor, need to make some search, because your device was added before the DDF core, so I don't remember how it work, but from my memory it was removed https://github.com/dresden-elektronik/deconz-rest-plugin/issues/5352#issuecomment-1186590115

The alarm system documentation states that "After pairing a keypad as sensor, it’s automatically added to the default alarm system with id “1”." In my case that's not what happened

Honnestly, I need to check too, but I never see that happen, moslty because users include the keypad before setting the code0 (so configured = false). As workaround you can add it using the API.

Edit 1: So yes it's present in the code, at least for legacy code, will not work with new devices added by DDF.

    else if (sensorNode.type().endsWith(QLatin1String("AncillaryControl")))
    {
       ...............
        // by default add keypads to "default" alarm system 1
        AlarmSystem *alarmSys = AS_GetAlarmSystem(1, *alarmSystems);
        DBG_Assert(alarmSys != nullptr);
        if (alarmSys)
        {
            alarmSys->addDevice(sensorNode.uniqueId(), AS_ENTRY_FLAG_IAS_ACE);
        }
    }

Try with re-including the keypad, now your alarm system is set.

BabaIsYou commented 1 year ago

Thx ! Didn’t really know if that was bugs or obsolete description/doc …

Most strange for me is that it doesn’t appear in DeConz GUI at all … first time I see that behavior … Phoscon is not a problem for me because I really use it only to have a kind of GUI when I’m fed up with PUT and GET via REST-API or have trouble with DeConz-plugin in Domoticz ;-)

Update : After looking into the database I saw it in device_gui table, then looking better and find it hidden by another device on the map. ;-)

BabaIsYou commented 1 year ago

Then that's fine.