Hi,
I connected a switch TCRT5000 to a NodeMCU with ESPEasy. The optical digtal sensor is looking to a ferraris counter with a turning wheel. Its normaly HIGH and a count is a LOW impulse for some tenth second. As I do not have a special plugin for this switch, I took the normal switch input plugin here: https://espeasy.readthedocs.io/en/lates ... witch-page. I only changed the GPIO data to D6, where my wire is connected. But it does not work. The green value on the devices tap does not change, althouph I see at the device LED, that the status is changing. What data on the device page do I have to alter?
Gruss, wonk
need help configuring switch
Moderators: grovkillen, Stuntteam, TD-er
Re: need help configuring switch
can you measure a voltage on the GPIO pin?
also the overview page is not always that fast.
is there something in the logs?
also the overview page is not always that fast.
is there something in the logs?
Re: need help configuring switch
Hi,
sorry, it is the other way: when LED on sensor is ON, the signal is LOW, when LED ist OFF for a short time, signal goes up to 2.5V.
Some log output:
What sort of timecode is the first number?
Although there is a switch of output state, I cannot see this in the green value output.
Gruss, wonk
sorry, it is the other way: when LED on sensor is ON, the signal is LOW, when LED ist OFF for a short time, signal goes up to 2.5V.
Some log output:
Code: Select all
66295831: SW : GPIO=12 State=1 Output value=1
66296917: SW : GPIO=12 State=0 Output value=0
66304351: WD : Uptime 1105 ConnectFailures 6490 FreeMem 19216 WiFiStatus WL_CONNECTED ESPeasy internal wifi status: Conn. IP Init
66325617: SW : GPIO=12 State=1 Output value=1
66326717: SW : GPIO=12 State=0 Output value=0
66334351: WD : Uptime 1106 ConnectFailures 6490 FreeMem 19136 WiFiStatus WL_CONNECTED ESPeasy internal wifi status: Conn. IP Init
66347718: SW : GPIO=12 State=1 Output value=1
66347817: SW : GPIO=12 State=0 Output value=0
66357317: SW : GPIO=12 State=1 Output value=1
66358518: SW : GPIO=12 State=0 Output value=0
66364351: WD : Uptime 1106 ConnectFailures 6490 FreeMem 19136 WiFiStatus WL_CONNECTED ESPeasy internal wifi status: Conn. IP Init
66392017: SW : GPIO=12 State=1 Output value=1
66393317: SW : GPIO=12 State=0 Output value=0
66394351: WD : Uptime 1107 ConnectFailures 6490 FreeMem 19136 WiFiStatus WL_CONNECTED ESPeasy internal wifi status: Conn. IP Init
Although there is a switch of output state, I cannot see this in the green value output.
Gruss, wonk
Re: need help configuring switch
The first number is the 'uptime' in msec.
N.B. this may wrap to 0 every 49.7 days
N.B. this may wrap to 0 every 49.7 days

Re: need help configuring switch
Hi,
thank you, that helps. It is the right plugin, it shows values. But I do not understand configuring. It seems, I can get three values: Delta, Total, Time
What is Delta, Total, Time?
What is the meaning of %value% in this case?
Why do I have to set an interval?
I only know that every 480 turns of the wheel are 1 KWh.
Gruss, wonk
thank you, that helps. It is the right plugin, it shows values. But I do not understand configuring. It seems, I can get three values: Delta, Total, Time
What is Delta, Total, Time?
What is the meaning of %value% in this case?
Why do I have to set an interval?
I only know that every 480 turns of the wheel are 1 KWh.
Gruss, wonk
Re: need help configuring switch
dont knmow how this really works,but im guessing that
setting type to total and mode to change,
activating send single event with all values,
setting the formula to %value%/480
at an intervall of 10 sec.
should give you the total amount of used kwh since last reboot. every 10 seconds.
setting type to total and mode to change,
activating send single event with all values,
setting the formula to %value%/480
at an intervall of 10 sec.
should give you the total amount of used kwh since last reboot. every 10 seconds.
Who is online
Users browsing this forum: No registered users and 11 guests