Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for external pulse based meter over GPIO #2706

Closed
jakobs opened this issue Nov 18, 2023 · 5 comments
Closed

Add support for external pulse based meter over GPIO #2706

jakobs opened this issue Nov 18, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@jakobs
Copy link

jakobs commented Nov 18, 2023

The Feature

I have a gas meter next to my water meter, that has a magnet when the last digit rolls over. A simple reed contact is enough to provide a pulse for reading. The GPIO support would allow me to publish the information over an MQTT and I could to the counting at my home assistant instance. However, I would feel more comfortable if the pulse counting was actually done on the device - just to make sure not pulses are missed, e.g. when I restart my home assistant.
I guess this could be done similar to how the SmartLed driver can be used on the GPIO.

Features could be:

  • hold a pulse count
  • Use configured interrupt (rising, falling, high, low) to increase count
  • (optional) Store count on sd after increase, and load count from sd on boot
  • publish count over mqtt
@jakobs jakobs added the enhancement New feature or request label Nov 18, 2023
@wg25
Copy link

wg25 commented Nov 20, 2023

Why not using an additional device with AI-on-the-edge to read the gasmeter?

@jakobs
Copy link
Author

jakobs commented Nov 20, 2023

The reed contact switch on the gas meter is cheaper, smaller, easier to setup and more reliable.

@caco3
Copy link
Collaborator

caco3 commented Nov 20, 2023

Sorry, but this is not really in the scope of this project.
But it looks like an easy project to implemented with eg. arduino.
You might also be able to use https://github.com/letscontrolit/ESPEasy and do it without any programming!

@caco3 caco3 closed this as completed Nov 20, 2023
@jakobs
Copy link
Author

jakobs commented Nov 21, 2023

Thanks for the suggestions. I think I will still try to integrate it into the esp32 as it would already provide the MQTT bridge and Wifi and I just have to add a cable with the switch.

@jakobs
Copy link
Author

jakobs commented Jan 20, 2024

I have this mostly running using the GPIO module and a modification for debouncing. Also found issue #1804, which seems to be aiming in the same direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants