Closed ChineseStar98 closed 5 days ago
@ChineseStar98 can you provide more details? Are you talking about the DPS sensor? The lock? Can you share some logs? Which home assistant version are you using? Which version of unifi access? Are you using polling?
@ChineseStar98 can you provide more details? Are you talking about the DPS sensor? The lock? Can you share some logs? Which home assistant version are you using? Which version of unifi access? Are you using polling?
Sorry had to rush to the hospital earlier i didn't even realise i posted it xD Still wanted to edit more.
So i use acsess version 2.2.11 Hiome assistant Version 13.1 / core 2024.08.03 / supervisor 2024.08.0
The problem i have is that when i send the unlock command from home assistant the door unlocks (then it locks itself after 5sec) but home assistant still shows me the door as unlocked.
When I click to lock it again then of course o get the notification that locking is not supported.
So it seems to me as if the plugin does not get the wrong information about the locked status of the lock.
Once i reload the plugin it works again to unlock one time and then the same thing is happening.
I attached some screenshots.
It worked untill the last update of the plug in.
I will also try to set up a different home assistant ij an vm later to see if its a problem with my installation.
+1, I get the exact same behaviour
@ChineseStar98 what kind of hub do you have? Can you share actual log files in debug mode please? Try unlocking the door while logging.
There's currently no default case for the switch handling the different hub types - and "staying unlocked" after initial startup is a pretty good sign that there's yet another device_type out there. PR #65 adds a basic default handler.
@iviemeister sure enough but verbose logs would show the “unknown” device type.
@ChineseStar98 what kind of hub do you have? Can you share actual log files in debug mode please? Try unlocking the door while logging.
Good morning from Germany. Here are the log files and the hub is the standard door hub. (device version:4.6.2.0)
Looking at your log (reformatted below), you have the 2nd generation of the UAH, which has a device_type of UAH-DOOR rather than UAH.
Same data format as the 1st gen, so PR #66 adds support for UAH-DOOR.
{
"event": "access.data.device.update",
"receiver_id": "",
"event_object_id": "f4e2c6d6ff24",
"save_to_history": false,
"data": {
"unique_id": "f4e2c6d6ff24",
"name": "UA Hub Door",
"alias": "",
"device_type": "UAH-DOOR",
"connected_uah_id": "f4e2c6d6ff24",
"location_id": "c0ea782f-9522-454e-8996-c0ef6ebdd6b7",
"firmware": "v4.6.2.0",
"version": null,
"ip": "192.168.1.250",
"mac": "f4:e2:c6:d6:ff:24",
"hw_type": "",
"start_time": 1724374993,
"security_check": false,
"source": null,
"bom_rev": "",
"guid": "9af69ede-feaa-40c1-abe5-e85bed8afcd1",
"need_advisory": false,
"is_adopted": true,
"is_managed": true,
"is_connected": true,
"is_online": true,
"adopting": false,
"location": {
"unique_id": "c0ea782f-9522-454e-8996-c0ef6ebdd6b7",
"name": "Main Door",
"up_id": "edf1c705-8481-4d05-a5ff-635215802407",
"timezone": "",
"location_type": "door",
"extra_type": "",
"full_name": "UDM Pro - E - Main Door",
"level": 0,
"work_time": "[]",
"work_time_id": "",
"extras": {
"uah-input_state_dps": "on",
"uah-wiring_state_dps-neg": "off",
"uah-wiring_state_dps-pos": "off"
}
},
"door": {
"unique_id": "c0ea782f-9522-454e-8996-c0ef6ebdd6b7",
"name": "Main Door",
"up_id": "edf1c705-8481-4d05-a5ff-635215802407",
"timezone": "",
"location_type": "door",
"extra_type": "",
"full_name": "UDM Pro - E - Main Door",
"level": 0,
"work_time": "[]",
"work_time_id": "",
"extras": {
"uah-input_state_dps": "on",
"uah-wiring_state_dps-neg": "off",
"uah-wiring_state_dps-pos": "off"
}
},
"floor": {
"unique_id": "edf1c705-8481-4d05-a5ff-635215802407",
"name": "E",
"up_id": "16ac7075-3d5a-448c-9245-5dea545c3f90",
"timezone": "",
"location_type": "floor",
"extra_type": "",
"full_name": "UDM Pro - E",
"level": 0,
"work_time": "[]",
"work_time_id": "",
"extras": {}
},
"configs": [
{
"device_id": "f4e2c6d6ff24",
"key": "input_state_ren",
"value": "off",
"tag": "input_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "output_aux_mode",
"value": "normal",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_ren-pos",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "hold_relay_seconds",
"value": "5",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_ren-neg",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "input_state_dps",
"value": "on",
"tag": "input_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_aux-wet-com",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_aux-wet-no",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_rel-neg",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_lock-wet-no",
"value": "on",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_lock-dry-no",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "alias",
"value": "",
"tag": "device_extra",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_12v-pos",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "input_state_EMERGY",
"value": "off",
"tag": "input_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_support-bitmap",
"value": "on",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "port-mac-6",
"value": "f4:e2:c6:d6:ff:24",
"tag": "hub_action",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "lock_time_period",
"value": "",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "aux_mode_wet",
"value": "bell",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "dps_mode",
"value": "nc",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_rex-pos",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_poe-p4-camera2",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "global_emergency",
"value": "yes",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_dps-neg",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_lock-dry-com",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_lock-wet-nc",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "input_state_rex",
"value": "off",
"tag": "input_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_lock-dry-nc",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_aux-dry-cn",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_bitmap",
"value": "16826368",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_poe-p2-enter",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_poe-p1-exit",
"value": "on",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_aux-dry-no",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "input_state_rel",
"value": "off",
"tag": "input_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "input_state_SW-EMERGY",
"value": "off",
"tag": "input_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "aux_delay_wet",
"value": "0.1",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_rel-pos",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "nacl_public_key",
"value": "BYCwIElfYNCoPQiC83Ghj3iihVZZwMT4p5VzIiXby2M=",
"tag": "credential",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_aux-wet-nc",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "aux_delay_time",
"value": "0.1",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "port-mac-1",
"value": "f4:e2:c6:e4:82:05",
"tag": "hub_action",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "aux_mode_dry",
"value": "opener",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "ssh_password",
"value": "knWoLVisEBCEyQdvYOZk",
"tag": "credential",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_aux-dry-com",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "lock_end_time",
"value": "0",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "ssh_user",
"value": "ui",
"tag": "credential",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_lock-wet-com",
"value": "on",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "unlock_time_period",
"value": "",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "lock_type",
"value": "",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_poe-p3-camera",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_aux-dry-nc",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_12v-neg",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "poe-type",
"value": "802.3bt",
"tag": "device_extra",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "uah_token",
"value": "cdd6d861-631f-44b4-a636-9160be9b46ac",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "input_state_rly-lock_dry",
"value": "off",
"tag": "input_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "temp_lock_type",
"value": "reset",
"tag": "uah_config",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "cert_fingerprint",
"value": "DA7B09EE1A54704C32642BC8F7414AB1774FBBB0",
"tag": "credential",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_rex-neg",
"value": "off",
"tag": "wiring_state",
"source": ""
},
{
"device_id": "f4e2c6d6ff24",
"key": "wiring_state_dps-pos",
"value": "off",
"tag": "wiring_state",
"source": ""
}
],
"update": null,
"update_manual": {
"device_version_upgrade_status": {
"completed": false,
"is_waiting": false,
"is_upgrading": false,
"upgrade_seconds": 0,
"timed_out": false,
"failed": false,
"failure_reason": "",
"is_downloading": false
},
"from_version": "",
"last_upgrade_start_time": null,
"last_upgrade_success": null,
"last_upgrade_failure_reason": ""
},
"capabilities": [
"pin_code",
"is_hub",
"identity_is_hub",
"dps_alarm",
"input_mode_switch",
"aux_alarm",
"aux_delay_time",
"hold_time_0.1s",
"lock_relay_report",
"ssh_change",
"door_bell",
"multi_unlock_schedule",
"support_ui_account",
"aux_option_change",
"unlock_time_period",
"incremental_update_setting",
"mqtt_topic_update_setting",
"mobile_unlock_ver2"
],
"resource_name": "UDM Pro - E - Main Door - UA-HUB-DOOR-FF24",
"display_model": "UA Hub Door",
"revision": "1724992417356310872",
"revision_update_time": 1724992420,
"version_update_time": -62135596800,
"firmware_update_time": -62135596800,
"adopt_time": 1712762464,
"model": "UA Hub Door",
"images": {
"xs": "https://static.ui.com/fingerprint/ui/icons/ca4c65f9-303b-4a05-a7a7-a3632691ff1d_25x25.png",
"s": "https://static.ui.com/fingerprint/ui/icons/ca4c65f9-303b-4a05-a7a7-a3632691ff1d_32x32.png",
"m": "https://static.ui.com/fingerprint/ui/icons/ca4c65f9-303b-4a05-a7a7-a3632691ff1d_51x51.png",
"l": "https://static.ui.com/fingerprint/ui/icons/ca4c65f9-303b-4a05-a7a7-a3632691ff1d_64x64.png",
"xl": "https://static.ui.com/fingerprint/ui/icons/ca4c65f9-303b-4a05-a7a7-a3632691ff1d_101x101.png",
"xxl": "https://static.ui.com/fingerprint/ui/icons/ca4c65f9-303b-4a05-a7a7-a3632691ff1d_128x128.png",
"base": "icons/ca4c65f9-303b-4a05-a7a7-a3632691ff1d_257x257.png"
}
}
}
Looking at your log (reformatted below), you have the 2nd generation of the UAH, which has a device_type of UAH-DOOR rather than UAH.
Same data format as the 1st gen, so PR #66 adds support for UAH-DOOR.
@iviemeister Yeah i saw that too so i editet the hub.py to include UAH-DOOR but no matter what i try HA always find the hub as device type UAH
Is there somthing i am missing?
and btw Thany you guys so much for the fast responses to my problem
@iviemeister
okay i rebootet it another time and now it shows this:
The display name "UAH" shown there is currently hard-coded in door.py, not dynamically updated from the actual hardware model.
Looks like you disabled the integration, and it left the device disabled when you turned it back on?
Remove and re-add the integration, with the UAH-DOOR changes applied, and let it re-detect your setup. Then check the logs again.
The display name "UAH" shown there is currently hard-coded in door.py, not dynamically updated from the actual hardware model.
Looks like you disabled the integration, and it left the device disabled when you turned it back on?
Remove and re-add the integration, with the UAH-DOOR changes applied, and let it re-detect your setup. Then check the logs again.
@iviemeister Thats exactly what i was doing when you wrote and now eyerything workes again like it should.
Without the reboots it did not work in my case. Thank you so much for the help.
Sounds like this is the solution I need, but being a code noob could you tell me how I get the version with the new Pull Request, or just get the new Pull Request and add it to my installation?
On Sat, 31 Aug 2024 at 07:37, ChineseStar98 @.***> wrote:
The display name "UAH" shown there is currently hard-coded in door.py, not dynamically updated from the actual hardware model.
Looks like you disabled the integration, and it left the device disabled when you turned it back on?
Remove and re-add the integration, with the UAH-DOOR changes applied, and let it re-detect your setup. Then check the logs again.
@iviemeister https://github.com/iviemeister Thats exactly what i was doing when you wrote and now eyerything workes again like it should.
- Unistalled the integration.
- Reboot HA
- Reinstall the integration and make the changes to the door.py
- Reboot HA
- Add Hub new
Without the reboots it did not work in my case. Thank you so much for the help.
— Reply to this email directly, view it on GitHub https://github.com/imhotep/hass-unifi-access/issues/64#issuecomment-2322797954, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH75DV3POIWCMCCWP3KZ3PTZUFQD7AVCNFSM6AAAAABNMPXFW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRSG44TOOJVGQ . You are receiving this because you commented.Message ID: @.***>
--
@.*** 07803 294179
Sounds like this is the solution I need, but being a code noob could you tell me how I get the version with the new Pull Request, or just get the new Pull Request and add it to my installation?
@iandogherty
the easiest way is if you have studio code server installed in your HA instalation. If not its easy to install in the plugins menu.
one you open the SCS Navigate to cutom components/unifi-acces/hub.py In this file you have to add two new lines of code as described in PR #66 after thet follow my previos instuctions
Hope it helps, am sure they will relays an update that fixes it soon too
Thanks, did that. The reverse is now true for me: i.e. door always shows locked in HA even though the lock responds properly
On Sat, 31 Aug 2024, 10:18 ChineseStar98, @.***> wrote:
Sounds like this is the solution I need, but being a code noob could you tell me how I get the version with the new Pull Request, or just get the new Pull Request and add it to my installation?
@iandogherty https://github.com/iandogherty
the easiest way is if you have studio code server installed in your HA instalation. If not its easy to install in the plugins menu.
one you open the SCS Navigate to cutom components/unifi-acces/hub.py In this file below line 444 you have to add two new lines of code as described in PR #66 https://github.com/imhotep/hass-unifi-access/pull/66 after thet follow my previos instuctions
Hope it helps, am sure they will relays an update that fixes it soon too
— Reply to this email directly, view it on GitHub https://github.com/imhotep/hass-unifi-access/issues/64#issuecomment-2322839268, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH75DV7CLORLUP44ILSHZALZUGC63AVCNFSM6AAAAABNMPXFW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRSHAZTSMRWHA . You are receiving this because you were mentioned.Message ID: @.***>
The display name "UAH" shown there is currently hard-coded in door.py, not dynamically updated from the actual hardware model.
This is inaccurate. The hub type is not detected on startup because there is currently no easy to way to determine which hub type a door/gate is attached to.
@iandogherty can you please share some logs?
Alright. I drafted a new release v1.2.3 that includes @iviemeister 's patch for UAH-Door. Let me know if it works! Closing this for now.
hey - happy to share logs; but can you tell me which ones you need and how i generate them? (have downloaded 1.23 and no difference btw so you'll need these logs). appreciate your help.
On Sat, 31 Aug 2024 at 17:29, Anis Kadri @.***> wrote:
The display name "UAH" shown there is currently hard-coded in door.py, not dynamically updated from the actual hardware model.
This is inaccurate https://github.com/imhotep/hass-unifi-access/blob/main/custom_components/unifi_access/hub.py#L389. The hub type is not detected on startup because there is currently no easy to way to determine which hub type a door/gate is attached to.
@iandogherty https://github.com/iandogherty can you please share some logs?
— Reply to this email directly, view it on GitHub https://github.com/imhotep/hass-unifi-access/issues/64#issuecomment-2322955593, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH75DV3F46M4MLXGR2ZLLXLZUHVNFAVCNFSM6AAAAABNMPXFW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRSHE2TKNJZGM . You are receiving this because you were mentioned.Message ID: @.***>
--
@.*** 07803 294179
@iandogherty the easiest way to get useful logs is to:
@iandogherty I am going to close this one. If you still are facing issues, please re-open and share some logs.
Hi there - I thought I had shared some logs, but here they are again. Let me know if they help.
On Mon, 9 Sept 2024 at 18:24, Anis Kadri @.***> wrote:
@iandogherty https://github.com/iandogherty I am going to close this one. If you still are facing issues, please re-open and share some logs.
— Reply to this email directly, view it on GitHub https://github.com/imhotep/hass-unifi-access/issues/64#issuecomment-2338667452, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH75DV6MECPJURYRIEVPQE3ZVXKVDAVCNFSM6AAAAABNMPXFW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZYGY3DONBVGI . You are receiving this because you were mentioned.Message ID: @.***>
--
@.*** 07803 294179
@iandogherty you need to attach them to the github issue. Replying to the email notification with an attachment won't work.
Aha, thanks, I'll do that. Told you I was a noob!
On Mon, 9 Sept 2024, 18:37 Anis Kadri, @.***> wrote:
@iandogherty https://github.com/iandogherty you need to attach them to the github issue https://github.com/imhotep/hass-unifi-access/issues/64. Replying to the email notification with an attachment won't work.
— Reply to this email directly, view it on GitHub https://github.com/imhotep/hass-unifi-access/issues/64#issuecomment-2338691863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH75DV55K5AKFEGG4BLNX5LZVXMENAVCNFSM6AAAAABNMPXFW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZYGY4TCOBWGM . You are receiving this because you were mentioned.Message ID: @.***>
Unifi Access Hub
If i unlock the door in home assistant it switches to open but even if the lock is locked again, home assistant still shows open