Search found 5530 matches

by TD-er
25 Oct 2021, 15:15
Forum: ESP Easy: Hardware
Topic: Firmware Support for L298H Bridge Boards?
Replies: 5
Views: 137

Re: Firmware Support for L298H Bridge Boards?

Softstart/stop is not yet present, but you can start/stop it from the rules. So the reverse after N seconds could be easy to do in the rules by setting a timer. I guess if you need it for dosing, it is better to use a pulse counter on the motor shaft instead of time based. And that's what is already...
by TD-er
24 Oct 2021, 22:47
Forum: ESP Easy: General Discussion
Topic: how to build plugins from playground?
Replies: 4
Views: 47

Re: how to build plugins from playground?

Should be:

Code: Select all

Device[deviceCount].VType              = Sensor_VType::SENSOR_TYPE_DUAL;
by TD-er
24 Oct 2021, 10:29
Forum: ESP Easy: Software
Topic: I2C bus possible problem.
Replies: 5
Views: 571

Re: I2C bus possible problem.

Great, so the reproduction of the issue has been made even harder :)
by TD-er
23 Oct 2021, 23:31
Forum: ESP Easy: Projects / Applications
Topic: Transferring a Byte via SPI
Replies: 3
Views: 67

Re: Transferring a Byte via SPI

I would go for the smallest, as you simply won't have to do a lot in the plugin. P006 BMP085 is a nice small one to start with to see how quickly you can get it to compile with your own changes (e.g. start with renaming the plugin and assigning a new plugin ID to it for starters) To see one of the s...
by TD-er
23 Oct 2021, 23:00
Forum: ESP Easy: Projects / Applications
Topic: Transferring a Byte via SPI
Replies: 3
Views: 67

Re: Transferring a Byte via SPI

Currently the only way how SPI is used in ESPEasy is via plugins for specific hardware. So the best way here would be to write a very basic plugin to support your potentiometer chip and accept commands for it (implemented in PLUGIN_WRITE call in the plugin) The reason why I think it should be a plug...
by TD-er
23 Oct 2021, 22:04
Forum: ESP Easy: Software
Topic: wemos I2C mcp23017
Replies: 34
Views: 862

Re: wemos I2C mcp23017

I added the code tags on the rules in his post to improve readability.
by TD-er
23 Oct 2021, 02:18
Forum: ESP Easy: Software
Topic: maybe easier to use Dashboard replacement
Replies: 11
Views: 255

Re: Easy to use Dashboard replacement

The dashboard files need to be called .esp indeed, as they will be dealt with a bit different. I have not yet looked at the code of this dashboard, so I assumed it may have been a HTML file with JavaScript in it. But if it needs the typical dashboard functionality, you probably need to rename it to ...
by TD-er
23 Oct 2021, 02:03
Forum: ESP Easy: Software
Topic: maybe easier to use Dashboard replacement
Replies: 11
Views: 255

Re: Easy to use Dashboard replacement

Try renaming it to .htm

Maybe I could also add the proper content-type for .html files too when saving it, but I think there was a reason not to do it like that.
Not sure right now why not though.
by TD-er
22 Oct 2021, 22:23
Forum: ESP Easy: General Discussion
Topic: Counter (Domoticz) displays alternating right value and zer0
Replies: 6
Views: 132

Re: Counter (Domoticz) displays alternating right value and zer0

Don't worry... Just think of why I thought of it to check for other nodes running with the same IDX :)
by TD-er
22 Oct 2021, 19:27
Forum: ESP Easy: General Discussion
Topic: Counter (Domoticz) displays alternating right value and zer0
Replies: 6
Views: 132

Re: Counter (Domoticz) displays alternating right value and zer0

Hmm strange it actually sends 2 values to the MQTT broker.
Do you run anything from the rules too?

Is it possible another node in your network is also sending something using the same IDX?
This can be checked by simply turning off this node, to see if it still gets updated.
by TD-er
22 Oct 2021, 10:27
Forum: ESP Easy: General Discussion
Topic: Counter (Domoticz) displays alternating right value and zer0
Replies: 6
Views: 132

