Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Apr 04 16:53
    stale[bot] closed #2119
  • Apr 04 16:53
    stale[bot] closed #2125
  • Apr 04 16:53
    stale[bot] commented #2119
  • Apr 04 16:53
    stale[bot] commented #2125
  • Apr 04 12:12
    alekob labeled #2211
  • Apr 04 12:12
    alekob opened #2211
  • Apr 04 10:47
    Camposmansi commented #2209
  • Apr 04 08:58
    Camposmansi labeled #2210
  • Apr 04 08:58
    Camposmansi opened #2210
  • Apr 03 20:08
    Camposmansi commented #2209
  • Apr 03 19:24
    ColinShorts commented #2209
  • Apr 03 18:24
    Camposmansi commented #2209
  • Apr 03 18:23
    Camposmansi commented #2209
  • Apr 03 17:23
    ColinShorts commented #2209
  • Apr 03 17:05
    Camposmansi commented #2209
  • Apr 03 16:57
    ColinShorts commented #2209
  • Apr 03 16:41
    Camposmansi commented #2209
  • Apr 03 16:39
    Camposmansi commented #2209
  • Apr 03 16:38
    Camposmansi commented #2209
  • Apr 03 16:36
    ColinShorts commented #2209
karmacoma92
@karmacoma92
excuse me for not being clear enough, I'm getting "In file included from /home/oscar/PlatformIO/Projects/espurna/code/espurna/espurna.ino:51:0:
espurna/ntp.h:24:16: fatal error: TZ.h: No such file or directory" when using "platform = ${common.arduino_core_2_4_2}"
and getting "/home/oscar/PlatformIO/Projects/espurna/code/espurna/espurna.ino:787:42: error: 'URL' does not name a type
/home/oscar/PlatformIO/Projects/espurna/code/espurna/espurna.ino:787:47: error: ISO C++ forbids declaration of 'url' with no type [-fpermissive]" when using 2_3_0,
any possible hints?
Max Prokhorov
@mcspr
@karmacoma92 like i said, it won't work with 2.4.2. include error is most likely something wrong in the dev tree you have checked out, espurna.ino should have #include "libs/URL.h"
platformio adds function prototypes at the top when generating .cpp, we need to add types before that happens. this specific problem is that there is no class URL {...}; or class URL; anywhere, it does not know what it is
@adbensi btw what is the purpose of the expander? buttons, leds? or interrupt events?
adbensi
@adbensi
@mcspr Buttons and Leds.. I have one PCF8574 I2C.. and another 328p to control AC DIM over serial command.. I put RGB LED on it too.. many resources on the board.
image.png
ESP8266 is connected at PCF8574 on the I2C port, and 328P processor on the serial port. Over GPIO virtual, I can drive to them
adbensi
@adbensi
@mcspr Sorry, buttons without interrupt and relays on the PCF8574 I2C. Over GPIO virtual I would like to send serial commands to 328P too
Max Prokhorov
@mcspr
@adbensi thanks for the explanation. in general, output is not a big problem, since i2c communication is just setting a pin status bitmask as on or off. input is the same, but the way button reading is done right now is blocking the loop execution for each one. i can port the debounceevent here with the proposed pin-provider model and remove blocking, but I am not sure how well that will work.
pcf driver is essentially 3 lines of Wire code, but I guess we would need some caching to avoid writing / reading every time
adbensi
@adbensi
Yes.. I use only I2C pins, because it reading every time
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.