how to write my own module for tasmota

899 views
Skip to first unread message

app41

unread,
Jan 5, 2022, 5:11:14 PM1/5/22
to TasmotaUsers
I'd like to integrate some custom code in the Tasmota package. 
where can I find a guide to doing that without making reverse engineering of the whole code?

Philip Knowles

unread,
Jan 6, 2022, 4:44:54 AM1/6/22
to app41, TasmotaUsers

There isn’t a simple answer because it depends what you want to do. For instance, a lot of changes can be me made in the user config file (which is well documented) , but, if you want to make changes to a driver, etc it’s more complicated.

 

Regards

 

Phil K

 

Sent from Mail for Windows

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/5593f4bb-88a9-4c6f-8dff-546549625aa9n%40googlegroups.com.

 

Stephan Hadinger

unread,
Jan 6, 2022, 7:52:07 AM1/6/22
to TasmotaUsers
If you're using ESP32/ESP32C3/ESP32S2 you can take a look at the Berry language which allows you to do many things: writing a driver, enhancing the web UI...

Jan Meinecke

unread,
Jan 6, 2022, 6:25:54 PM1/6/22
to TasmotaUsers
Hello everyone...

I was lucky and got my fingers on an old atomi 1310 (the one with usb temp sensor) and was able to flash it with tasmota right away.
Update went fine to 10.x but blackadder only knows 2 atomi devices and both dont switch the outlet or show any info on the sensor.
Does anyone have seen or came along a single outlet plug with an usb temp sensor that might be working for mw template wise?
Device is atomi 1310

Thx for suggestions

app41

unread,
Jan 7, 2022, 3:34:07 PM1/7/22
to TasmotaUsers
thank you all for your suggestions
I was expecting to find in Tasmota environment a guideline, written by the development team...
but it seems there isn't any
I spent last night understanding the flow of driver and sensor modules

I report these pages to start from:

also, a problem is to use correctly all the functions already written in the tasmota core, I tried to make quick reverse engineering of an already existing driver, but comments in the code is usually very poor or missing
last but not least, I have still to set up the debug server to see and track what is happening

it is a pity that so good code is really poor for comments and documentation
the entrance barrier is really high and I suppose the platform is losing a lot of potential contributions
 
so my first conclusion is that tasmota is a very good tool to use, but not attractive for programming

Stephan, thank you for your hint about the berry module, really interesting
during the Xmas holidays I was really appreciating the new shelly javascript interpreter
good to see there is a similar option also here in tasmota

Philip Knowles

unread,
Jan 7, 2022, 3:39:26 PM1/7/22
to app41, TasmotaUsers

Remember that a lot of the drivers, etc are based on Arduino. If you don’t even explain what you are trying to achieve it’s very difficult for people to give you helpful suggestions as to where to start.

 

Help us to help you.

 

Regards

 

Phil K

 

 

Sent from Mail for Windows

 

From: app41
Sent: 07 January 2022 20:34
To: TasmotaUsers
Subject: Re: how to write my own module for tasmota

 

thank you all for your suggestions

I was expecting to find in Tasmota environment a guideline, written by the development team..

but it seems there isn't any

Reply all
Reply to author
Forward
0 new messages