I’m working on building an enhancement to the SmartThings component. I’ve noticed that all SmartThings device components that weren’t “main” were ignored. On my Samsung fridge that meant not getting most of the info, such as refrigerator or freezer temperature.
I’ve made some changes to _init__.py
, sensor.py
, and binary_sensor.py
to allow it to pull get new sensor data, but they mostly come up as unavailable (empty data) or seem to update incorrectly. I’m thinking there is some work to do in smartapp.py
as well, mainly in the smartapp_sync_subscriptions
function, but I could be wrong there.
I’ve attached a screenshot of what is shown for my fridge device sensors, along with one that shows a partial list of new entity names (to show how it uses the new component id/name in the entity ID).
I would love some help to finish this up, or maybe some guidance. While I’ve been doing development for a long time, I’ve ever never learned Python so was making this up as I went haha. I’m sure there are also cleaner ways to do some of what I’m doing.
Here is the commit in it’s current state:
And it’s branch I’m working on:
Hopefully this is something someone is able to help with and have some time, as I think this would be a great improvement to the SmartThings integration.