Luxmeter BH1750 reporting time increase

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
insippo
Normal user
Posts: 36
Joined: 28 Sep 2016, 09:01
Location: Estonia, Pärnu
Contact:

Luxmeter BH1750 reporting time increase

#1 Post by insippo » 21 Mar 2017, 14:43

How to set reporting time. At the moment luxmeter report every 20 min. This time is too long.
Some Raspeberry Pi's, Arduinos, Esp8266, solar panels 1500w, 2 lakes,6 ha fields, German shepherd and more

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Luxmeter BH1750 reporting time increase

#2 Post by Shardan » 21 Mar 2017, 21:29

Hello

there are two parameters which influence the reporting time inside ESPEasy.

- open the ESPEasy website.
- go to "Config"
- locate "Sensor Delay" field.

Sensor Delay says how often ESPEasy "talks" to domotics, openHAB, FEWHM, Thingspeak or whatever.

- go to "Devices"
- click "Edit" for the BH1750 device,
- locate the "Delay" field

This field says how often the sensor itself is read from ESPEasy.

Both fields represent the time in seconds between the events. A "Sensor Delay" of 120 says that the whole ESP data (All connected Sensors)
are send every two minutes to a server.
A "Delay" of 60 inside the task of sensor X says that sensor X is read every minute by ESPEasy.

Remember that some home control servers may have their own delay time on top of these settings.

Regards
Shardan
Regards
Shardan

User avatar
insippo
Normal user
Posts: 36
Joined: 28 Sep 2016, 09:01
Location: Estonia, Pärnu
Contact:

Re: Luxmeter BH1750 reporting time increase

#3 Post by insippo » 22 Mar 2017, 07:07

Thank you.
I have Domoticz. After work i check.I do not remember what i write to this box. Maybe sirgnal is too low. This sensor located inside this box. Image . Wifi ap is 140m. I check signal with cellular and all was okay. I do not know more at the moment. I use esp-12f. Okay. After work i check and write what and how.
Some Raspeberry Pi's, Arduinos, Esp8266, solar panels 1500w, 2 lakes,6 ha fields, German shepherd and more

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Luxmeter BH1750 reporting time increase

#4 Post by Shardan » 22 Mar 2017, 20:40

Hello again,

those Wiska boxes are quite fine for this, no metal blocking WiFi.

you may check signal easily - can you connect to the ESP's webpage over that distance? Signal strength?

If the signal is too low there might be a possibility: There is a new edition of the ESP-07, the ESP-07S

http://www.ebay.de/itm/ESP-07S-ESP8266- ... Sw44BYUv8n

This is a ESP-07 in a smaller case (even smaller as the ESP-12E/F) and bigger memory. It has no internal antenna,
just an outlet. Use the 4096-er .bin file, same as f0r ESP-12E/F and NodeMCU 1.0.
You have to use an external antenna and a short cable with I_PEX connector like this one:

http://www.ebay.de/itm/6dBi-2-4GHz-Wire ... Sw6n5XtAER

This gives more distance then the built in antenna.

Regards
Shardan
Regards
Shardan

User avatar
insippo
Normal user
Posts: 36
Joined: 28 Sep 2016, 09:01
Location: Estonia, Pärnu
Contact:

Re: Luxmeter BH1750 reporting time increase

#5 Post by insippo » 23 Mar 2017, 07:02

Thank from answer. I bought from Aliexpress esp-07. Ali is cheaper than Ebay. Yesterday i check wifi signal strenght in home. If i close this esp to box, signal was -66db. If box is open signal is -54db. I use this junction box for esp in same place outdoor and working. Measure battery voltage. I want with this luxmeter switch on my electric boiler if sun is shine. I have only 4 panels and 1060w at the moment. With luxmeter is cheap switch on or off this. No need "expensive" DC ammeter and something from Mysensors. I use signal strenght from this esp to Domoticz dashboard too. Today i test again.
Question. It is possible increase esp-12f wifi signal if i solder 2,4GHz antenna or longer wires for antenna ?
Image
Some Raspeberry Pi's, Arduinos, Esp8266, solar panels 1500w, 2 lakes,6 ha fields, German shepherd and more

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Luxmeter BH1750 reporting time increase

#6 Post by Shardan » 23 Mar 2017, 15:54