Re: Counter (Domoticz) displays alternating right value and zer0

Can you show the task configuration you are using?
What value do you send to Domoticz?
Sounds like you didn't receive the minimal number of pulses in the last minute (either 1 or 2?)
by TD-er
22 Oct 2021, 10:24
Forum: ESP Easy: Hardware
Topic: Firmware Support for L298H Bridge Boards?
Replies: 5
Views: 137

Re: Firmware Support for L298H Bridge Boards?

Working on it: https://github.com/letscontrolit/ESPEasy/pull/3658 I have actually used the last board you showed for my development. The idea is to use motors with some kind of encoder to be able to use commands to move to a position, or move till you hit a limit switch. Also allows speed control, b...
by TD-er
21 Oct 2021, 23:22
Forum: ESP Easy: Software
Topic: wemos I2C mcp23017
Replies: 34
Views: 862

Re: wemos I2C mcp23017

You can force the state of all pins to a known state at reboot, by simply acting on the system#boot event (see: https://espeasy.readthedocs.io/en/latest/Rules/Rules.html?highlight=System%23Boot#system-events ) If you then set the pins to known state, you at least know things will not be running unat...
by TD-er
21 Oct 2021, 20:25
Forum: ESP Easy: Projects / Applications
Topic: Data not flowing to Rpi - Error: Failed to connect to broker
Replies: 16
Views: 360

Re: Data not flowing to Rpi - Error: Failed to connect to broker

Why is the connection refused?
The MQTT code in ESPEasy hasn't changed a lot in the last 2 years. (at least the MQTT client library)
by TD-er
20 Oct 2021, 23:56
Forum: ESP Easy: Projects / Applications
Topic: Data not flowing to Rpi - Error: Failed to connect to broker
Replies: 16
Views: 360

Re: Data not flowing to Rpi - Error: Failed to connect to broker

Make sure there is no listener definition in another file in the conf.d folder. The configuration does load all files in that folder, just as if they were all concatenated into a single file. However I don't know what will happen is the listener definition is added multiple times for the same port. ...
by TD-er
20 Oct 2021, 23:47
Forum: ESP Easy: Software
Topic: wemos I2C mcp23017
Replies: 34
Views: 862

Re: wemos I2C mcp23017

The Monitor command should only read the state of all pins, then apply a mask and determine if a state has changed. But it could be that the pin mode differs from what is set in the chip and maybe there is the cause of what you're seeing. Have to check the code for it, but not sure if I can manage t...
by TD-er
20 Oct 2021, 09:58
Forum: ESP Easy: Software
Topic: wemos I2C mcp23017
Replies: 34
Views: 862

Re: wemos I2C mcp23017

The command you try to give does not have a - in the command.
See: https://espeasy.readthedocs.io/en/lates ... al-mcpgpio
by TD-er
19 Oct 2021, 23:16
Forum: ESP Easy: General Discussion
Topic: How do i set a var# from the dashboard
Replies: 14
Views: 296

Re: How do i set a var# from the dashboard

N.B. after submitting the command from the tools page command field, you can see how it was formatted in the URL bar.
This can be used as a HTTP GET call.
Not sure how you should do it in JavaScript, to make sure the page doesn't show the result of this call, but I guess it shouldn't be too hard.
by TD-er
19 Oct 2021, 16:13
Forum: ESP Easy: Software
Topic: several restarts with different reasons.
Replies: 6
Views: 165

Re: several restarts with different reasons.

Not sure.
Maybe you can somehow deduct it from the timing stats (which have to be manually enabled in the tools->advanced page, if included in the build anyway)
by TD-er
19 Oct 2021, 15:46
Forum: ESP Easy: Software
Topic: several restarts with different reasons.
Replies: 6
Views: 165

Re: several restarts with different reasons.

