Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for touch devices with tasmota firmware..? #10

Closed
BPC83 opened this issue Apr 1, 2018 · 20 comments
Closed

Support for touch devices with tasmota firmware..? #10

BPC83 opened this issue Apr 1, 2018 · 20 comments

Comments

@BPC83
Copy link

BPC83 commented Apr 1, 2018

Hi, will sonoff touch devices with tasmota firmware be supported in the future.?

@robertklep
Copy link
Owner

You can probably already use the app with Touch devices (if you have to pick a device type, choose "Sonoff Basic").

However, for now, only one button/relay is supported, so a Touch device with multiple buttons won't be (fully) supported yet (I'm working on support for devices with multiple relays as we speak).

@BPC83
Copy link
Author

BPC83 commented Apr 20, 2018

@robertklep hi.. i have now successfully flashed a Sonoff Touch T1 1 gang. with tasmota, (that was hard... switching to windows solved it right away) and added it to homey as a generic (tasmota) device, and I work.. but how is you're process of supporting it with 2 or 3 buttons.. ? I also have a 2 button version I can try flashing, if it can help you with something..?

@robertklep
Copy link
Owner

@BPC83 if you set the module type for the 2-button device to "Dual" (in the Tasmota configuration), you should be able to add it as a Dual device to Homey.

If that works, I can easily add new drivers for each different Touch device.

@BPC83
Copy link
Author

BPC83 commented Apr 20, 2018

@robertklep i have done some interesting tests for you (I think)
Flashed my Sonoff Touch T1 2gang with tasmota, and set it up in the web interface as a 2CH device, tried to add it to homey, as, Generic, basic, dual, 4ch it was not possible to add to homey..

Set it as a dual in web interface, and added it succesfully as a dual device to homey, but switches in homey does not work...

Set it up as a 4ch device, and added it to homey as a 4ch device, and switch 1 and 2 in homey is working, and also updating, when switch is toggled in tasmota..

If you want more tests. please tell me...

@robertklep
Copy link
Owner

Each driver has a fixed list of modules it will support, so it will only allow devices configured as one of those modules be paired (the "Sonoff T1 2CH" module isn't supported by any driver yet).

It's weird though that the "Dual" module doesn't work. Could you try setting it to the "Sonoff Dual R2" module and try again?

@BPC83
Copy link
Author

BPC83 commented Apr 20, 2018

@robertklep in tasmota (web) it is working, but not possible to add to homey, with the one dual device there is listed in homey.

@robertklep
Copy link
Owner

I assume it doesn't show up when you try to pair it? Are you power-cycling device while Homey is waiting for it to show up?

@BPC83
Copy link
Author

BPC83 commented Apr 20, 2018

no it does not show in homey, it is just waiting fore it.. after 10 min, I canceled it..
yes, I am rebooting the sonoff device from the tasmota web interface..

@robertklep
Copy link
Owner

robertklep commented Apr 20, 2018

Strange. After the device has rebooted, it sends its status info to the MQTT broker, which is what the Sonoff app is waiting for (so after a device reboot, it should appear within 10 seconds or so).

I don't quite understand why it's not being picked up (especially weird since it does work when you configure it as a 4CH device).

@BPC83
Copy link
Author

BPC83 commented Apr 20, 2018

I tried it one more time, and now it is actually working, with tasmota as Dual R2 and added to homey as dual.. and both switched in homey works...

@robertklep
Copy link
Owner

Okay cool (and strange ;)).

That means that I can just copy the Dual driver for the 2CH Touch device (and the Basic driver for the 1CH, and create a new driver for the 3CH). Should be simple enough :)

@BPC83
Copy link
Author

BPC83 commented Apr 20, 2018

yes... that sound simple... my testings is with the UK version... I have also a EU version but I thing that will be the same.. but will test it later... the 3ch is only available in US and UK versions, the EU versions have to be smaller to fit in to an euro wall box, but I think the software factions will be the same for all versions... but... iam looking to buy an 3ch US version, as I need 3 buttons beside my bed... If I can find a wall box for an US version on ebay, in Denmark we are special, we have very small switches, and outlets.. only 50x50mm for a switch...

@BPC83
Copy link
Author

BPC83 commented Apr 20, 2018

Bad news........ when tasmota is set to dual R2 the buttons on the device does not work... changed it back to 4ch and buttons working again....

@robertklep
Copy link
Owner

Perhaps the Dual is "special" for Tasmota. I will release a beta version with support for all three T1 devices, hopefully those work as expected.

@robertklep
Copy link
Owner

Just submitted v4.0.4 (beta) to the Homey app store, with support for T1 and POW devices (#6)

@robertklep
Copy link
Owner

v4.0.4 was just published.

@BPC83
Copy link
Author

BPC83 commented Apr 22, 2018

done a quick test, the 1ch works fint...

2ch. adding to homey, looks fine, it is found, added to the list, and when I click on the sliders icon, there is a message, "waiting for connection" and after some time, (20-30 sek after adding) the main icon in homey changes to the no connection icon...
i have not time fore more testing today, but will return testing tomorrow

@robertklep
Copy link
Owner

Thanks for testing, sounds like the app might be crashing. I just realized that I could try and use my Dual as if it's a T1 2CH, so will run some tests as well.

@robertklep
Copy link
Owner

No, running the Dual as if it was a T1 2CH works just fine. That doesn't necessarily mean it's supposed to with with a real T1 2CH, but at least there isn't an obvious bug in the code.

@robertklep
Copy link
Owner

Closing as T1 1/2/3CH devices are now supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants