How Artificial Intelligence Can Automate Reading Your Water Meter In Home Assistant

  Рет қаралды 37,046

Binary Tech Labs

Binary Tech Labs

2 жыл бұрын

#homeassistant #howto #BinaryTechLabs
Artificial intelligence and machine learning are used to automate the reading of a water meter, but it could be any type of meter. The best part is that we can integrate it with Home Assistant with MQTT. If you have ever wanted to track your usage or set up alerts or automations, then this is the video for you! Also this is a fantastic means of aggregating data to analyze.
💖 ABOUT OUR CHANNEL
Welcome to Binary Tech Labs, where we provide tutorials and reviews on Home Assistant, IoT devices, Raspberry Pi and other Single Board Computers, as well as other topics.
Check out our channel here:
/ @binarytechlabs
Don’t forget to subscribe!
📽️ CHECK OUT OUR OTHER VIDEOS
Home Assistant Install on a Raspberry Pi with WiFi 2022 - • Home Assistant Install...
Install Home Assistant On A Laptop (Intel or AMD) Using Generic x86 Image, No Raspberry Pi Required - • Install Home Assistant...
Home Assistant, A Surprising Tool That Can Transform Your Doorbell Into a Smart Doorbell (How-To) - • DIY Smart Doorbell: Tu...
🧰 HARDWARE
ESP32-CAM with MicroUSB - amzn.to/3iNHGsL
5V Power Supply - amzn.to/3JXKKhR
16gb MicroSD Card Pack - amzn.to/3u2oK01
USB to TTL UART Converter - amzn.to/3qSqw1x
💻 SOFTWARE
Espressif Flash Tool - www.espressif.com/en/support/...
WSL 1 or 2 for Windows - docs.microsoft.com/en-us/wind...
WSLg for Windows - github.com/microsoft/wslg
⌨️ Commands
pip install esptool
pip install setuptools
python -m esptool --chip esp32 erase_flash
python -m esptool --chip esp32 --port (serial_port) write_flash 0x01000 bootloader.bin 0x08000 partitions.bin 0x10000 firmware.bin
🔗 Additional Links
AI on the edge Instructions - github.com/jomjol/AI-on-the-e...
Thingiverse 3d Files (modular) - www.thingiverse.com/thing:457...
AI on the edge firmware - github.com/jomjol/AI-on-the-e...
AI on the edge SD-Card - github.com/jomjol/AI-on-the-e...
Channel haus-automatisierung.com - / @haus_automation
FOLLOW US ON SOCIAL
Get updates or reach out to Get updates on our Social Media Profiles!
Twitter: @BinaryTechLabs
Instagram: @BinaryTechLabs
🧲 DISCLAIMER
Some of the items above include affiliate links, which means that if you click on the link and purchase an item, I will receive a small compensation at no extra cost to you. You are not required to do so, but it does help support my videos in the hopes that they are useful to you!

