Search found 5085 matches

by TD-er
25 Jul 2021, 13:07
Forum: ESP Easy: Hardware
Topic: 18650 battery monitoring issues
Replies: 3
Views: 63

Re: 18650 battery monitoring issues

You can also power it using an external power supply, which makes it easier to measure. If you do it with the batteries at a more discharged level, make sure to measure the voltage while the ESP is connected to get some load on the cells. The discharge curve is rather difficult to measure as it may ...
by TD-er
25 Jul 2021, 11:15
Forum: ESP Easy: Hardware
Topic: 18650 battery monitoring issues
Replies: 3
Views: 63

Re: 18650 battery monitoring issues

The ADC plugin supports a 2-point calibration, so you can calibrate it without the need for finetuning a formula. If you're seeing a value < 1023 when the battery is fully charged, you know you have the correct resistor. Most boards like the NodeMCU or Wemos D1 mini already extended the range to 3.3...
by TD-er
24 Jul 2021, 21:57
Forum: ESP Easy: General Discussion
Topic: Make Domoticz read a GPIO pin
Replies: 1
Views: 44

Re: Make Domoticz read a GPIO pin

Can you use the Domoticz MQTT controller?
Then please have a look at this here: https://espeasy.readthedocs.io/en/lates ... #p029-page
by TD-er
24 Jul 2021, 21:28
Forum: ESP Easy: Software
Topic: Can't install plugin
Replies: 16
Views: 814

Re: Can't install plugin

Looks like something that could be useful indeed :)
I will merge it into the mega branch.
by TD-er
24 Jul 2021, 21:24
Forum: ESP Easy: Hardware
Topic: CJMCU-101 Light Analog Light Intensity Sensor
Replies: 28
Views: 793

Re: CJMCU-101 Light Analog Light Intensity Sensor

Well just to temper your hopes and/or expectations... it is a "cache" controller, not a "cash" controller ;) I don't have a lot of cash, that needs a specific controller ;) The "cache controller" is maybe also not the best descriptive name. Its initial use case was to c...
by TD-er
24 Jul 2021, 00:23
Forum: ESP Easy: Software
Topic: Can't install plugin
Replies: 16
Views: 814

Re: Can't install plugin

I can also make a test build for you.
Which binary do you need?
by TD-er
24 Jul 2021, 00:22
Forum: ESP Easy: Hardware
Topic: CJMCU-101 Light Analog Light Intensity Sensor
Replies: 28
Views: 793

Re: CJMCU-101 Light Analog Light Intensity Sensor

Do you have the "Cache controller" in the build you're running?
This one can log the data to flash and you can use a piece of JavaScript to decode it into CSV.
See: https://github.com/letscontrolit/ESPEas ... Controller
by TD-er
22 Jul 2021, 23:39
Forum: ESP Easy: Software
Topic: Monitor relay state using Controller Publish – How?
Replies: 12
Views: 193

Re: Monitor relay state using Controller Publish – How?

2 Euro per Watt annually? What kind of strange meters do you have in there in the NL? :D Watts/p.a. instead kWh? You are kidding me... ;) Anyhow: 1 Watt * 24 * 365 = 8,76 kWh. So, that’s € 0,228. Green power or fossil? Well it is not a metric used by the power company. It is a rule-of-thumb I use m...
by TD-er
22 Jul 2021, 22:10
Forum: ESP Easy: Software
Topic: Monitor relay state using Controller Publish – How?
Replies: 12
Views: 193

Re: Monitor relay state using Controller Publish – How?

I'm not making fun of you, only with you ;)

kWh prices are lower than they have been in NL.
Prices of gas have been rising.

30 ct/kWh is quite a lot more than we have.

It used to be roughly 2 euro per Watt per year (easy number to estimate costs per year of a device).
Now it is slightly less.
by TD-er
22 Jul 2021, 22:01
Forum: ESP Easy: Software
Topic: Monitor relay state using Controller Publish – How?
Replies: 12
Views: 193

Re: Monitor relay state using Controller Publish – How?

Wookbert wrote: 22 Jul 2021, 17:53 No battery here, 230V PSU. But every tenth of a Watt counts on a 24/7/365 scale.
Don't forget to multiply it with the number of installed units running ESPEasy ;)
by TD-er
22 Jul 2021, 21:59
Forum: ESP Easy: Hardware
Topic: CJMCU-101 Light Analog Light Intensity Sensor
Replies: 28
Views: 793

Re: CJMCU-101 Light Analog Light Intensity Sensor

