Search found 949 matches

by Ath
26 Jul 2021, 17:00
Forum: ESP Easy: General Discussion
Topic: debug the HW serial ...
Replies: 7
Views: 37

Re: debug the HW serial ...

Assuming your read head has a serial connection, it can be directly connected to your usb/serial adapter, so the data will be directly shown in any terminal app you use on your computer. So nothing to connect or configure on the ESP side, I'd think. Wiring should be similar to how you connected the ...
by Ath
26 Jul 2021, 16:13
Forum: ESP Easy: Software
Topic: Deep Sleep for ESP32
Replies: 1
Views: 15

Re: Deep Sleep for ESP32

You should be able to use the 'deepsleep,<time_ms>' command, either from rules or from the Tools page. The sleep time should be specified in milliseconds. What is the maximum time you have achieved so far?
by Ath
26 Jul 2021, 15:35
Forum: ESP Easy: General Discussion
Topic: debug the HW serial ...
Replies: 7
Views: 37

Re: debug the HW serial ...

Only in the weblog, available from the webinterface Tools/Log, as the serial log will have to be disabled to allow uncompromised serial communication. You can connect the read head directly to your serial monitor (usb/serial?) and use some kind of terminal like putty or Microsoft Terminal etc. to se...
by Ath
25 Jul 2021, 17:28
Forum: ESP Easy: General Discussion
Topic: debug the HW serial ...
Replies: 7
Views: 37

Re: debug the HW serial ...

Oh, and you might want to connect the TX of your meter to the RX of the ESP (ESPEasy won't send anything to your meter, so the return signal, ESP-TX to meter-RX, doesn't need a connection).
by Ath
25 Jul 2021, 17:24
Forum: ESP Easy: General Discussion
Topic: debug the HW serial ...
Replies: 7
Views: 37

Re: debug the HW serial ...

Have you disabled the Serial port on the Tools/Advanced page? Then any serial input should start working (but logging to the serial port will be disabled).
by Ath
22 Jul 2021, 20:52
Forum: ESP Easy: Software
Topic: URL Encoded System Variable
Replies: 12
Views: 331

Re: URL Encoded System Variable

Created the pull request here: #3712
by Ath
22 Jul 2021, 17:31
Forum: ESP Easy: Software
Topic: Monitor relay state using Controller Publish – How?
Replies: 12
Views: 193

Re: Monitor relay state using Controller Publish – How?

In that case I'd try to bring the processing of rules to a minimum if you can, as parsing those text files and interpreting the action is rather cpu-intensive. Minimizing that will (sounds logical to me ;)) extend battery-life.
by Ath
22 Jul 2021, 13:24
Forum: ESP Easy: Software
Topic: Monitor relay state using Controller Publish – How?
Replies: 12
Views: 193

Re: Monitor relay state using Controller Publish – How?

GPIO4 and GPIO5 are configured for I2C communication, by default. If you don't need I2C then you can set both I2C pins to None on the Hardware tab. If you need I2C then use another pin ;)
by Ath
22 Jul 2021, 09:25
Forum: ESP Easy: Software
Topic: URL Encoded System Variable
Replies: 12
Views: 331

Re: URL Encoded System Variable

I'm working on fixes for these issues, adding both system variables for %dns1% and %dns2%, and a string function {urlencode:"stuff to/encode"} -> "stuff%20to%2fencode". Still have to update the documentation and will then create a PR for that, later today.
by Ath
21 Jul 2021, 20:50
Forum: ESP Easy: Software
Topic: Monitor relay state using Controller Publish – How?
Replies: 12
Views: 193

Re: Monitor relay state using Controller Publish – How?

You can add that Generic HTTP controller, and select it on your device configuration. The %value% placeholder is replaced with the current value of your device. The advantage is that the rules engine doesn't have to parse the rules files, but executes the compiler code of the controller, so the syst...
by Ath
20 Jul 2021, 10:01
Forum: ESP Easy: Software
Topic: URL Encoded System Variable
Replies: 12
Views: 331

Re: URL Encoded System Variable