Пікірлер: 56
@iperineum5211
@iperineum5211 Жыл бұрын
Thanks for the guide! One thing, which gave me some headache was that the ESP32 must be set into boot mode to flash the .bin files. Since I had the programmer board, I just had to press the "IOO" button and then plug it in. However, in none of the guides I watched this was mentioned. Now I know! :D Please note also that since Home Assistant release 2022.6 expression changes to the mqtt format in the .yaml code were introduced. Since HA 2022.9 the old format is completely removed. So, the examples given in the guide are outdated. old code example (found in the video): sensor: - platform: mqtt state_topic: "home/bedroom/temperature" new format: mqtt: sensor: - state_topic: "home/bedroom/temperature" for the guide the expression goes as follows: mqtt: sensor: - name: "Main Water Meter" state_topic: "watermeter/main/value" value_template: "{{ value }}" unit_of_measurement: "m3" icon: "mdi:water-pump" - name: "Main rate meter AIOE" state_topic: "watermeter/main/rate" value_template: "{{ value }}" icon: "mdi:swap-vertical" - name: "Main timestamp meter AIOE" state_topic: "watermeter/main/timestamp" value_template: "{{ value }}" icon: "mdi:clock-outline" binary_sensor: - name: "Main Error meter AIOE" state_topic: "watermeter/main/error" value_template: "{{ value != 'no error' }}" json_attributes_topic: "powermeter/main/json" icon: "mdi:alert-circle" more on this can be found here: www.home-assistant.io/integrations/sensor.mqtt/ and here: www.home-assistant.io/blog/2022/06/01/release-20226/#breaking-changes
@BinaryTechLabs
@BinaryTechLabs Жыл бұрын
Thanks for pointing out these updates!
@vpsrj
@vpsrj 2 жыл бұрын
Hey, thanks for sharing! It’s an awesome feature and I’ll definitely try it with my gas meter!
@BinaryTechLabs
@BinaryTechLabs 2 жыл бұрын
You are very welcome, let me know how it turns out!
@geekhessebo2709
@geekhessebo2709 Жыл бұрын
Thanks for the great video and keep up with the good work 💞
@BinaryTechLabs
@BinaryTechLabs Жыл бұрын
Thank you
@Bismillahcuisine
@Bismillahcuisine 2 жыл бұрын
Good luck and continued success, good luck and success 👍 Great video
@BinaryTechLabs
@BinaryTechLabs 2 жыл бұрын
Thank you very much!
@johngriffiths3467
@johngriffiths3467 2 жыл бұрын
Great video, made some assupmtions regards the flashing of the ESP32-CAM but I eventually got there. Got the stage where MQTT reference in the config.yaml needed including and failed. Any chance the code could be reference somewhere in the comments? Unfortunaltely I agree that the music would have been better at a reduced volume! Keep up the great work.
@BinaryTechLabs
@BinaryTechLabs 2 жыл бұрын
Hey, thanks for the feedback, yeah the music... I thought it was ok, but I'm learning it is not and because of all the feedback, all future videos will not have music when I am talking. I am very happy people are trying this out. The home assistant info you need you can read here: github.com/jomjol/AI-on-the-edge-device/wiki/Integration-Home-Assistent I hope that gets you up and running.
@johngriffiths3467
@johngriffiths3467 2 жыл бұрын
@@BinaryTechLabs That's just the job. Thanks for putting me right. Regards the background music, try another one but keep the volume just above zero! Looking forwar to your next vid. Cheers from UK.
@kevinhenes4920
@kevinhenes4920 6 ай бұрын
I noticed you had to add lines to your config.yaml. I just did a new install this week and all the entities were automatically installed in my mqtt under "watermeter". I didnt have to add anything to my yaml. Not sure if that was something that the dev added in the past year, but its nice that it does that now.
@BinaryTechLabs
@BinaryTechLabs 6 ай бұрын
Awesome, thanks for letting me know. I'll update mine and remove it from my config
@AnthonyGossner
@AnthonyGossner Жыл бұрын
where you able to find a reference for the timezone settings?
@BinaryTechLabs
@BinaryTechLabs Жыл бұрын
I was, here is the "light" reading I did to figure it out for my TZ developer.ibm.com/articles/au-aix-posix/
@tjensen4100
@tjensen4100 Ай бұрын
Hi Have you get the water cost to work ? And if yes, then how? Great video
@BinaryTechLabs
@BinaryTechLabs Ай бұрын
Hey, thanks for your comment and support, no I've not set up that feature for it, mine was just strictly out of laziness 😂
@knallaff
@knallaff Жыл бұрын
@Binäre Tech-Labs You didn't store a password in the MQTT settings, isn't that required? I can't get any data in, something is missing... I'll have to take a look :-/
@BinaryTechLabs
@BinaryTechLabs Жыл бұрын
I entered my MQTT settings off camera, as that install was made on my production HA instance
@gianlucafrare3171
@gianlucafrare3171 Жыл бұрын
Have you tried to power it with a battery? How long could it last?
@BinaryTechLabs
@BinaryTechLabs Жыл бұрын
I have not tried, but I suspect that it would last anywhere from 12 to 18 hours on a 9v battery and depending on current draw based on the flash setting
@aimanfaris9100
@aimanfaris9100 5 ай бұрын
hello i have a problem where when i entered my ip address, it doesn't show the initial setup page. how to fix that?
@BinaryTechLabs
@BinaryTechLabs 5 ай бұрын
Hey there! Sorry to hear you're having trouble accessing the setup page after entering your IP address, here are a few quick things to try: 1. Check your network connection 2. Double-check the IP address 3. Review and edit the "wlan.ini" file with correct SSID and password info 4. Check your firewall and security settings If the problem persists, you can reach out to the developer of the "AI-on-the-edge" program on GitHub. They might have specific troubleshooting steps or someone might have encountered similar issues as you are experiencing.
@oleav1539
@oleav1539 3 ай бұрын
Do you have an error when your dial is over the digits?
@BinaryTechLabs
@BinaryTechLabs 3 ай бұрын
Yes, if the dial is blocking my digits I get a 'NaN' reading, that is normal
@stefanboy8020
@stefanboy8020 Жыл бұрын
Hello, I'm also currently setting it up, but had to find out that the mqtt sensors don't work as it says on the side of the water meter, do you have sensors that work or a solution for it. I have now solved it by not using Value but Raw.
@BinaryTechLabs
@BinaryTechLabs Жыл бұрын
I'm glad you found a solution, but I'm having trouble understanding what you are saying the problem is.
@stefanboy8020
@stefanboy8020 Жыл бұрын
@@BinaryTechLabs The 4 mqtt sensors as specified for the Yaml on the Watermeter page do not give any values. The sensors are on the entities with a red ! not available.
@stefanboy8020
@stefanboy8020 Жыл бұрын
@@BinaryTechLabs Too bad I can't send you any pictures this way.
@BinaryTechLabs
@BinaryTechLabs Жыл бұрын
Oh ok, did you changes to the main topic or change the value of "main" anywhere in the config? Also is your MQTT broker running in home assistant? You can use a tool called MQTT explorer to trouble shoot. It sounds like something with your MQTT setup is not seeing the data being published by the water meter client
@stefanboy8020
@stefanboy8020 Жыл бұрын
@@BinaryTechLabs found the error had to change the host name. Changed it to German.
@31biga
@31biga 7 ай бұрын
I have the same meter. Can you not define a ROI for the analogic counter? 0.1 m3 of water is 100L, not really precice for real time monitoring. With the analogic counter you can read 10 and 1 litres (0.01 0.001 m3) precision
@BinaryTechLabs
@BinaryTechLabs 7 ай бұрын
Hey, I didn't find anything where you could customize that in the settings. But it would be a good request for the developer to add the feature. Reach out to them, you never know, might be an easy update.
@jokernautmusic1640
@jokernautmusic1640 7 ай бұрын
Sir is this Realtime monitoring?
@BinaryTechLabs
@BinaryTechLabs 7 ай бұрын
Yes
@phillip8260
@phillip8260 6 ай бұрын
Is there a version of this video without the music?
@BinaryTechLabs
@BinaryTechLabs 6 ай бұрын
Unfortunately not, however it would be a good video for me to update as there has been a few version changes since
@Justdigit2
@Justdigit2 3 ай бұрын
How can this work in a dark environment?
@BinaryTechLabs
@BinaryTechLabs 3 ай бұрын
Hey great question. You can control the internal LED on the camera and you can even add external LED's. You can find out more here: jomjol.github.io/AI-on-the-edge-device-docs/External-LED/
@Justdigit2
@Justdigit2 3 ай бұрын
​@@BinaryTechLabsAhhh but that's just genius. I did not know there was a led on the board.
@BinaryTechLabs
@BinaryTechLabs 3 ай бұрын
No worries, you might find the internal one creates a glare, you can control the brightness as well, just a heads up.
@lcarter194
@lcarter194 Жыл бұрын
totally off topic but I think i can use this to read bingo balls
@BinaryTechLabs
@BinaryTechLabs Жыл бұрын
Getting the balls to line up the right way will be challenging. Good luck to you sir. Keep me posted
@jeroenm771
@jeroenm771 Жыл бұрын
*software* aspect of this project
@BinaryTechLabs
@BinaryTechLabs Жыл бұрын
Hey, Thanks for the comment, did you miss some text? Not sure what you are asking.
@fatles2008
@fatles2008 2 жыл бұрын
I love it when none Brits use the term "Bugger"
@BinaryTechLabs
@BinaryTechLabs 2 жыл бұрын
😅 Thank you for the comment! I may not have the accent, however that term and others I've heard throughout my life from my family members 😉
@sygys
@sygys 2 жыл бұрын
Never got this to work properly. The esp32cam is to damn slow to run this software
@BinaryTechLabs
@BinaryTechLabs 2 жыл бұрын
I'm sorry to hear that you couldn't get it running, but as I demonstrated in the video, I did get it working and have had no issues with it. Maybe there is something wrong with the esp32cam board that you are using.
@Heneyspanicker
@Heneyspanicker 2 жыл бұрын
background music annoying
@BinaryTechLabs
@BinaryTechLabs 2 жыл бұрын
Thanks
@SirDragonClaw
@SirDragonClaw 2 жыл бұрын
For the love of all that is holy remove the terrible music that is louder than your voice next time. It adds nothing to the tutorial and only takes from it.
@BinaryTechLabs
@BinaryTechLabs 2 жыл бұрын
Thanks for the feedback, all my future videos will be soundtrack free.
@jeff-73
@jeff-73 Жыл бұрын
Omg. Do research before you make videos. This is not AI. This is PATTERN recognition. AI involves self learning algorithms and NOT someone programming every number.
@BinaryTechLabs
@BinaryTechLabs Жыл бұрын
Well thanks for the clarification
1 класс vs 11 класс (рисунок)
00:37
БЕРТ
Рет қаралды 4 МЛН
Лизка заплакала смотря видео котиков🙀😭
00:33
请善待你的娃娃第二集 #naruto  #cosplay  #shorts
00:52
佐助与鸣人
Рет қаралды 24 МЛН
Built-in and Custom Energy & Power Cards in Home Assistant
13:24
BeardedTinker
Рет қаралды 39 М.
GPT TOOK OVER MY HOME - I learned why it's SCARY | |  Chapter 4
17:54
Technithusiast
Рет қаралды 100 М.
13 Best Home Automation Projects using Raspberry-Pi, ESP32 & more!
8:25
ToP Projects Compilation
Рет қаралды 160 М.
Every Shower needs this Upgrade! (Online Water Tracker)
11:09
GreatScott!
Рет қаралды 282 М.
5 Home Assistant Beginner MISTAKES to Avoid!
8:05
Everything Smart Home
Рет қаралды 240 М.
Prevent THOUSANDS in damages with these smart water monitors.
18:50
6 INCREDIBLE Smart Home Tablet Dashboards!
20:03
Everything Smart Home
Рет қаралды 344 М.
what did she do 😱❤️ #shorts
0:24
Pop it GO
Рет қаралды 1,3 МЛН
Mind blowing bamboo crafts #bamboo
0:12
Bamboo / Shorts
Рет қаралды 35 МЛН
Плохая прическа😮 (TT oconnells)
0:19
Pieyon
Рет қаралды 13 МЛН