Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 10:28

    mcspr on dev

    pwm: adjust for float precision… (compare)

  • 10:10

    mcspr on dev

    pwm: fix arduino pin init (compare)

  • 07:43
    mcspr commented #2530
  • 07:42
    mcspr commented #2531
  • Aug 18 22:55
    Homer-Sim commented #2531
  • Aug 18 21:52
    mcspr commented #2530
  • Aug 18 21:49
    mcspr commented #2531
  • Aug 18 21:25
    mcspr commented #2530
  • Aug 18 21:21
    Homer-Sim opened #2531
  • Aug 18 21:21
    Homer-Sim labeled #2531
  • Aug 18 21:13
    davebuk commented #2530
  • Aug 18 21:13
    davebuk commented #2530
  • Aug 18 19:45
    davebuk commented #2530
  • Aug 18 19:10

    mcspr on dev

    emon: rollover happens on kwh l… pzem004tv30: convert to watt se… (compare)

  • Aug 18 14:16
    mcspr commented #2530
  • Aug 18 14:03

    mcspr on dev

    pzem004tv30: actually ignore in… (compare)

  • Aug 18 14:00

    mcspr on dev

    emon: separate initial and rese… pzem004tv30: try to calculate e… pzem004tv30: sensor string (compare)

  • Aug 16 14:53

    mcspr on vindriktning

    (compare)

  • Aug 16 14:53

    mcspr on build

    (compare)

  • Aug 16 14:46

    mcspr on dev

    doc: update release shields (compare)

Max Prokhorov
@mcspr:matrix.org
[m]
Hm. I meant the way it is described in the readme. 1st and 2nd mention is PIO... but it is missing from the wiki frontpage
portable ide is indeed the recommended way to build with arduino ide :)
Hamed Taheri
@Hamed_ta_gitlab
what is the non-blocking delay method name?
mcspr
@mcspr:matrix.org
[m]

what is the non-blocking delay method name?

just 'delay'

(should be the same namespace)
Hamed Taheri
@Hamed_ta_gitlab
Screen Shot 2022-05-03 at 17.44.29.png
I am using delay function to make some sound but it interrupts other task when some sound need to play
for example when the light is dimming and I play an alarm sound for high temp, the dimming stops until the sound finishes.
Max Prokhorov
@mcspr:matrix.org
[m]
depends on what you expect. whenever you 'delay()', you jump into system task. when it's done, you go back to the same spot in the code. in case of lights, it is handled in sequence with other loop() functions happened to be registered by us
until the lights code is reached, nothing will happen
Ladislav Ezr jr.
@RedAnon
Sooooo is this project dead? I mean last update in 2019....
Max Prokhorov
@mcspr:matrix.org
[m]
last update 7days ago 🙃
Ladislav Ezr jr.
@RedAnon
https://github.com/xoseperez/espurna/releases so this isn't the official repo? last release 2019-12-31
Max Prokhorov
@mcspr:matrix.org
[m]
yes, last release. not update though, have you noticed nightlies? same thing, if you want something prebuilt
Ladislav Ezr jr.
@RedAnon
but why no stable bump? there seems to be A LOT of commits since the end of 2019
Max Prokhorov
@mcspr:matrix.org
[m]
various reasons. atm I am considering just putting snapshot builds in releases
Ladislav Ezr jr.
@RedAnon
so the nightlies can be considered stable-ish (I mean enough to test them withou bricking the device and having to fiddle around with flashing etc)
Max Prokhorov
@mcspr:matrix.org
[m]
bricking should be a really hard thing to do. logical bugs are not unheard of, but commits mostly stay both buildable and bootable in safe mode for exactly the case when things go wrong
Ladislav Ezr jr.
@RedAnon
nice, thanks
Ladislav Ezr jr.
@RedAnon
Hmm so I've downloaded the latest nighly, run python3 -m http.server on my desktop, telneted into the Shelly 2.5 (the device I've already flashed with the latest stable and it worked like a charm) run ota http://link.to.the.fw and everything seemed ok but after reboothing I get only solid red light on the Shelly and I'm unable to factory reset it (it's hold the button for 10+ sec, right?)
Max Prokhorov
@mcspr:matrix.org
[m]
Right. I followed the python server and telnet update from stock image, but it seems it does not correctly detect the free space in 2m1m version of the firmware. It managed to overwrite itself with my test board
1.14.1 -> nightly needs small img first. nightly -> nightly shows 'not enough space' error correctly
Max Prokhorov
@mcspr:matrix.org
[m]
or espota.py method that (by silently failing) prevents the upgrade process
Ladislav Ezr jr.
@RedAnon
ok, gonna try and flash it the old fashioned way but I need to make some adapter first, the pinout on the shelly 2.5 is too small to fit normal connectors
Ladislav Ezr jr.
@RedAnon
something weird is going on, the latest nighly seems to be crashing again and again after I try to connect to its wifi, the latest stable doesn't do that, what's the latest nightly that can be considered "stable"?
Max Prokhorov
@mcspr:matrix.org
[m]
can you run erase.config while in safe mode and retry connecting?
Ladislav Ezr jr.
@RedAnon
flashed again the nighly over the stable and it works now? no idea what that was
perhaps something on my side
I have another shelly 2.5 I will try to reproduce it
Max Prokhorov
@mcspr:matrix.org
[m]
could you attempt after erasing settings (factory reset) plus the command above? just wondering about the wifi
plus, depends on how the device is powered. wifi part is pretty hungry
(if it is wired via 3v3)
Ladislav Ezr jr.
@RedAnon
yeah the wifi doesn't work well at all also entering the safe mode (5x on-off in the first 60 sec) I can't seem to be able to do it properly
telneted into the shelly and it keeps going [WIFI] State Idle -> Init and [WIFI] State Init -> Fallbeck every once in a while
Max Prokhorov
@mcspr:matrix.org
[m]
for wifi issue related to sdk, I pushed an update for that. hope that helps with AP fallback
...by erase.config. which can also be done with esptool.py erase_region 0xfb000 0x5000 (or 0x1fb000 for 2mb board, or 0x3fb000 for 4mb)
Ladislav Ezr jr.
@RedAnon
I can confirm everything now works and seems stable on "Nightly build (20220602)"
I've spent a few days firmware hopping and I have to say this one is the best. I really like it. Thank you.
Only slightly annoying thing is the missing stable builds (or nightly builds that were declared stable)
Max Prokhorov
@mcspr:matrix.org
[m]
Thanks! Also glad to hear that I did not accidentally break ADE (shelly2.5) driver
Ladislav Ezr jr.
@RedAnon
BTW since there aren't any ESPurna builds for the Shelly Plug S (https://shelly.cloud/products/shelly-plug-s-smart-home-automation-device/) could I take the Tasmota (https://templates.blakadder.com/shelly_plug_S.html) config and somehow build my own FW?
Max Prokhorov
@mcspr:matrix.org
[m]

