Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 01:51
    stale[bot] labeled #2138
  • 01:51
    stale[bot] commented #2138
  • Apr 08 20:28

    mcspr on dev

    ci: rework build.sh & release.s… cfg: move DEVICE and MANUFACTUR… (compare)

  • Apr 08 20:28
    mcspr closed #2217
  • Apr 08 20:12
    mcspr opened #2217
  • Apr 08 10:47
    buserror commented #1993
  • Apr 07 23:56
    mcspr commented #2213
  • Apr 07 23:56
    mcspr commented #2213
  • Apr 07 23:41

    mcspr on dev

    btn: key0 should override key … (compare)

  • Apr 07 23:33

    mcspr on dev

    Update platformio.ini comments … (compare)

  • Apr 07 22:48

    mcspr on dev

    sns: add SI1145 sensor (#2216) … (compare)

  • Apr 07 22:48
    mcspr closed #2216
  • Apr 07 22:48
    mcspr closed #2192
  • Apr 07 22:47
    mcspr commented #2192
  • Apr 07 22:46
    mcspr commented #2192
  • Apr 07 22:39
    mcspr commented #2208
  • Apr 07 22:35

    mcspr on dev

    dcz: add workaround for pressur… (compare)

  • Apr 07 22:35
    mcspr closed #2215
  • Apr 07 22:32
    mcspr opened #2216
  • Apr 07 21:50
    mcspr edited #2215
adbensi
@adbensi
Did You have something like this to start?
I will try to create many outputs on the same gpio .. is very bad.. other ideia?
adbensi
@adbensi
Guys, please, where I can find espurna STM8 with expander over serial cited by @Valcob https://github.com/xoseperez/espurna/issues/1311#issuecomment-435406052 ?
Antonio Fiol
@antonio-fiol
Hi, I was browsing the ESPurna code, and by accident I found this line https://github.com/xoseperez/espurna/blob/cacc7584d321b884c6a22972982d9f97d93206c2/code/espurna/relay.ino#L304
The comparison looks fishy, and I think it should be
bool pulse = (_relays[id].type == RELAY_TYPE_LATCHED) ? HIGH : LOW;
instead of
bool pulse = RELAY_TYPE_LATCHED ? HIGH : LOW;
But I do not have any hardware using latched relays (or any other hardware, yet), so I can't test it.
Thought someone might want to know about it.
Antonio Fiol
@antonio-fiol
I have been trying to understand if there is a stock configuration for this device I ordered, but did not find it. It looks similar to other supported HW, but not exactly the same. https://es.aliexpress.com/item/4000402866869.html
If anyone knows a way to configure this in a simple way (without opening the device, understanding the connections inside, etc.) I'd really appreciate that.
If not, is there any step-by-step tutorial on how to create a new HW configuration? (Not worried about the electronics part. I can, probably, reverse-engineer the circuit.)
Max Prokhorov
@mcspr
"Tuya Smart Life" at least means that the SDK that they used is from Tuya https://www.tuya.com/platform. Tracing things should be pretty easy, but we can't exactly know how they did the board exactly, only that the chip might be esp8266
Max Prokhorov
@mcspr
hw configuration part goes into the code/espurna/config/hardware.h with a single -DHARDWARE_NAME alias to be used by the user in arduino.h / custom.h / platformio.ini
Antonio Fiol
@antonio-fiol
Here's the microcontroller on the new thing, it just arrived in the mail: https://photos.app.goo.gl/ppkY7eM1dJYMURi56
Antonio Fiol
@antonio-fiol
The module is actually the same as this one: https://templates.blakadder.com/qs-wifi_D01_dimmer.html
So I guess that I will just try to flash it with something "hardware-less" and then need to find out the traces to the 2 inputs and 2 outputs, plus the reset button.
Max Prokhorov
@mcspr
Huh, if i remember correctly @reaper7 also bought the same device. We don't have the support for the counter part, to detect external switch press Tasmota uses "counter" which will count AC frequency on a specific pin.
Antonio Fiol
@antonio-fiol
Very likely. The input is connected via a resistor divider with what looks like a zener diode in parallel to the base (likely) of a transistor. I do not see a capacitor that could turn this into a sort of envelope detection. Even if it might be on the other side of the board, hidden, I don't think so.
YaBa
@yaba
hi there
my Sonoff POW, using ESPurna 1.14.1 switches off and on when Wifi network is down
it's annoying as hell, how can I disable this? I need it ON every time even if there's no wifi signal
adbensi
@adbensi
May be it is rebooting.. did You conected the serial to see?
YaBa
@yaba
no, but I'll try that
but why would it reboot?
I have other sonoffs (different model, same firmware) and that doesn't happen
adbensi
@adbensi
some times I see problens with WTD.. please, try it..
karmacoma92
@karmacoma92

hi again, i'm afraid this time i'm facing this,
In file included from .pio/libdeps/generic-esp01s-dht11-10-ota/AsyncTCP_ID1826/src/AsyncTCP.cpp:24:0:
.pio/libdeps/generic-esp01s-dht11-10-ota/AsyncTCP_ID1826/src/AsyncTCP.h:26:23: fatal error: sdkconfig.h: No such file or directory



include "sdkconfig.h"

                   ^

compilation terminated.
* [.pio/build/generic-esp01s-dht11-10-ota/lib0b6/AsyncTCP_ID1826/AsyncTCP.cpp.o] Error 1
=

any ideas?
Max Prokhorov
@mcspr
Add AsyncTCP to the lib_ignore entry in the platformio.ini
I though strict include fixes that, but that breaks rfm lib for some reason.
karmacoma92
@karmacoma92
excuse me but how, like this ? - lib_ignore = "sdkconfig.h"
Max Prokhorov
@mcspr
lib_ignore =
    AsyncTCP
karmacoma92
@karmacoma92
thanks, many thanks
adbensi
@adbensi
Hi!!
When I recorded the compiled image, it was not necessary to build the SPIFFS image .. where is fixed the pages? I see on the structure files, but how is it done? My question is about the possibility of using RJ45 Ethernet.. the frame server is centred?
Max Prokhorov
@mcspr
.js,.css,.html are all inlined into a single .html, which we then gzip and then convert that into an uint8_t array
see code/espurna/static/index*.h
Marco Martins
@mamartins
Hello 👋🏼 I’m trying to add 2 sonar sensors, for that I’ve initiated another sonar the problem is the wemos only run well at the first time. Subsequent times after 10s the wemos d1 stop responding
Max Prokhorov
@mcspr
@mamartins anything in the serial debug? does it crash or locks up completely, web and all?
Sachin Filinto
@sfilinto
@karmacoma92 i am observing the same since yesterday after i installed an update.
Max Prokhorov
@mcspr
Sachin Filinto
@sfilinto

@karmacoma92 @sfilinto see https://github.com/xoseperez/espurna/pull/2146#issuecomment-586489657

Thanks. adding lib_ignore = ESPAsynTCP in platformio.ini eliminates that error.

the below error still remains:
"Unicode decode error has occurred, please remove invalid (non-ASCII or non-UTF8) characters from /espurna/code/espurna/espurna.ino.cpp file"

anyway to rollback to a previous version on platformio ?

Max Prokhorov
@mcspr
@sfilinto does it build though? this is pio error, not ours, and it is not fatal based on the code. just something wrong with file encoding, perhaps you are using some custom .ino files with a different encoding so con-cated .ino.cpp show it?
Sachin Filinto
@sfilinto
@mcspr Nope does not build. i know its a pio error because it stated after i updated to the latest pio yesterday. nothing changed from the stock espurna code.
Max Prokhorov
@mcspr
@sfilinto care to open up platformio-core issue? full trace back and all.
as noticed somewhere else... pio hides the real error in a lot of cases, but you can try modifying platformio/fs.py func get_file_contents(...)to print the original exception (which should at least show file position)
diff --git a/platformio/fs.py b/platformio/fs.py
index ed0102cd..461ad925 100644
--- a/platformio/fs.py
+++ b/platformio/fs.py
@@ -54,6 +54,8 @@ def get_file_contents(path, encoding=None):
         with io.open(path, encoding=encoding) as fp:
             return fp.read()
     except UnicodeDecodeError:
+        import traceback
+        traceback.print_exc()
         click.secho(
             "Unicode decode error has occurred, please remove invalid "
             "(non-ASCII or non-UTF8) characters from %s file" % path,
Quickly snatching .ino.cpp also will help since it is removed after pio quits, like C-z if pio is ran from shell
Sachin Filinto
@sfilinto
@mcspr will do
Marco Martins
@mamartins
@mcspr wifi and telnet work, web interface and sonar measures don’t. Telnet crash don’t show anything. I don’t have the adaptor for the serial debug :(
Max Prokhorov
@mcspr
huh. but do any telnet commands work? if they don't, we are stuck in some infinite loop and the thread we stuck in is supposed to handle sensor readings and webui. only question is what exactly causes it, something we do or sonar library (see NewPing)
Marco Martins
@mamartins
Yes telnet commands work
I have 2 sensors, so I added to the initiate condition another sensor class
Marco Martins
@mamartins
At sonar.ino I replaced
#if SONAR_SUPPORT
{
    SonarSensor * sensor = new SonarSensor();
    sensor->setEcho(SONAR_ECHO);
    sensor->setIterations(SONAR_ITERATIONS);
    sensor->setMaxDistance(SONAR_MAX_DISTANCE);
    sensor->setTrigger(SONAR_TRIGGER);
    _sensors.push_back(sensor);
}
#endif
with
#if SONAR_SUPPORT
{
    SonarSensor * sensor = new SonarSensor();
    sensor->setEcho(SONAR_ECHO);
    sensor->setIterations(SONAR_ITERATIONS);
    sensor->setMaxDistance(SONAR_MAX_DISTANCE);
    sensor->setTrigger(SONAR_TRIGGER);
    _sensors.push_back(sensor);  
  SonarSensor * sensor2 = new SonarSensor();
    sensor2->setEcho(SONAR_ECHO_2);
    sensor2->setIterations(SONAR_ITERATIONS);
    sensor2->setMaxDistance(SONAR_MAX_DISTANCE);
    sensor2->setTrigger(SONAR_TRIGGER_2);
    _sensors.push_back(sensor2);    }
#endif
Marco Martins
@mamartins
And crates new Constants for the sensor nr 2 trigger and echo