Yagusmart 4 button Scene Switch

Thanks

However, it's not yet left China, so it could be a while :smiley:

1 Like

:unamused: :cry:

Unsure if it was linked here but this driver for smartthings supposedly works.

Unfortunately even adapting to hubitat directly doesn't make it work within HE.

Someone with more skill may be able to make it work

Don't see any real red flags except that you may want to change capability "Button" to "PushableButton" and add capability "HoldableButton". Suspect that the event around line 86 may need to be changed, but nothing to test with so....

On mine I fixed the capabilities and the function names but still doesn't work.
What would line 86 be replaced with?

I got 2 to test here.
The driver after changing capabilities and function names by replacing the ones needed with "hubitat" still doesn't do the trick on my side.
Any suggestions are appreciated and i can test on my side

Possibly something close to:

if (buttonState == "pushed") { 
	    def descriptionText = "button $buttonNumber was $buttonState"
		event = [name: "pushed", value: buttonNumber, descriptionText: descriptionText, isStateChange: true, displayed: true]
} else if (buttonState in ["held","up_hold"]  ) {
		def descriptionText = "button $buttonNumber was $buttonState"
		event = [name: "held", value: buttonNumber, descriptionText: descriptionText, isStateChange: true, displayed: true]
}

May also want to change line 129 to:

        sendEvent(name: "pushed", value: it+1, displayed: false)

Thanks. Changed both, and does seem closer, but not yet there.
Packets seem to "stop" coming in.
After I hit "refresh" on the device I can press 1/2 buttons and the packets are picked up by HE but after that they stop.

Anything in the logs?

yeah it shows the packets after I press refresh. For example, I hit refresh, press a button and the logs show:

dev:13782021-09-20 14:15:24.493 debugcatchall descMap: [raw:catchall: 0000 8021 00 00 0040 00 9DA3 00 00 0000 00 00 1D00, profileId:0000, clusterId:8021, clusterInt:32801, sourceEndpoint:00, destinationEndpoint:00, options:0040, messageType:00, dni:9DA3, isClusterSpecific:false, isManufacturerSpecific:false, manufacturerId:0000, command:00, direction:00, data:[1D, 00]]
dev:13782021-09-20 14:15:24.482 debugdescription is catchall: 0000 8021 00 00 0040 00 9DA3 00 00 0000 00 00 1D00
dev:13782021-09-20 14:15:24.475 debugcatchall descMap: [raw:catchall: 0104 0006 01 01 0040 00 9DA3 00 00 0000 01 01 000086, profileId:0104, clusterId:0006, clusterInt:6, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:9DA3, isClusterSpecific:false, isManufacturerSpecific:false, manufacturerId:0000, command:01, direction:01, data:[00, 00, 86]]
dev:13782021-09-20 14:15:24.467 debugcatchall descMap: [raw:catchall: 0104 0006 01 01 0040 00 9DA3 00 00 0000 01 01 000086, profileId:0104, clusterId:0006, clusterInt:6, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:9DA3, isClusterSpecific:false, isManufacturerSpecific:false, manufacturerId:0000, command:01, direction:01, data:[00, 00, 86]]
dev:13782021-09-20 14:15:24.458 debugdescription is catchall: 0104 0006 01 01 0040 00 9DA3 00 00 0000 01 01 000086
dev:13782021-09-20 14:15:24.448 debugdescription is catchall: 0104 0006 01 01 0040 00 9DA3 00 00 0000 01 01 000086

The strange difference between HE and ST is that when TS004F is paired to HE ,it awaits some kind of initialization or command to be sent from HE zigbee coordinator after the first button press. This is not required when the scene switch is paired to SmartThings.
Writing a driver for ST was easy because the catchall payload is different for each button press. This doesn't work for HE.

I see the two button presses for button 1, then the clusterint:32801 which may be the request for a response but can't seem to fins any documentation on it.

The message coming from cluster 0x8021 is a standard 'Bind Response' broadcast from the device, I don't think it requires any commands to be sent back.

Yep, that was the only reference I saw for it too. But the logs see to stop right after receiving it so wanted to make sure we could rule it out.

So much fun that I didn't find this thread before I ordered this switch from Amazon. I also got the TS004F and aside from connecting it, it does nothing. Maybe I'll give it a few days in case someone figures it out. But it looks like this is useless for HE.

@bmgoodmanva can you give me the link to the exact one you ordered from Amazon please?

I wish I had followed this thread.. Got TS004F too. I have working one on another Hubitat and didn't even know there was new unsupported version. Any link to TS0044? Amazon/Ebay/Ali?

See this link to my previous post, there is the link to AliExpress where I bought TS0044 model ( the white one). Buta again, there is no guarantee what will be shipped at the moment, and I am almost sure that the black model is the new one that does not work with HE (yet).

I bought that exact one, and seller said that the factory no longer supplies the one we want.
Even though I received the item and was able to confirm that they ship now the one that does not work.

Supposedly now only this one works with other hubs that are not a tuya hub:

They sent me one, should receive soon