more than 12 devices
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 18
- Joined: 07 Oct 2019, 20:04
more than 12 devices
I'm using 4 pcf8574 expanders to create 32 "switch input" devices.
But in the device-tab in espeasy there are only 12 devices to configure.
Is there a way to increase the amount of devices?
But in the device-tab in espeasy there are only 12 devices to configure.
Is there a way to increase the amount of devices?
Re: more than 12 devices
You can try defines like these:
https://github.com/letscontrolit/ESPEas ... o.ini#L484
Look for USE_NON_STANDARD_24_TASKS in the code.
Going over 24 tasks will probably lead to a lot of other issues, which have not been tested.
The ESP32 has 32 tasks defined.
https://github.com/letscontrolit/ESPEas ... o.ini#L484
Look for USE_NON_STANDARD_24_TASKS in the code.
Going over 24 tasks will probably lead to a lot of other issues, which have not been tested.
The ESP32 has 32 tasks defined.
Re: more than 12 devices
I am also trying to get more than 12 Devices working.
I set up Arduino IDE 1.6.12 and imported all libs. Compiled it for Wemods D1 Mini and compiling was sucessfull with the standard code an 12 Devices.
My question is: How to setup Arduino IDE with those buildflags to compile it for the 24 Devices!
Thanks!
Phil
I set up Arduino IDE 1.6.12 and imported all libs. Compiled it for Wemods D1 Mini and compiling was sucessfull with the standard code an 12 Devices.
My question is: How to setup Arduino IDE with those buildflags to compile it for the 24 Devices!
Thanks!
Phil
Re: more than 12 devices
I figured it out. Short tutorial here:
1. Set up ArduinoIDE like this: https://www.letscontrolit.com/wiki/inde ... are_Upload
install ESP8266 2.5.2 or higher
2. create a new blank file called platform.local.txt in the folder:
arduino-1.6.12P230 -> Portable -> packages -> esp8266 -> hardware -> esp8266 -> 2.5.2
added following lines to platform.local.txt
3. recompiled .bin file via ArduinoIDE: Sketch -> Export compiled Binary
4. copy the compiled Binary file (.bin) in the same folder where FlashESP8266.exe is located
5. Do a Factory Reset of the ESPeasy Node, if you have used it before (Tools -> Factory Reset -> Factory Reset)
6. Use FlashESP8266.exe to upload the Firmware
1. Set up ArduinoIDE like this: https://www.letscontrolit.com/wiki/inde ... are_Upload
install ESP8266 2.5.2 or higher
2. create a new blank file called platform.local.txt in the folder:
arduino-1.6.12P230 -> Portable -> packages -> esp8266 -> hardware -> esp8266 -> 2.5.2
added following lines to platform.local.txt
Code: Select all
compiler.c.extra_flags=-DUSE_NON_STANDARD_24_TASKS -DTASKS_MAX=24
compiler.c.elf.extra_flags=-DUSE_NON_STANDARD_24_TASKS -DTASKS_MAX=24
compiler.S.extra_flags=-DUSE_NON_STANDARD_24_TASKS -DTASKS_MAX=24
compiler.cpp.extra_flags=-DUSE_NON_STANDARD_24_TASKS -DTASKS_MAX=24
compiler.ar.extra_flags=
compiler.objcopy.eep.extra_flags=
compiler.elf2hex.extra_flags=
4. copy the compiled Binary file (.bin) in the same folder where FlashESP8266.exe is located
5. Do a Factory Reset of the ESPeasy Node, if you have used it before (Tools -> Factory Reset -> Factory Reset)
6. Use FlashESP8266.exe to upload the Firmware
Re: more than 12 devices
Brilliant! Tried it, and I got 24 x tasks. Have been looking for this change in ESPEasy for a long time.
I got one compile warning: "WARNING: library LiquidCrystal_I2C claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp8266 architecture(s)", but it still compiled.
My flash settings needed to be (Wemos D1 mini pro - the old version):
I got one compile warning: "WARNING: library LiquidCrystal_I2C claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp8266 architecture(s)", but it still compiled.
My flash settings needed to be (Wemos D1 mini pro - the old version):
Re: more than 12 devices
Spoke too soon. Doesn't seem like rules are working.
It's working on an old mega-20180801. I'm unsure if it's the new version (ESPEasy_mega-20191028 / 20104 - Mega / ESP82xx Core 2_5_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.1.2) or something else I've done (wrong?)
Code: Select all
On MQTT#Connected do
Publish %sysname%/IP,%ip%
Publish IP/%sysname%,%ip%
timerSet,1,300
endon
On Rules#Timer=1 do
Publish %sysname%/IP,%ip%
Publish %sysname%/Uptime,%c_m2dhm%(%uptime%)
Publish IP/%sysname%,%ip%
Publish Uptime/%sysname%,%c_m2dhm%(%uptime%)
timerSet,1,300
endon
Re: more than 12 devices
Just enabled debug log, it does fire the rule but nothing actually get's published. Will dig deeper
Re: more than 12 devices
Just to be sure it is not your bug, or maybe one of mine.
You could test with the build (or sources) of 20190928.
I changed a lot last month regarding the rules and there have been some reports of rules misbehaving.
You could test with the build (or sources) of 20190928.
I changed a lot last month regarding the rules and there have been some reports of rules misbehaving.
Re: more than 12 devices
That's the version I'm currently running on, with the 24 task modification. Serial log tells me:
Code: Select all
5293 : MQTT : Intentional reconnect
5332 : MQTT : Connected to broker with client ID: esptest_25
5335 : Subscribed to: esptest/#
5338 : EVENT: MQTT#Connected
5382 : ACT : Publish esptest/IP,192.168.1.156
5394 : Command: publish
5403 : ACT : Publish IP/esptest,192.168.1.156
5414 : Command: publish
5419 : ACT : timerSet,1,300
5427 : Command: timerset
Re: more than 12 devices
Are you sure it is the sources from 20190928? (a month ago)mrwee wrote: ↑29 Oct 2019, 22:04 [...]
That's the version I'm currently running on, with the 24 task modification. Serial log tells me:
[...]
but all I get on my mosquitto broker is the LWT message of "Connected" (Controller set to HomeAssistant / openHAB). Serial log is set to "Debug dev" but it doesn't log that much.
If you fetch the code, you will get the code from 20191028 (yesterday)
Re: more than 12 devices
No, sorry. Misread your post. Will check with 20190928 not 20191028 .
It won't be until sometime this weekend, as I'm traveling the next couple of days.
It won't be until sometime this weekend, as I'm traveling the next couple of days.
Who is online
Users browsing this forum: Bing [Bot] and 49 guests