How long are the cables from the ESP to the rotary encoder? How is it electrically wired? (pull-up resistors etc.) Does it sometimes count while there is no motion of the rotary encoder? I do suspect it may receive noise on either one of the A/B inputs which causes it to trigger the interrupt code q...
by TD-er
19 Oct 2021, 13:45
Forum: ESP Easy: Software
Topic: several restarts with different reasons.
Replies: 6
Views: 165

Re: several restarts with different reasons.

Can you try to run it on USB with a terminal application connected to it to fetch serial output? For example using Putty via the comport Windows assigns to it. Baudrate = 115200. Given you're see exceptions, I guess it may be related to the rotary encoder. Can you describe a bit more what is configu...
by TD-er
19 Oct 2021, 10:01
Forum: ESP Easy: Projects / Applications
Topic: In-soil/Underground application of SHT1x & DS18B20
Replies: 13
Views: 830

Re: In-soil/Underground application of SHT1x & DS18B20

What is the situation on how the sensors are mounted? Is it a straight line down? Would it be possible to use PVC tubes with the sensors glued to the wall of the tube and then the tube glued at the end? Even if you need to extend it a bit, you could use pieces of PVC tube, so you can glue in the sen...
by TD-er
18 Oct 2021, 21:36
Forum: ESP Easy: Hardware
Topic: Konfig for AZ-Touch with ESP32?
Replies: 7
Views: 257

Re: Konfig for AZ-Touch with ESP32?

I assume it is this display: https://www.hwhardsoft.de/english/projects/arduitouch-esp/ On that page you have the schematics: Schematic AZ-Touch V01-03 Looks like the backlight is a bit different between ESP8266 and ESP32. So for ESP32 you need to look for "LED32" and for ESP8266 the "...
by TD-er
18 Oct 2021, 21:14
Forum: ESP Easy: Software
Topic: MQTT Import topic subscribe fields too short
Replies: 16
Views: 357

Re: MQTT Import topic subscribe fields too short

Nope, does not (yet) exist... But I think the %strN% syntax analog to %vN% would be a good idea.
The string variant for "let" would then be like "letstr".
by TD-er
18 Oct 2021, 14:23
Forum: ESP Easy: Software
Topic: delay gpio to Switch
Replies: 9
Views: 269

Re: delay gpio to Switch

The Sonoff 4ch unit is using an ESP8285 as far as I know. This is important as it can then use GPIO pins for button/relay which were otherwise used by the SPI flash chip. So make sure to check it is indeed using the ESP8285 and use that build, or else you may not be able to use the GPIO pins unavail...
by TD-er
18 Oct 2021, 09:42
Forum: ESP Easy: Projects / Applications
Topic: Data not flowing to Rpi - Error: Failed to connect to broker
Replies: 16
Views: 360

Re: Data not flowing to Rpi - Error: Failed to connect to broker

Well, you better do it step-by-step.
So first update the Mosquitto settings to allow connections from other than localhost.
Then update ESPEasy.
by TD-er
18 Oct 2021, 09:40
Forum: ESP Easy: Software
Topic: delay gpio to Switch
Replies: 9
Views: 269

Re: delay gpio to Switch

