Sensor for blinking LED of washing machine
Posted: 04 Jan 2020, 21:18
Hello,
this is my first post on this board. I use ESPEASY (mostly on Wemos D1) for my house automation on FHEM and I'm completly excited. Recently I moved all of my sensors from the Mysensors-project to ESPEASY (using MQTT and FHEM HTTP) because it is much easier to implement new sensors.
Here is my issue:
At the moment I build a sensor for a washing machine, which is located in the basement. It should inform me about a finished washing. It is a BOSCH wasching machine which has an LED for showing the status. The LED is always on when the machine is running. The same LED blinks every second when the washing machine has finished it's program.
I have build a LUX-sensor (BH1750) which is placed over the LED and reads the light intensity. When the light of the LED is off, the lux sensor gives a value of "0" and if the LED is on it gives values about 70 and higher. When refreshing the ESP-Device in the browser i can comprehend that the LED is blinking (values are changing from 0 to 7x).
But when sending the values to the controller (home automation FHEM) it could be that only values about 70 are provided, because the reading interval could only be set to intger values and it is catching the LED exactly when it is on and never when the LED is off.
Is there a possibility to set the reading interval for the I2C Interface for example to 2.5 sec (or any other delay of some 100s of milliseconds) so it would read the LED off phase as well sometime?
I created some "dummy devices" in the ESP-Webconsole on the same physical sensor and if there is load on the microcontroller some of the readings were delayed and I also get 0 values sometime. But this is not a reliable workaround.
What do you suggest? Is there a way with espeasy or do I have to programm my own Arduino? I know there are many solutions with and voltmeter, but i want a solution involving the status LED of the washing machine.
Thanks,
soldfingr
this is my first post on this board. I use ESPEASY (mostly on Wemos D1) for my house automation on FHEM and I'm completly excited. Recently I moved all of my sensors from the Mysensors-project to ESPEASY (using MQTT and FHEM HTTP) because it is much easier to implement new sensors.
Here is my issue:
At the moment I build a sensor for a washing machine, which is located in the basement. It should inform me about a finished washing. It is a BOSCH wasching machine which has an LED for showing the status. The LED is always on when the machine is running. The same LED blinks every second when the washing machine has finished it's program.
I have build a LUX-sensor (BH1750) which is placed over the LED and reads the light intensity. When the light of the LED is off, the lux sensor gives a value of "0" and if the LED is on it gives values about 70 and higher. When refreshing the ESP-Device in the browser i can comprehend that the LED is blinking (values are changing from 0 to 7x).
But when sending the values to the controller (home automation FHEM) it could be that only values about 70 are provided, because the reading interval could only be set to intger values and it is catching the LED exactly when it is on and never when the LED is off.
Is there a possibility to set the reading interval for the I2C Interface for example to 2.5 sec (or any other delay of some 100s of milliseconds) so it would read the LED off phase as well sometime?
I created some "dummy devices" in the ESP-Webconsole on the same physical sensor and if there is load on the microcontroller some of the readings were delayed and I also get 0 values sometime. But this is not a reliable workaround.
What do you suggest? Is there a way with espeasy or do I have to programm my own Arduino? I know there are many solutions with and voltmeter, but i want a solution involving the status LED of the washing machine.
Thanks,
soldfingr