BTW since there aren't any ESPurna builds for the Shelly Plug S (https://shelly.cloud/products/shelly-plug-s-smart-home-automation-device/) could I take the Tasmota (https://templates.blakadder.com/shelly_plug_S.html) config and somehow build my own FW?

you can, most things are similarly named. MAXCIO_WUK007S preset from code/espurna/config/hardware.h almost matches, just needs additional led

or, YIDIAN_XSSSA05, or VANZAVANZU_SMART_WIFI_PLUG_MINI, ... /searching for CF pin 5/
Ladislav Ezr jr.
@RedAnon
thanks
Dave Portnoy܁ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ
@ryanpeiris_twitter
hi, anyone knows why Alexa does not discover devices runing above firmware version 1.13.2 please..?
2 replies
Sag06
@Sag06
I would like to add a temperature/humidity sensor to a sonoff bridge. I think easiest way could be using serial pins with dupont cables. I plan to compile espurna without serial support. I'm not sure if buying AM2320 module, DHT22 module or another one. Any advice?
2 replies
Sag06
@Sag06
How could I use a sonoff mini with a independent hall sensor attached to switch pins? I want to use a hall sensor to know if a door is open or closed and the relay to power a different device.
12 replies
Timo
@tita2000
Hi everyone, I need a little help with custom.h as follows. I have a Blitzwolf SS4-2 with one led, one button and 2 relays. It works fine in standard configuration with espurna. Now I want to add a button to a not used IO and a dummy relay, so that this new button switches the dummy relay. Is that even possible? Thanks for your help.
2 replies
0xPIT
@0xPIT

Hello Folks, I'm new here!
I use Espruna on a custom smart switch for my Espresso machine some time now. (going to contribute the config)

Now, I want to alexify my window blinds, I've replaced the ESPs in the Etersky WF-CS01 switches already with my custom flashed ones.

Now I'm wondering: Can I somehow map the HUE emulation of brightness to a relay's pulse time somehow?
The idea would be to tell Alexa "Blinds 50%" and they close half.

goldiwro
@goldiwro
Hi everyone,
i need help with my Sonoff RF bridge R2 V2.2. I was able to solder everything according to the instructions and upload the espurna-1.14.1-itead-sonoff-rfbridge-direct.bin software. Unfortunately, the gate still does not see my RF remote. The manual says "This upgrade requires ESPurna to be compiled using the setting RFB_PROVIDER = RFB_PROVIDER_RCSWITCH, so that the firmware is aware that we have to encode / decode the signals in software rather than talk to the EFM8BB1 microcontroller." I don't know if this is already implemented in this software? Should I change anything? and if so, I don't know where. Can anyone help me ?
10 replies
Max Prokhorov
@mcspr:matrix.org
[m]
it would be bound if the button relay flag is set to 2?
aka 2nd relay. appropriate relay action needs to be set for button events as well