code tags instead of quote tags sorry! My question is about the lines before the AsyncEvent Just between those two lines gpio,%eventvalue2%,=![Relay%eventvalue1%#State] if [Relay%eventvalue1%#State]=1 // !!!!!!!! "Relay" is the switch of the "gpio" I do see some kind of locking ...
by TD-er
18 Oct 2021, 09:21
Forum: ESP Easy: Software
Topic: MQTT Import topic subscribe fields too short
Replies: 16
Views: 357

Re: MQTT Import topic subscribe fields too short

One other thing...
It looks like the hostname you're using is not on your local network.
Thus better increase the timeout from 100 msec to 500 or more.
by TD-er
17 Oct 2021, 23:26
Forum: ESP Easy: Software
Topic: MQTT Import topic subscribe fields too short
Replies: 16
Views: 357

Re: MQTT Import topic subscribe fields too short

Not without changing the code of this plugin.
But maybe you can for example set something in a system variable, like you're doing in the %sysname%?
See the sysvars page for inspiration.
by TD-er
17 Oct 2021, 23:23
Forum: ESP Easy: Software
Topic: delay gpio to Switch
Replies: 9
Views: 269

Re: delay gpio to Switch

I changed your message to make the rules be in code tags instead of quote tags, for readability. I don't see the rules part for the relayonoff. You are calling that event using asyncevent, but you have to keep in mind that those are being queued. So by the time those are being executed, the other va...
by TD-er
17 Oct 2021, 11:57
Forum: ESP Easy: General Discussion
Topic: What are the best WiFi settings?
Replies: 3
Views: 276

Re: What are the best WiFi settings?

I think you are already at the "optimal" settings for what can be tweaked in ESPEasy. One thing you can do, is set "extra WiFi scan loops" to 1 to test if it will see more nodes. The scan period per channel is rather short. It seems to switch to a new channel as soon as a few APs...
by TD-er
16 Oct 2021, 22:36
Forum: ESP Easy: General Discussion
Topic: Rules not working 20201227 and later
Replies: 10
Views: 392

Re: Rules not working 20201227 and later

What could have helped here is that maybe you did save the rules again using one of the later versions? I remember that the JavaScript used to save the rules, also has some basic checks in it like proper (or at least consequent) line endings. So it could have been something Thomas already suggested,...
by TD-er
16 Oct 2021, 19:07
Forum: ESP Easy: General Discussion
Topic: Rules not working 20201227 and later
Replies: 10
Views: 392

Re: Rules not working 20201227 and later

Hmm at first sight, I don't see what may be wrong here.
Can you add some calls to logitem to help debugging?
For example, does it even enter On top#level Do
?
by TD-er
16 Oct 2021, 01:01
Forum: ESP Easy: Software
Topic: I need help with my dashboard
Replies: 10
Views: 477

Re: I need help with my dashboard

Cool :)
by TD-er
15 Oct 2021, 15:33
Forum: ESP Easy: Software
Topic: I need help with my dashboard
Replies: 10
Views: 477

Re: I need help with my dashboard

Actually, I have no idea as I have not yet done a lot with this dashboard functionality. Also I don't speak JavaScript very well. As soon as Stackoverflow is down, I completely loose my ability to do anything JavaScript related. I have programmed in a lot of computer languages, but somehow I never g...
by TD-er
15 Oct 2021, 12:50
Forum: ESP Easy: Software
Topic: I need help with my dashboard
Replies: 10
Views: 477

Re: I need help with my dashboard

That's looking good.
Can I use your code to add it to the ReadTheDocs documentation as an example for the dashboard feature?
by TD-er
15 Oct 2021, 08:31
Forum: ESP Easy: Software
Topic: wemos I2C mcp23017
Replies: 34
Views: 862

Re: wemos I2C mcp23017

In your opening post you mention "reboots".
Is that a power cycle or a software reboot (or crash) ?
by TD-er
14 Oct 2021, 21:17
Forum: ESP Easy: Software
Topic: wemos I2C mcp23017
Replies: 34
Views: 862

Re: wemos I2C mcp23017

Please post your rules

For example, what do you have to start immediately at boot?
by TD-er
14 Oct 2021, 18:59
Forum: ESP Easy: Software
Topic: wemos I2C mcp23017
Replies: 34
Views: 862

Re: wemos I2C mcp23017

"20111" is not really the version of the software. More like the "revision" of the settings file.

Please tell the build file name (shown on the sysinfo page)
The "20111" sounds a bit old to be honest.
by TD-er
14 Oct 2021, 10:30
Forum: ESP Easy: Software
Topic: Switch ESP via MQTT in sleep Mode
Replies: 22
Views: 719

Re: Switch ESP via MQTT in sleep Mode

Yep it should occur in the log. If it doesn't, then the event is not being processed. You can test it by generating the event yourself in the command field on the tools page: event,"remote_sleep#SleepStatus=123,456" Or without any eventvalues, so you can see the difference in the logs: eve...
by TD-er
14 Oct 2021, 08:55
Forum: ESP Easy: Software
Topic: Switch ESP via MQTT in sleep Mode
Replies: 22
Views: 719

