BrettSheleski / SmartThingsPublic

36 stars 23 forks source link

Sonoff 4CH Testing #10

Open BrettSheleski opened 6 years ago

BrettSheleski commented 6 years ago

Please use this thread for communicating issues with the Sonoff 4CH module.

nquick commented 6 years ago

Hi Brett,

Thanks for your handler, I've been using it with several of my devices. I had been using the Hue emulation to do the 4CH. I have put the 4CH handler on and can see the device and when clicking in the SmartApp I can see 4 outputs. Is there a way to put the outputs on the home screen so I can turn on each individually and then via our google home.

Thanks

BrettSheleski commented 6 years ago

This all seems to be more of issues regarding SmartThings, not this device handler.

I'm an Alexa-guy, so I don't have any experience with Google Home.

Not sure if you're talking Android or iPhone regarding putting on your home screen. On Android it looks like you can add a SmartThings widget and use a routine. So it sounds like you can setup a routine for turning on/off each channel and add them all to your home screen.

I suppose it would be possible for one to develop a SmartApp to expose all SmartThings devices (one may already exist, haven't looked) and create a mobile app to communicate to the SmartApp making a more versatile set of widgets to put on ones home screen. That's all way out of scope for this project though.

nquick commented 6 years ago

Hi Brett,

I meant whether you could add the spawned children to the SmartApps favourites. Otherwise you've got to go into the device and then select the power output you want to turn off.

How often should the handler poll the devices? When the Hue emulation is enabled it seems to poll immediately. When configured as a switch it doesn't seem to update the status if I turn it off on the sonoff webpage or via my Pimatic MQTT server. I usually have to manually refresh.

Thanks

BrettSheleski commented 6 years ago

I'm still stuck using the SmartThings Classic app (long story). As such I'm not aware of any favorite feature in SmartThings.

Currently the Sonoff device does not communicate back to SmartThings. I've made a Tasmota SmartApp to resolve this issue. It's not the most straight forward process to get working (mainly due to how SmartThings SmartApps work), but you can do it. I created a flow in Node-Red to handle the mqtt-to-SmartApp communication. This sample setup is also documented.