smartthings icon indicating copy to clipboard operation
smartthings copied to clipboard

Issues with setup, available data and devices

Open Swallowtail23 opened this issue 3 years ago • 4 comments

Repository starred - thank you for your work on this.

Added to HACS all good, and it shows as an installed repository in HACS "SmartThings Custom". I then go into Settings / Devices & Services / Integrations / Add Integration and select SmartThings.

Issues:

  1. On setup of the SmartThings custom integration, it presents a window asking to Confirm Callback URL: image It will not use the external URL set in my HA, but only sees and tries to use Nabu Casa. My external access works fine, and should be used. It is set in the HA GUI, not in configuration.yaml - How do I get the integration to use my external URL, not Nabu Casa? Or is this an underlying issue, not caused by this integration?

  2. For the fridge, there is little useful information brought through other than overall open/closed and energy usage: image ... Temp sensors are enabled but 'unavailable'. Is this me setting it up incorrectly, or an issue?

Swallowtail23 avatar Jan 17 '23 01:01 Swallowtail23

After doing more reading around my issues I have partially fixed this by adding correct API child devices and adding my fridge model "22K_REF_LCD_FHUB7.0" to the custom repository files (PR created btw).

Remaining issues:

  1. The callback not picking up my external URL
  2. Open / Closed is correct in API (and is open/closed, so no issue with close vs. closed) but does not update to the HA integration unless integration is reloaded
  3. Temperature for the "Cooler" child device is correct in API but is incorrect in the integration - 3C vs. 20C
  4. The "Power" sensor figure is WAY off, but I think this is an API issue, not integration. On my fridge it ranges from 2kW to 3.5kW... it does reflect what is in the API. We are most definitely nowhere near that! The "Energy" sensor looks about right at about 3 to 4kWh per day so far, or about 125 to 170W average draw.

Swallowtail23 avatar Jan 17 '23 05:01 Swallowtail23

  1. fixed itself after about 6 hours - it is now reading 3C as it should!

Swallowtail23 avatar Jan 17 '23 11:01 Swallowtail23

From what I can tell, the entities which are in the native SmartThings integration which work (e.g. Contact for doors, the electrical readings) work and update immediately as intended. The additional entries added by setting up the child entities in the API and then using this extended integration only update in HA after several hours.

I have checked, and the API accurately (and immediately) updates temps, all door states, etc., in all child devices - but in my instance using this integration, the temperature readings only update after several hours, the door state only updates after a reload, and if I push a change from HA (e.g. Power Cool on/off) it works fine on the fridge (as it is pushed to the API), but if I change it in SmartThings natively it does not reflect back into the integration.

For temp readings I have now setup a once-every-5-minutes REST template interrogating the API which gets me current temps; and I use this integration to provide HA control over fridge functions (e.g. Power Cool), but for individual door open messages it seems like (for me at least) this integration is not maintaining active API connection to get timely state updates and is not usable.

Swallowtail23 avatar Jan 19 '23 00:01 Swallowtail23

OK I suspect that the issue is quantity of "subscriptions": 2023-01-20 11:42:34.480 WARNING (MainThread) [custom_components.smartthings.smartapp] Some device attributes may not receive push updates and there may be subscription creation failures under app '62b58c6f-a0a5-4613-8c88-0dd814ef3c26' because 41 subscriptions are required but there is a limit of 40 per app Is there a way around this?

Swallowtail23 avatar Jan 20 '23 01:01 Swallowtail23