jason0x43 / hacs-hubitat

A Hubitat integration for Home Assistant
MIT License
189 stars 46 forks source link

Z - wave Ring Range Extender missing entities after update #239

Closed DeekB1983 closed 3 months ago

DeekB1983 commented 6 months ago

I have Z wave ring range extender on my hubitat hub, it is being passed through to Home assistant via the integration.

It looks like it stopped reporting the powerSource entity when it was updated, this should state ether mains or battery. image

image

I am running the latest version that seems to have been released today but lookslike the problem started on the 1st of Jan after an update then.

I was wondering if there was a reason why its missing and if this entity can be restored please?

jason0x43 commented 6 months ago

The logic that names entities was updated in the integration more closely align with how Home Assistant works, and there have been a few issues. The entity wasn't removed intentionally, and it will definitely be restored. 🙂

If you click the +1 entity not shown link in the Sensors block, what do you get? If it's another power entity, what is the name of the entity (e.g., sensor.range_extender_power)? Also, what is the name of the entity that is no longer available?

DeekB1983 commented 6 months ago

thats great to know, thanks.

The entity under not shown seems to be last updated. image

The entity names are as follows: sensor.ring_range_extender_powersource sensor.ring_range_extender_last_update_time

Both of above seem to be unavailable.

jason0x43 commented 6 months ago

Possibly the issue was related to some issues around entity unique IDs. See if things are working again with v0.9.17.

DeekB1983 commented 6 months ago

Possibly the issue was related to some issues around entity unique IDs. See if things are working again with v0.9.17.

Hi Jason,

I installed V0.9.17 this morning and restarted home assistant but stll the same issue. image

jason0x43 commented 6 months ago

Hmmm… Could you try gathering a couple pieces of information?

  1. Get the device capabilities
  2. Enable debug logging, interact with the device a bit, and see what update events are received in the log.

This information will help diagnose exactly what has changed related to your device.

DeekB1983 commented 6 months ago

Hi Jason,

Not a problem, the device is quite dumb, there isnt much interaction that can be done with it, its a range extender with a battery, I am using it to tell if my garage loses mains power iuts not actually being used as an extender, I powered it on and off a couple of times and have sent the logs, hopefully this helps!

The device capabilties are as follows { "id": "1393", "name": "Ring Alarm Range Extender", "label": "Ring Range Extender", "type": "Ring Alarm Range Extender", "room": null, "attributes": [ { "name": "battery", "currentValue": 100, "dataType": "NUMBER" }, { "name": "powerSource", "currentValue": "mains", "dataType": "ENUM", "values": [ "battery", "dc", "mains", "unknown" ] } ], "capabilities": [ "Configuration", "Actuator", "PowerSource", { "attributes": [ { "name": "powerSource", "dataType": null } ] }, "Refresh", "Battery", { "attributes": [ { "name": "battery", "dataType": null } ] }, "Sensor" ], "commands": [ "configure", "refresh" ] }

And the logs:

app:11252024-01-03 15:30:36.513debugdevice event: {"name":"powerSource","value":"mains","displayName":"Ring Range Extender","deviceId":"1393","descriptionText":"Ring Range Extender AC mains re-connected","unit":null,"type":null,"data":null} app:11252024-01-03 15:29:54.480debugdevice event: {"name":"battery","value":"100","displayName":"Ring Range Extender","deviceId":"1393","descriptionText":"Ring Range Extender battery is 100%","unit":"%","type":null,"data":null} app:11252024-01-03 15:29:53.498debugdevice event: {"name":"powerSource","value":"battery","displayName":"Ring Range Extender","deviceId":"1393","descriptionText":"Ring Range Extender AC mains disconnected","unit":null,"type":null,"data":null} app:11252024-01-03 15:27:02.477debugdevice event: {"name":"powerSource","value":"mains","displayName":"Ring Range Extender","deviceId":"1393","descriptionText":"Ring Range Extender AC mains re-connected","unit":null,"type":null,"data":null} app:11252024-01-03 15:26:54.486debugdevice event: {"name":"battery","value":"100","displayName":"Ring Range Extender","deviceId":"1393","descriptionText":"Ring Range Extender battery is 100%","unit":"%","type":null,"data":null} app:11252024-01-03 15:26:53.579debugdevice event: {"name":"powerSource","value":"battery","displayName":"Ring Range Extender","deviceId":"1393","descriptionText":"Ring Range Extender AC mains disconnected","unit":null,"type":null,"data":null} app:11252024-01-03 15:25:37.470debugTesting URL is http://xxx.xxx.xxx.xxx./apps/api/1125/devices?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXXX app:11252024-01-03 15:25:37.468debugInitialize called

jason0x43 commented 6 months ago

Based on the errors in #246 and the fact that your problematic entity is a power source, I'm pretty sure I know what the issue is, and a fix will be out soon.

jason0x43 commented 6 months ago

The power level issue should be fixed in v0.9.19. Let me know if you're still seeing issues with the Last Update Time (that should be working).

DeekB1983 commented 6 months ago

The power level issue should be fixed in v0.9.19. Let me know if you're still seeing issues with the Last Update Time (that should be working).

Hey Jason,

thanks for this, the entity is now working as it was before but the last updated time is still unavailable. image image

I wasnt using the last updated time and its not and issue for me so I would be happy to close the issue down but you may want to understand\fix the issue so I havent closed it yet!

jason0x43 commented 6 months ago

I’m glad to hear the power source sensor is working, but I’m curious about the update sensor. Do you see any errors in your Home Assistant log related to that sensor? Maybe an error related to converting a sensor value or something?

jason0x43 commented 3 months ago

I'm closing this since there haven't been any updates in a while.