Maybe you should also log the other values of that sensor, so we can see what happens with the IR part. A lot of unknowns and possible causes here - Sensor heats up, causing an offset in the IR reading - Sunlight approaching critical angle where light may cause internal reflections -> amplifying its...
by TD-er
22 Jul 2021, 11:39
Forum: ESP Easy: Hardware
Topic: CJMCU-101 Light Analog Light Intensity Sensor
Replies: 28
Views: 793

Re: CJMCU-101 Light Analog Light Intensity Sensor

Maybe it is possible you are seeing some internal reflection in the sensor? Or maybe your panels (some of them) reach a critical angle where most of the sunlight is not bent inside the panel glass, but reflects? The same can of course happen to the sensor as it does have a flat window if I remember ...
by TD-er
21 Jul 2021, 16:51
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

For 400 kHz you could still use 900 ns as the period is 2.5 usec, so you're below 50%. What do you count as the level above which you stop measuring? And what is the fall-time? (measured at the ESP and at the chip) Can you experiment with a setup with thicker wires? Capacitance is only one explanati...
by TD-er
21 Jul 2021, 15:19
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

Not sure if you will see anything in the logs, but if the I2C hangs you can see this in an I2C scan which will return an error on each possible address. Also for testing you could try to reduce the I2C frequency if you're having doubts on stability at higher frequency. Are you using long cables if y...
by TD-er
21 Jul 2021, 00:10
Forum: ESP Easy: Hardware
Topic: CJMCU-101 Light Analog Light Intensity Sensor
Replies: 28
Views: 793

Re: CJMCU-101 Light Analog Light Intensity Sensor

A test build: https://www.dropbox.com/s/knvq3ejr34m6l ... M.bin?dl=0
I have also included the external RTC support I'm working on.
Not sure if you also have those chips laying around.

At least it should now allow for a higher range in Lux values.
by TD-er
21 Jul 2021, 00:04
Forum: ESP Easy: Hardware
Topic: CJMCU-101 Light Analog Light Intensity Sensor
Replies: 28
Views: 793

Re: CJMCU-101 Light Analog Light Intensity Sensor

You cannot use 2 devices on the same I2C bus with the same address. And I think you are running into some WiFi bug which I'm also working on. In the test build I will make for you it has improved, but tomorrow I will try to fix another issue which I found out today regarding WiFi. So in a few minute...
by TD-er
20 Jul 2021, 19:54
Forum: ESP Easy: Hardware
Topic: CJMCU-101 Light Analog Light Intensity Sensor
Replies: 28
Views: 793

Re: CJMCU-101 Light Analog Light Intensity Sensor

Already fixed it: https://github.com/letscontrolit/ESPEas ... 1787ee1c8c
I can make a test build for you, for tomorrow to test.
Which one do you need?
by TD-er
20 Jul 2021, 19:50
Forum: ESP Easy: Hardware
Topic: CJMCU-101 Light Analog Light Intensity Sensor
Replies: 28
Views: 793

Re: CJMCU-101 Light Analog Light Intensity Sensor

Ah found the issue.

Should be:
const float lux = P074_data->tsl.calculateLuxf(full, ir); // get LUX
by TD-er
20 Jul 2021, 19:43
Forum: ESP Easy: Hardware
Topic: CJMCU-101 Light Analog Light Intensity Sensor
Replies: 28
Views: 793

Re: CJMCU-101 Light Analog Light Intensity Sensor

Just based on the chart, it looks like the computed Lux hits 65535.
So it could also be the conversion hits some kind of overflow. (e.g. value stored in 16 bit unsigned int)
by TD-er
20 Jul 2021, 15:35
Forum: ESP Easy: Hardware
Topic: CJMCU-101 Light Analog Light Intensity Sensor
Replies: 28
Views: 793

Re: CJMCU-101 Light Analog Light Intensity Sensor

Not 10% sure about the 2591, but the 2561 does have issues with high lux values as the IR sensor gets saturated. For the 2561 I have written some "extrapolation" which assumes the last non-clipped IR value (or at least the ratio between the 2 sensor values) to extrapolate the used formula ...
by TD-er
20 Jul 2021, 15:30
Forum: ESP Easy: Software
Topic: URL Encoded System Variable
Replies: 12
Views: 332

Re: URL Encoded System Variable

That DNS value can probably be split into %dns1% and %dns2%.
For sure it needs to be an IP-address, as that simply can't be a domain name for obvious reasons ;)
by TD-er
19 Jul 2021, 19:57
Forum: ESP Easy: General Discussion
Topic: Multiple average readings from sensors
Replies: 3
Views: 194

Re: Multiple average readings from sensors

Do you call "event" from your rules? Or "delay" ???
by TD-er
19 Jul 2021, 19:30
Forum: ESP Easy: Hardware
Topic: CJMCU-101 Light Analog Light Intensity Sensor
Replies: 28
Views: 793

