Thorarin / com.sensative

Strips sensors (and future Sensative devices) for Homey
MIT License
3 stars 8 forks source link

Maintenance actions interfere with device types used by HomeyKit #25

Open Thorarin opened 4 years ago

Thorarin commented 4 years ago

Originally reported by @jahnkenneth:

After the latest utpdate to the Sensative app my strips shows up as switches in HomeKit. I am using the HomeyKit-app, and before this update they showed up as contact sensors...

Any idea why?

Analysis

Version 2.1.3 added maintenance actions to Strips devices. Because these are an integral part of the capabilities list of a device, HomeyKit assumes the sensors are actually buttons.

This cannot be solved in this App without removing the otherwise useful maintenance actions.

See also https://github.com/swttt/com.swttt.homekit/issues/187

Thorarin commented 4 years ago

As a temporary workaround, users experiencing issues can use the Homey CLI to install this version of the Sensative driver:

Git branch: https://github.com/Thorarin/com.sensative/tree/feat/remove-maintenance-actions

ZIP download: https://github.com/Thorarin/com.sensative/archive/feat/remove-maintenance-actions.zip

Running or installing this version will remove the maintenance actions from your existing Strips devices, which should result in them once again being detected as sensors in HomeyKit. Restarting HomeyKit is probably required.

Reverting to the regular version of the app will once again add the maintenance actions, so this is only intended as a temporary workaround.

CC: @jahnkenneth

jahnkenneth commented 4 years ago

Thanks! Works like a charm! :-D

alexkappel commented 4 years ago

Thanks for this information, really annoying bug. Good to know the cause of it.

Thorarin commented 4 years ago

Version 2.2.0 adds an option to the device settings to turn maintenance actions off for a device. They can be turned back on when needed, so no more hassle with CLI installing a separate version.

Still not ideal, I know 🙂