Ah, I never used that %dns% variable, and hadn't looked close enough to see it has spaces :oops:

I'll surely have a look at url encoding for commands that would benefit from it, like sendtohttp. And maybe add a function for that.
by Ath
20 Jul 2021, 08:33
Forum: ESP Easy: Software
Topic: URL Encoded System Variable
Replies: 12
Views: 331

Re: URL Encoded System Variable

Dexamenos wrote: 20 Jul 2021, 08:01 You will run into the same problem with e.g. %dns% ...
Hm, don't think %dns% should have a space in the name, it's either an ip address or a hostname/url, and that can't have spaces
by Ath
20 Jul 2021, 08:30
Forum: ESP Easy: Software
Topic: URL Encoded System Variable
Replies: 12
Views: 331

Re: URL Encoded System Variable

Closest I can think of is to add url encoding on arguments for that type of commands, but I'd think that was there already, as this question shouldn't be new. I'll investigate what's there and see if it's generally fixable.
by Ath
19 Jul 2021, 19:28
Forum: ESP Easy: Software
Topic: URL Encoded System Variable
Replies: 12
Views: 331

Re: URL Encoded System Variable

Can you replace that space by an underscore (_)? Spaces in that kind of settings is not endorsed.
by Ath
19 Jul 2021, 19:25
Forum: ESP Easy: General Discussion
Topic: Multiple average readings from sensors
Replies: 3
Views: 193

Re: Multiple average readings from sensors

On a current build (2021-02 and newer IIRC) you can have [var#x] until memory runs out, so adding 10 to all the numerics in the second rule should fix that.
by Ath
18 Jul 2021, 22:13
Forum: ESP Easy: Software
Topic: Pulse counter Domoticz MQTT output misses quotes in svalue.
Replies: 12
Views: 394

Re: Pulse counter Domoticz MQTT output misses quotes in svalue.

PR #3706 is the one with the Domoticz MQTT fix. You will have to checkout that, and build it.

If unsure I can provide a .bin file for download, just name the file you want.
by Ath
18 Jul 2021, 19:46
Forum: ESP Easy: Software
Topic: Pulse counter Domoticz MQTT output misses quotes in svalue.
Replies: 12
Views: 394

Re: Pulse counter Domoticz MQTT output misses quotes in svalue.

You will need to pull the 3706 PR and build that, as separate pull-requests have no relation until there are merged into the main branch (called `mega` in this repository).
So to me it is no surprise you have a negative outcome ;).
Does changing the JSON bool setting make any difference?
by Ath
18 Jul 2021, 13:11
Forum: ESP Easy: Software
Topic: Pulse counter Domoticz MQTT output misses quotes in svalue.
Replies: 12
Views: 394

Re: Pulse counter Domoticz MQTT output misses quotes in svalue.

and Domoticz can't handle this mtqq payload. Hi @Rini52, can you please confirm if a) changing the "JSON bool output without quotes" option (Tools/Advanced page) changes the output sent to Domoticz (it shouldn't, but confirmation would be very nice) b) can you try the build from the PR I ...
by Ath
18 Jul 2021, 10:45
Forum: ESP Easy: General Discussion
Topic: ESPEasy - Home Assistant mqtt not working - What am i doing wrong? - Resolved
Replies: 21
Views: 357

Re: ESPEasy - Home Assistant mqtt not working - What am i doing wrong?

I only have one controller activated on the ESPEasy - HA mqtt. I only change the IP address of the broker to my RPI with stand alone Mosquitto and then i can see the data, so the ESPEasy is sending the correct data. When i connect to HA, HA Mosquitto log show i am connected - New client connected f...
by Ath
18 Jul 2021, 09:42
Forum: ESP Easy: General Discussion
Topic: ESPEasy - Home Assistant mqtt not working - What am i doing wrong? - Resolved
Replies: 21
Views: 357

Re: ESPEasy - Home Assistant mqtt not working - What am i doing wrong?