Re: CJMCU-101 Light Analog Light Intensity Sensor

Copitano wrote: 19 Jul 2021, 16:54 @TD-er. Do you appreciate feedback with data form SL2591 for further testing/development?
Sure if you have some indication something can be improved...
by TD-er
19 Jul 2021, 14:50
Forum: ESP Easy: Software
Topic: URL Encoded System Variable
Replies: 12
Views: 332

Re: URL Encoded System Variable

Have you tried wrapping the last command argument in quotes?

Code: Select all

SendToHTTP 1.2.3.4,5000,"/?gpio=5&val=1&sysname=%sysname%"
by TD-er
19 Jul 2021, 11:33
Forum: ESP Easy: Software
Topic: Pulse counter Domoticz MQTT output misses quotes in svalue.
Replies: 12
Views: 397

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

I think you may need an extra define somewhere, to make it compile in Arduino IDE.
Have to look into it.
by TD-er
19 Jul 2021, 11:29
Forum: ESP Easy: General Discussion
Topic: How to setup Espeasy with HWL 8012 breakout board
Replies: 2
Views: 187

Re: How to setup Espeasy with HWL 8012 breakout board

The HWL8012 is included in the Sonoff POW builds if I'm not mistaken. (maybe also in the "energy" builds....)
The POW is a 4 MB unit, so you can also install it on another board with 4M, like Wemos D1 mini or NodeMCU.
by TD-er
19 Jul 2021, 02:52
Forum: ESP Easy: Software
Topic: Can't install plugin
Replies: 16
Views: 814

Re: Can't install plugin

by TD-er
19 Jul 2021, 00:22
Forum: ESP Easy: Software
Topic: Pulse counter Domoticz MQTT output misses quotes in svalue.
Replies: 12
Views: 397

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

About #3705....
How do you compile it?
This fix should not be needed, as it will break when compiling with older core versions.
I will rebase your PR with Ton's fix, so you can checkout just that PR to build your setup, but I will not merge #3705 as it is not the fix you need.
by TD-er
18 Jul 2021, 14:58
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? - Resolved

You can always create JSON format from the rules.
As far as I know, the HA MQTT controller does not send messages in JSON format.
by TD-er
18 Jul 2021, 12:01
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?

If you keep watching the broker via MQTT explorer (great Windows application by the way, use it all the time) you can see the history of everything sent to it. When ESPEasy connects to it, it will send the LWT (Last Will and Testament) message if configured, which will be published by the broker as ...
by TD-er
17 Jul 2021, 21:52
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?

How do you publish to the MQTT broker?
I assume you have some task, which is configured to send to your MQTT controller.
by TD-er
17 Jul 2021, 21:16
Forum: ESP Easy: Software
Topic: Can't install plugin
Replies: 16
Views: 814

Re: Can't install plugin

It is a RTC chip, so better to not have it as plugin?
It also takes a bit more effort to implement in the latest source code.

I do have them here, already on my desk, next to my keyboard, but last 2 weeks were extremely busy here.
by TD-er
17 Jul 2021, 20:15
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?

You can still enter credentials.
The extended checkbox is to allow for longer username and password.
Can you try it with this unchecked and make sure the correct user/pass is filled in.
by TD-er
17 Jul 2021, 19:27
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?

Why have you checked the "extended credentials" ? That's only needed if the username or password does not fit in the normal credentials. And please double check if your topic is the same. Mainly whether it needs a leading slash or not. Preferred is without leading slash, but some still use...
by TD-er
17 Jul 2021, 19:24
Forum: ESP Easy: Software
Topic: No ESP Easy connection to my other WiFi access points with same SSID
Replies: 57
Views: 14474

Re: No ESP Easy connection to my other WiFi access points with same SSID

Today I did merge the WiFi reconnect code, so would be great if you could test a build based on the current 'mega' branch. I will also rebase it into the core 3.0.0 PR, but that's not yet done. I did notice there were still some issues with the WiFi scan. In some situations you could get a callback ...
by TD-er
15 Jul 2021, 12:29
Forum: uPyEasy: Software
Topic: Controll a relay using cmd and gpio from Node Red
Replies: 8
Views: 269

Re: Controll a relay using cmd and gpio from Node Red

The Domoticz MQTT controller does not look at the topic ending with "cmd" That's the OpenHAB MQTT controller. If you don't use Domoticz, I guess using the OpenHAB MQTT controller is a bit more flexible as it does allow for some more (not very elaborate though) commands via MQTT. What is co...
by TD-er
15 Jul 2021, 11:02
Forum: uPyEasy: Software
Topic: Controll a relay using cmd and gpio from Node Red
Replies: 8
Views: 269

