Creating custom version

39 views
Skip to first unread message

Samir Arishy

unread,
Aug 17, 2025, 10:48:11 PMAug 17
to TasmotaUsers
After spending two days!! with AI trying to add features ( see below) I gave up. The two tools I use never managed to walk me though it; both gitpod and tasmota own complier failed miserably. One major hickup is the prerequisites The strange thing is my request was a simple one:

Add Barry scripting and WebDisplay.

It seems the most reliable approach is VS code + PlatformIO. One quirk I do not understand is why PlatformIO has no task for ESP8266. They have ESP32 ONLY. Is that mean Tasmota basic already have the support so by building custom bin using Tasmota Task will takecare of ESP8266??

I need your help in customazing the .h file with the proper lines to achieve this. If you happen to know a source for such binary It will save us going though this painful exercise

Justin Adie

unread,
Aug 18, 2025, 1:39:16 AMAug 18
to Samir Arishy, TasmotaUsers
Hello Samir

PlatformIO will have tasks for esp8266 and esp32 (and all variants) if you are using the standard tasmota source code.  

I have not heard of berry being used on an esp8266. I'm doubtful there is enough memory.   If you need berry why not use an esp32?  

In any event to enable features in a build you need to create a config override file.  Take the sample version in the source code and remove the sample suffix then follow the model in the file to enable functionality.   The pattern is 

#ifdef
#undef
#endif
#define 

It is not strictly required to wrap the #undef in a conditional but it is the tasmota style and could be said to aid readability.  



--
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, visit https://groups.google.com/d/msgid/sonoffusers/e485850f-4f8a-44ca-a76d-edcced7afd5dn%40googlegroups.com.

Philip Knowles

unread,
Aug 18, 2025, 4:24:41 AMAug 18
to Samir Arishy, TasmotaUsers
Don't waste your time on AI with Tasmota - it's a large language model and there isn't enough correct information out there.

As for Berry - 2 minutes on the Berry page would have told you what the issue is with the 8266.

 
TasmoCompiler I find to be easiest to use. There is a link in the TasmoCompiler Git page to take you to a ready-made project

From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Samir Arishy <ari...@gmail.com>
Sent: 18 August 2025 03:48
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Creating custom version
 

Philip Knowles

unread,
Aug 18, 2025, 9:48:24 AMAug 18
to Samir Arishy, TasmotaUsers
I'm not quite sure what you mean by "WebDisplay". Rules for ESP32 include conditional rules now

From: Samir Arishy <ari...@gmail.com>
Sent: 18 August 2025 10:56
To: Philip Knowles <knowles...@gmail.com>
Cc: TasmotaUsers <sonof...@googlegroups.com>
Subject: Re: Creating custom version
 
Great response. Now I feel comfortable. ESP32 is the answer and I know why( memory limitations). Thank you for the advice regarding AI. I gave them hell.
If any of you tried the WebDisplay there is a prerequisite of adding the if for Rules. Is that true? Or latest versions already include the if in rules 

Samir Arishy

unread,
Aug 19, 2025, 11:27:35 AMAug 19
to Philip Knowles, TasmotaUsers
Great response. Now I feel comfortable. ESP32 is the answer and I know why( memory limitations). Thank you for the advice regarding AI. I gave them hell.
If any of you tried the WebDisplay there is a prerequisite of adding the if for Rules. Is that true? Or latest versions already include the if in rules 

On Mon, Aug 18, 2025 at 11:24 AM Philip Knowles <knowles...@gmail.com> wrote:

Piotr Antczak

unread,
Aug 19, 2025, 11:27:36 AMAug 19
to TasmotaUsers

--
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, visit https://groups.google.com/d/msgid/sonoffusers/e485850f-4f8a-44ca-a76d-edcced7afd5dn%40googlegroups.com.


--
Piotr Antczak
Message has been deleted
Message has been deleted

Samir Arishy

unread,
Aug 26, 2025, 8:49:51 AM (12 days ago) Aug 26
to TasmotaUsers
Is there ESP32 bin that has the full version of Berry script I tried to: 
  tasmota.set_status_html_page_info("33")    I got this error:
berryerror.png

Samir Arishy

unread,
Aug 26, 2025, 8:49:57 AM (12 days ago) Aug 26
to TasmotaUsers

I tried to use Berry with ESP32 and I was shocked when I realized the stripped version in my Berry in ESP32. Tried to get a feel on what features (functions etc.) the version has AND have not. I could not. Simple tasks work but as soon as you relay on built in functions you hit a brake wall.
The attached scripts tell the story. There is no way to make Berry execute this script see att.
I need your support in learning Berry's version on my ESP32. and I am ready to provide you with all what I have. Including "my kingdom" but instead of a HORSE, a running Berry script........ Just kidding.!!!!

BerryDisplaySignal.be

Philip Knowles

unread,
Aug 27, 2025, 7:41:58 AM (11 days ago) Aug 27
to Samir Arishy, TasmotaUsers
I'm not a Berry expert but aren't you supposed to have 'end'  after each 'def' and 'if'

import mqtt
import json

var current_signal = 0

def update_webui()
    var status_text = "Signal - " + str(current_signal) + " dBm"
    tasmota.set_status_html_page_info(status_text)
   end

def on_mqtt_data(topic, payload)
    if topic == "Dev32/STATE"
        var data = json.load(payload)
        if data != nil and data.contains("Wifi") end (is this in the right place?)
            var wifi_data = data["Wifi"]
            if wifi_data.contains("Signal")
                current_signal = wifi_data["Signal"]
                update_webui()
                end
         end
    end

mqtt.subscribe("Dev32/STATE", on_mqtt_data)

I can't find any reference to  tasmota.set_status_html_page_info(status_text)

Your code doesn't follow this


Sent: Monday, August 25, 2025 11:20
To: TasmotaUsers <sonof...@googlegroups.com>

Subject: Re: Creating custom version
Reply all
Reply to author
Forward
0 new messages