Have you activated 2 MQTT controllers on 1 ESPEasy unit? That's not a supported setup, only the first enabled MQTT controller will be correctly handled, any second/third MQTT controller is unsupported. Different types of controllers can be combined, f.e. you could use the HA MQTT and Domoticz HTTP c...
by Ath
17 Jul 2021, 21:09
Forum: ESP Easy: Software
Topic: Can't install plugin
Replies: 16
Views: 813

Re: Can't install plugin

Well, with some effort that playground plugin could be adjusted to work with the current ESPEasy sources, but I don't own that type of hardware so it would be quite hard to test. Since the last time the playground plugin was last updated, the time related stuff in ESPEasy has seen quite some changes...
by Ath
16 Jul 2021, 20:30
Forum: ESP Easy: Software
Topic: Pulse counter Domoticz MQTT output misses quotes in svalue.
Replies: 12
Views: 394

Re: Pulse counter Domoticz MQTT output misses quotes in svalue.

It's a bit surprising that it works with the 20210503 release, but not with newer releases. Around that time I did a change adding the JSON Bool with or without quotes feature, could you change that setting to see if that changes behavior, as if it does I have a bug to fix... NB: I have a fix, as th...
by Ath
13 Jul 2021, 22:20
Forum: ESP Easy: Projects / Applications
Topic: Project punching bag
Replies: 8
Views: 410

Re: Project punching bag

First real hurdle to tackle is that ESPEasy doesn't support strings in any variable type...
by Ath
11 Jul 2021, 13:12
Forum: ESP Easy: Software
Topic: Intigrating ESP Easy to Cayenne
Replies: 20
Views: 6114

Re: Intigrating ESP Easy to Cayenne

You have set Controller Publish to a fixed string, so that is the only topic you can reach using MQTT. The default there is this: %sysname%/%tskname%/%valname% where %sysname% is the name of the ESP and %tskname% %valname% the Task and Value name of the task data that is being sent. You can use any ...
by Ath
11 Jul 2021, 12:55
Forum: ESP Easy: General Discussion
Topic: Added i/o with PCF8574 but not working with mqtt?
Replies: 2
Views: 331

Re: Added i/o with PCF8574 but not working with mqtt?

TD-er wrote: 11 Jul 2021, 12:48 Maybe someone else does have a better idea for this?
The PR for MQTT Import that is still open (and could probably use a little TLC) would be able to do that, as there can be events for every configured JSON value, without directly connecting it to a (PCF)GPIO pin ;)
by Ath
09 Jul 2021, 17:04
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 275
Views: 487229

Re: Support for PZEM 004T Energy monitor

The actual issue is that this plugin is not a 'real' I2C plugin, but a serial-based plugin, and the I2CSerial is one of the options in that config. And in this Serial-type plugin, no support for I2C Multiplexer is available. I'm not fully sure that it is possible to multiplex these serial adapters r...
by Ath
08 Jul 2021, 16:45
Forum: ESP Easy: General Discussion
Topic: ESP Easy Firmware Update
Replies: 13
Views: 654

Re: ESP Easy Firmware Update

What is the Operating System platform you are on?
And what browser are you using?
Possibly using a browser plugin that blocks almost everything like scripts and stuff?
by Ath
08 Jul 2021, 16:02
Forum: ESP Easy: Projects / Applications
Topic: output json
Replies: 8
Views: 2222

Re: output json

It looks like the json_decode function that is called in your Raspberry Pi script is expecting "Sensors", and ESPEasy is currently sending "TaskValues" there. Could you check the rest of your script, and change "Sensors" to "TaskValues", to see if that works? ...
by Ath
08 Jul 2021, 15:58
Forum: ESP Easy: General Discussion
Topic: Rain Sensor MH-RD
Replies: 3
Views: 354

Re: Rain Sensor MH-RD