insippo wrote: 23 Mar 2017, 07:02 Thank from answer. I bought from Aliexpress esp-07. Ali is cheaper than Ebay. Yesterday i check wifi signal strenght in home. If i close this esp to box, signal was -66db. If box is open signal is -54db. I use this junction box for esp in same place outdoor and working. Measure battery voltage. I want with this luxmeter switch on my electric boiler if sun is shine. I have only 4 panels and 1060w at the moment. With luxmeter is cheap switch on or off this. No need "expensive" DC ammeter and something from Mysensors. I use signal strenght from this esp to Domoticz dashboard too. Today i test again.
Question. It is possible increase esp-12f wifi signal if i solder 2,4GHz antenna or longer wires for antenna ?
Image
hello Insippo,

basically it should be possible to get a better signal from the ESP-12F. I assume just a wire is not much better then the printed antenna, both are more or less same.
What might work is to cut off the printed antenna at the "foot" and connect an antenna adaptor ("pigtail"), a coaxial cable the wire to the antenna connection and the shield to ground. Then you may use a standard WiFi antenna with the pigtail cable.
Be aware: High frequencies have a strange and sometimes awkward set of their very own rules. This may work or not, it might damage the ESP 8266 too..

From what i found on the net i'd definitly prefer to use a ESP-07S ( i know, takes some time until Aliexpress delivers.. :) )

Regards
Shardan
Regards
Shardan

User avatar
insippo
Normal user
Posts: 36
Joined: 28 Sep 2016, 09:01
Location: Estonia, Pärnu
Contact:

Re: Luxmeter BH1750 reporting time increase

#7 Post by insippo » 23 Mar 2017, 18:23

I have antenna with pigtail. Small. I bought from Ali esp-07 but receivng time is long. Easp easy working good with luxmeter and with signal strenght -82db.
Some Raspeberry Pi's, Arduinos, Esp8266, solar panels 1500w, 2 lakes,6 ha fields, German shepherd and more

User avatar
insippo
Normal user
Posts: 36
Joined: 28 Sep 2016, 09:01
Location: Estonia, Pärnu
Contact:

Re: Luxmeter BH1750 reporting time increase

#8 Post by insippo » 26 Mar 2017, 17:25

Working today. Wifi signal is low. I have question about from deep sleep mode. If i set report time 300 sec. Esp-12f goes to sleep and wake up after 300 sec and connect to wifi network and send data ?
Some Raspeberry Pi's, Arduinos, Esp8266, solar panels 1500w, 2 lakes,6 ha fields, German shepherd and more

CoolWombat
Normal user
Posts: 30
Joined: 31 Oct 2015, 08:00

Re: Luxmeter BH1750 reporting time increase

#9 Post by CoolWombat » 26 Mar 2017, 21:55

Yes. I've got some temperature/humidity sensors going into deep sleep and sending data every 10 minutes.

Cheers!

User avatar
insippo
Normal user
Posts: 36
Joined: 28 Sep 2016, 09:01
Location: Estonia, Pärnu
Contact:

Re: Luxmeter BH1750 reporting time increase

#10 Post by insippo » 27 Mar 2017, 06:42

I use esp-12f. I need to connect GPIO-16 with the RST pin ?
Some Raspeberry Pi's, Arduinos, Esp8266, solar panels 1500w, 2 lakes,6 ha fields, German shepherd and more

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Luxmeter BH1750 reporting time increase

#11 Post by Shardan » 27 Mar 2017, 09:33

Yep, right.

The GPIO16 sends a "Wake Up" to the reset.
If this connection is missed, the ESP would start once and then sleep forever ;)

Regards
Shardan
Regards
Shardan

User avatar
insippo
Normal user
Posts: 36
Joined: 28 Sep 2016, 09:01
Location: Estonia, Pärnu
Contact:

Re: Luxmeter BH1750 reporting time increase

#12 Post by insippo » 27 Mar 2017, 14:29

I connect GPIO16 to REST. In Main Settings window Sensor delay needed to set 600=10 min and then sleep mode. In Devices tab edit sensor : Delay need set 0 ?
Some Raspeberry Pi's, Arduinos, Esp8266, solar panels 1500w, 2 lakes,6 ha fields, German shepherd and more

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests