homebridge-tuya-platform: Newly-Appearing "switch_inching" Causing Outlet Switch Control Issue

Prerequisite

  • Yes, I’ve read the readme completely.

Cache

  • Yes, I’ve cleaned accessory cache and the issue still exists.

Version

v1.7.0-beta.45

Device Infomation JSON File

{
	"active_time": 1684070943,
	"biz_type": 18,
	"category": "cz",
	"create_time": 1671631353,
	"icon": "smart/icon/ay1558333928396hf49I/64d318d772aa1a6c191f3ab821d09ed8.jpg",
	"id": "eb70d7c2644cedb9c5npeg",
	"ip": "",
	"lat": "",
	"local_key": "",
	"lon": "",
	"model": "YS115C",
	"name": "Dining Table",
	"online": true,
	"owner_id": "",
	"product_id": "co4q4x9nmekuw0cj",
	"product_name": "Smart Plug",
	"status": [
  	{
    	"code": "countdown_1",
    	"value": 0
  	},
  	{
    	"code": "cycle_time",
    	"value": ""
  	},
  	{
    	"code": "light_mode",
    	"value": "relay"
  	},
  	{
    	"code": "random_time",
    	"value": ""
  	},
  	{
    	"code": "relay_status",
    	"value": "last"
  	},
  	{
    	"code": "switch_1",
    	"value": false
  	},
  	{
    	"code": "switch_inching",
    	"value": "AADy"
  	}
	],
	"sub": false,
	"time_zone": "",
	"uid": "",
	"update_time": 1684275512,
	"uuid": "f216c049e4e83cf1",
	"schema": [
  	{
    	"code": "countdown_1",
    	"mode": "rw",
    	"type": "Integer",
    	"property": {
      	"unit": "s",
      	"min": 0,
      	"max": 86400,
      	"scale": 0,
      	"step": 1
    	}
  	},
  	{
    	"code": "cycle_time",
    	"mode": "rw",
    	"type": "String",
    	"property": {}
  	},
  	{
    	"code": "light_mode",
    	"mode": "rw",
    	"type": "Enum",
    	"property": {
      	"range": [
        	"relay",
        	"pos",
        	"none"
      	]
    	}
  	},
  	{
    	"code": "random_time",
    	"mode": "rw",
    	"type": "String",
    	"property": {}
  	},
  	{
    	"code": "relay_status",
    	"mode": "rw",
    	"type": "Enum",
    	"property": {
      	"range": [
        	"power_off",
        	"power_on",
        	"last"
      	]
    	}
  	},
  	{
    	"code": "switch_1",
    	"mode": "rw",
    	"type": "Boolean",
    	"property": {}
  	},
  	{
    	"code": "switch_inching",
    	"mode": "rw",
    	"type": "String",
    	"property": {}
  	}
	]
  },

Device Control Mode

Standard Instruction

Logs

No response

Other Infomations

Note the typo in this Github’s bug report’s UI field label “Other Infomations”

As of a recent version of this plugin, there is now a second, new switch showing up in the Home app paired with this model’s switch, named “switch_inching” that was not present in the Home app before, under a previous version with this same device model.

This new virtual “swiitch_inching” switch appearing in the Home app tends to be set to “on.” When it is set to “on,” the function of the “real” switch is “broken”—when the “real” switch is turned on it flashes on for less than second and turns itself back off. When the virtual paired switch named “switch_inching” is turned off, the “real” switch functions correctly. However turning switch_inching off is not a longer term solution, as it tends to turn itself back on somehow.

Other similar smart outlet switches controlled by the same plugin but different models/ manufacturers do not now show this new “switch_inching.”

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 19 (2 by maintainers)

Most upvoted comments

Careful not to use “global” in the Device ID as it can affect other outlets/sockets that didn’t have this switch_inching feature. By adding device-specific ID instead works for me.

Homebridge Settings > Manage Cached Accessories > Remove All Cached Accessories

Re #78 the “broken” behavior I see may be Switch Inching turning on via HomeKit but the seconds may be zero from Smart Life. The UI in Smart Life for the Inching setting on this device looks buggy, e.g. setting the seconds is enabled when Inching is off but disabled when Inching is on (you would think the other way around) and when the time is set by the user in the UI, the time changes back to what it was (the UI for changing the time seems to not work yet).

Thanks again!