When using the digital output, just configure a Switch task for the GPIO use, and respond as required. When using the Analog output, depending on the range of the output voltage (couldn't find the range in the link) and the ESP board you are using (some boards allow 0-3.3V others only 0-1V on the an...
by Ath
08 Jul 2021, 12:16
Forum: ESP Easy: General Discussion
Topic: Sonoff 4CH automaticall switch On²
Replies: 6
Views: 417

Re: Sonoff 4CH automaticall switch On²

On each Switch task there is a field for that.
by Ath
08 Jul 2021, 11:26
Forum: ESP Easy: General Discussion
Topic: Sonoff 4CH automaticall switch On²
Replies: 6
Views: 417

Re: Sonoff 4CH automaticall switch On²

- Does your Bouton3 have a pull-up resistor (I'd guess it has as it should be one of the built-in buttons) - What De-bounce time have you set on that Switch? It should be at least something like 100msec to properly filter out any spurious spike-signals (that can even originate from the power lines t...
by Ath
07 Jul 2021, 22:35
Forum: ESP Easy: General Discussion
Topic: ESP Easy Firmware Update
Replies: 13
Views: 654

Re: ESP Easy Firmware Update

For the ESP's, like an ESP-01, equiped with 1MB of flash, there are only a few .bin files small enough to allow OTA (Over The Air) updates, so, yes, reflashing using the flasher tool is the regular way of updating. Though not very convenient indeed. To make it less inconvenient, all settings should ...
by Ath
06 Jul 2021, 20:25
Forum: ESP Easy: General Discussion
Topic: which file for OTA update
Replies: 4
Views: 411

Re: which file for OTA update

It may depend on the actual plugins you are using. If they are all in the 'Normal' set of plugins, then you can (obviously) use a 'normal' build, but if any of the plugins you use is in the 'Testing' set, or specifically 'Testing A, B, C or D' then that type of bin file should be used or your setup ...
by Ath
06 Jul 2021, 10:51
Forum: ESP Easy: General Discussion
Topic: Rule parsing issue or cannot be done?
Replies: 14
Views: 583

Re: Rule parsing issue or cannot be done?

It can be caused by another part of your rules, so you might want to check on your syntax for other events/rules files as well.
If possible you can share them here, more eyes that can help you identify the cause.
by Ath
05 Jul 2021, 20:20
Forum: ESP Easy: General Discussion
Topic: ESPeasy configure NTP (France)
Replies: 3
Views: 393

Re: ESPeasy configure NTP (France)

Leaving the NTP Hostname empty is also possible, it will use pool.ntp.org to get the time from a nearby (based on your internet-facing ip-address) ntp server. (This should probably only be set when using a NTP time server on the local network, like some internet routers provide.) Setting DST and Tim...
by Ath
05 Jul 2021, 20:11
Forum: ESP Easy: General Discussion
Topic: Rule parsing issue or cannot be done?
Replies: 14
Views: 583

Re: Rule parsing issue or cannot be done?

I tried the first code you published, and it does seem to work as intended. Have you checked if there are unexpected (control)characters hidden in the script? I copied from the forum, and it does look right, but maybe in your rules file it isn't correct. Using Notepad++ you can use View/Show Symbol/...
by Ath
05 Jul 2021, 15:06
Forum: ESP Easy: General Discussion
Topic: Abnormalities when using an MCP23017 as out-/input
Replies: 32
Views: 892

Re: Abnormalities when using an MCP23017 as out-/input

In my opinion, the same configuration worked with firmware from last year without any problems. I've also already provided the inputs with an additional pull-down resistor, no changes. Any version/release that you know that it is working as expected (without intermittent triggers)? There have been ...
by Ath
05 Jul 2021, 14:01
Forum: ESP Easy: General Discussion
Topic: Abnormalities when using an MCP23017 as out-/input
Replies: 32
Views: 892

Re: Abnormalities when using an MCP23017 as out-/input

What length are the wires between the MCP23017 and your mosfet board?
What other wiring is near those wires (possibly causing cross-talk spikes?)
by Ath
04 Jul 2021, 09:41
Forum: ESP Easy: Software
Topic: ESP32 hangs on boot - randomly
Replies: 8
Views: 569

Re: ESP32 hangs on boot - randomly

Please check the power supply to your ESP, especially the on-board 5V to 3.3V regulator, it may be of poor spec/quality. During boot & starting WiFi the ESP uses quite some current. It will help to add an electrolitic capacitor of 220 to 470 uF close to to board on the 3.3V pin, to stabilize tha...
by Ath
04 Jul 2021, 09:29
Forum: ESP Easy: General Discussion
Topic: Analog Input
Replies: 5
Views: 477

Re: Analog Input

What .bin file do you have installed on that unit? If it has VCC in its name, then the analog input is configured to measure the voltage fed to the ESP, and you can't use it for other purposes.
by Ath
02 Jul 2021, 21:59
Forum: ESP Easy: Hardware
Topic: D1 mini Pro boards (clones) no longer work with 5V external power!? Software issue?
Replies: 49
Views: 1836

Re: D1 mini Pro boards (clones) no longer work with 5V external power!? Software issue?

The only real 'poke' would be to withdraw our wallets, but as those Chinese manufacturers as the only ones that actually provide these ESP8266 units (AFAIK), we don't have much choice, I'm afraid :o
by Ath
02 Jul 2021, 18:55
Forum: ESP Easy: General Discussion
Topic: Power cycle-like ESP reset
Replies: 24
Views: 794

Re: Power cycle-like ESP reset

The trick to get that working would be a relay with a short timer, that can be triggered to off by the ESP, and would restore power in a couple of seconds (10..20), after which the issue would be solved as well, but I'd prefer a software-controlled solution, and possibly a fix in the Arduino base li...
by Ath
02 Jul 2021, 18:50
Forum: ESP Easy: Software
Topic: Values from ioBroker to espeasy via mqtt
Replies: 15
Views: 781

Re: Values from ioBroker to espeasy via mqtt

You're welcome.

You could have a look at PR #3424 to see what I've got cooking for extending the MQTT Import plugin ;)
by Ath
02 Jul 2021, 18:36
Forum: ESP Easy: General Discussion
Topic: Power cycle-like ESP reset
Replies: 24
Views: 794

Re: Power cycle-like ESP reset

There is an open PR #3678 that is intended to resolve such situation of a blocked I2C bus, that could use some real life testing, I presume. You could get a build from the Github Actions page, and see if that resolves your issue.
by Ath
02 Jul 2021, 14:42
Forum: ESP Easy: General Discussion
Topic: Clock#time in a rule
Replies: 4
Views: 466

Re: Clock#time in a rule

Thanks foor the reply but what I wanted is that I have 2 moments in time, say 13:00 and 17:00. On those moments I want to start the timer but only is the Holiday switch is active and if not active, It will not start the timer. On Clock#Time=All,**:** do // every day at **:** hours do If [Holiday#St...
by Ath
02 Jul 2021, 13:12
Forum: ESP Easy: General Discussion
Topic: Clock#time in a rule
Replies: 4
Views: 466

Re: Clock#time in a rule

I think the combination of 'and' and 'or' in a single condition is causing you trouble, and also the %systime% variable can not be compared like that To be sure, you'd better code it like this: On Clock#Time=All,**:** do // every day at **:** hours do If [Holiday#State]=1 and %syssec_d%>=37620 and %...
by Ath
02 Jul 2021, 11:12
Forum: ESP Easy: Software
Topic: Values from ioBroker to espeasy via mqtt
Replies: 15
Views: 781

Re: Values from ioBroker to espeasy via mqtt

But I thought that under the setting "Controller subscrib" I would react with the string %sysname%/Set/# to everything that was sent with the name of the unit followed by /SET/ and the corresponding topic. Apparently it only works if only the topic is sent. What would happen if I ran diff...
by Ath
02 Jul 2021, 11:04
Forum: ESP Easy: General Discussion
Topic: easpeasy and apds9960
Replies: 11
Views: 669

Re: easpeasy and apds9960

Many thx i ordered that kind of switch to be used as a touch switch https://www.amazon.fr/gp/product/B07BVN4CNH/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1 You don't need ESP32 Touch support for that, these act just like a regular switch, giving either a 0 or 1 output on active (configurab...