oukene / smartthings_customize

10 stars 7 forks source link

FR: Support update domain #26

Closed saya6k closed 7 months ago

saya6k commented 7 months ago

In attributes and command, there are attributes and commands related to firmware.

Add support to update domain.

oukene commented 7 months ago

please more detail information

saya6k commented 7 months ago

I have an Air Purifier that includes various attributes and commands pertaining to software updates. Here are the relevant attributes:

The available commands for the software updates are:

Installed version (installed_version) Latest version (latest_version) Update in progress (in_progress)

With update domain entity, I can use the Home Assistant services update.install, update.skip, and update.clear_skipped for managing these updates.

With this feature, you will no longer need to use the SmartThings app to manage updates for your Air Purifier.

oukene commented 7 months ago

Added update entity to new branch.

However, I am not sure if 'agreeUpdate' will work properly. I don't know what the 'module' value used as an argument is.

There is a firmwareUpdate capability in the smartthings capability list, but it is not used in the Samsung home appliances I am using and is only added as a custom capability. (It also doesn't show the correct values.)

If the currentVersion and availableVersion values ​​of the attribute are valid, it seems possible to check whether an update exists.

saya6k commented 7 months ago

Works fine. Thanks