Re: Switch ESP via MQTT in sleep Mode

It is better to have text like stuff being posted in [ code ] tags, as that's searchable and easier to reply to. So no need to post screenshots where it is only about the text shown. Also I don't see what you're trying to tell in that screenshot as I don't see a logentry sent from the rules, or am I...
by TD-er
13 Oct 2021, 22:34
Forum: ESP Easy: Hardware
Topic: Sonoff S31
Replies: 1
Views: 259

Re: Sonoff S31

I just had to check if this module was even running an ESP cpu. But it appears Tasmota can also run on it, so I guess so :) See also here: https://tasmota.github.io/docs/devices/Sonoff-S31/ Especially to read the warnings over there. I think 1 Amp is not that much, so even those Sonoffs should be ab...
by TD-er
13 Oct 2021, 21:49
Forum: ESP Easy: Software
Topic: Switch ESP via MQTT in sleep Mode
Replies: 22
Views: 719

Re: Switch ESP via MQTT in sleep Mode

You are checking for %eventvalue2%. Can you just try to log the values (without calling deepsleep)? See the "logentry" command. (see: https://espeasy.readthedocs.io/en/latest/Reference/Command.html ) Your code (from the screenshot): on remote_sleep#Sleepstatus do if %eventvalue2% = 1 deeps...
by TD-er
13 Oct 2021, 21:43
Forum: ESP Easy: Software
Topic: wemos I2C mcp23017
Replies: 34
Views: 862

Re: wemos I2C mcp23017

What build are you using?
I recently added code to detect an I2C bus freeze.
I wonder if that may have changed this behavior.

Also are you running on ESP32 or ESP8266?
by TD-er
13 Oct 2021, 16:47
Forum: ESP Easy: Software
Topic: dark mode css
Replies: 18
Views: 646

Re: dark mode css

The icons are just unicode characters.
So they actually are also just "text"
by TD-er
13 Oct 2021, 14:21
Forum: ESP Easy: Software
Topic: dark mode css
Replies: 18
Views: 646

Re: dark mode css

To make a pull request, you indeed need to fork the project. - Fork project - Checkout your fork of the project on your computer - Create a new branch (e.g. "feature/CSSdark") - Checkout local branch on your PC - Apply your changes - Make a commit, with a descriptive text, where you includ...
by TD-er
13 Oct 2021, 09:08
Forum: ESP Easy: General Discussion
Topic: Virtual sensor in Domoticz for BME680
Replies: 14
Views: 3842

Re: Virtual sensor in Domoticz for BME680

You can have multiple instances of the same task. For example when using the Dallas plugin, one often has multiple Dallas 1Wire sensors. To distinguish among various tasks, one has to make an unique combination of taskname#taskvaluename In the rules every occurence matching [taskname#taskvaluename] ...
by TD-er
13 Oct 2021, 00:16
Forum: ESP Easy: General Discussion
Topic: WT32-ETH01 with ESP_Easy_mega_20210615_custom_ESP32_4M316k_ETH
Replies: 4
Views: 334

Re: WT32-ETH01 with ESP_Easy_mega_20210615_custom_ESP32_4M316k_ETH

Which build are you now using?
Or did you make a build based on the latest code base in the mega branch?
by TD-er
12 Oct 2021, 21:21
Forum: ESP Easy: Software
Topic: dark mode css
Replies: 18
Views: 646

Re: dark mode css

chromo23 wrote: 12 Oct 2021, 21:15 Very good idea...
I´ll do my best but remember i really don´t know what i am doing :P
What makes you think we know? ;)
by TD-er
12 Oct 2021, 20:42
Forum: ESP Easy: Software
Topic: dark mode css
Replies: 18
Views: 646

Re: dark mode css

Would be nice if you can later also give the diff of both CSS's, so we can "patch" the values to switch between normal and dark mode theme without the need to include 2 full CSS files.