Re: Controll a relay using cmd and gpio from Node Red

Are you sure you used the Domoticz MQTT controller?
When using the "cmd" syntax in topics, I think you used the OpenHAB controller.
by TD-er
14 Jul 2021, 23:27
Forum: uPyEasy: Software
Topic: Controll a relay using cmd and gpio from Node Red
Replies: 8
Views: 269

Re: Controll a relay using cmd and gpio from Node Red

Domoticz MQTT + switch...
So my Pavlov reply is to link to this part of the documentation: https://espeasy.readthedocs.io/en/lates ... #p029-page

Have you followed those steps?
by TD-er
14 Jul 2021, 23:24
Forum: ESP Easy: Software
Topic: No ESP Easy connection to my other WiFi access points with same SSID
Replies: 57
Views: 14474

Re: No ESP Easy connection to my other WiFi access points with same SSID

The "periodical scan WiFi" is now set to default disabled as it caused quite a lot of issues for some.
I think I may even remove it.
by TD-er
14 Jul 2021, 23:22
Forum: ESP Easy: Projects / Applications
Topic: Project punching bag
Replies: 8
Views: 410

Re: Project punching bag

The best way to try HTTP calls, is to enter commands via the command field on the Tools page. After sending it, the page will reload and the URL with the command is shown. So I guess what is the simplest is to give a command like this: let,1,12345678 This will set [var#1] to the new value. Since it ...
by TD-er
13 Jul 2021, 23:10
Forum: ESP Easy: Projects / Applications
Topic: Project punching bag
Replies: 8
Views: 410

Re: Project punching bag

You can also do the other way around. Just let them add their name and generate an unique ID for it and send that to ESPEasy as the "user" Then store it in a variable and use that variable in the MQTT topic. So you have the name and ID in the database, so you can also use it the other way ...
by TD-er
13 Jul 2021, 22:50
Forum: ESP Easy: Projects / Applications
Topic: Project punching bag
Replies: 8
Views: 410

Re: Project punching bag

I think you can call the 'let' command via HTTP too, so that's still an option. But it must be a numerical value, not a string. But maybe it is more practical to have the authentication sensor/reader also running on the same ESPEasy node instead of relying on another node/computer to process the &qu...
by TD-er
13 Jul 2021, 22:20
Forum: ESP Easy: Projects / Applications
Topic: Project punching bag
Replies: 8
Views: 410

Re: Project punching bag

How do you switch user? Using RF-ID tags? You can use the RF-ID tag also in topic when publishing as we now support a lot more bits in variables in rules. (52 bits, as we store it as double) So each time a new tag is scanned, you store it in a variable. This variable is used for every publish in the...
by TD-er
13 Jul 2021, 09:56
Forum: ESP Easy: Software
Topic: No ESP Easy connection to my other WiFi access points with same SSID
Replies: 57
Views: 14474

Re: No ESP Easy connection to my other WiFi access points with same SSID

The core 3.0.1 is not yet working fine. I have a pending PR to support core 3.0.1, but it is a bit unpredictable right now as it may work fine on one build and immediately crash on a next build. That's the reason I have not yet merged this PR. The changes for WiFi are in this pending PR and it is al...
by TD-er
12 Jul 2021, 22:55
Forum: ESP Easy: Software
Topic: Domoticz MQTT Helper 0 then 1
Replies: 3
Views: 244

Re: Domoticz MQTT Helper 0 then 1

Just to be sure, have you followed it according to this description? https://espeasy.readthedocs.io/en/lates ... #p029-page

Especially the "Switch Button Type", which should not be a "normal" switch, but a toggle switch.
by TD-er
12 Jul 2021, 21:16
Forum: ESP Easy: Software
Topic: No ESP Easy connection to my other WiFi access points with same SSID
Replies: 57
Views: 14474

Re: No ESP Easy connection to my other WiFi access points with same SSID

Well, I've spent all day today working out other WiFi reconnect issues.
I don't think it is solely the "mesh" that's causing issues here.
by TD-er
12 Jul 2021, 12:38
Forum: ESP Easy: Hardware
Topic: Wrong Analog Values with ADS1115
Replies: 1
Views: 269

Re: Wrong Analog Values with ADS1115

What build are you running?
by TD-er
11 Jul 2021, 18:03
Forum: ESP Easy: Software
Topic: Intigrating ESP Easy to Cayenne
Replies: 20
Views: 6114

Re: Intigrating ESP Easy to Cayenne

The max length of the taskvalue name is 40 characters, so you could store the channel ID.
And of course you should replace the user ID and clientID.
The max. topic length you can store in the settings to publish to is 128 bytes.

Then you could try to send data from a task to the controller.