I recently installed a whole house water filtration system and with the new piping I included a bunch of manual shut off valves. I realized shortly afterwards that I could have (and should have) integrated a motorized shutoff valve that I could register with home assistant and in the event of a leak detection have HA shut off the valve.
I started looking around at motoroized shut off valves on amazon and there are tons to choose from across a VERY wide range of prices. Not sure where to start… anyone have these integrated in their house and want to share their config?
Looks like most of them are normally closed and just plug into the wall outlet so if the power fails your water will shut off – I don’t want that. Just good control from home assistant – open until HA says to close. I already have some of these 433mhz battery powered water sensors, so it would be simple if it just had a wire to ground to tell it to close or something…
Not sure on that one.
I don’t use many wifi devices, but I would imagine if you can find the chip it uses, you could flash it. It says it uses the Tuya/Smartlife App so it seems possible. Never done that before, but I’ve seen/heard of loads of people flashing those (Tasmota maybe?)
I got it tonight, flashed it to Tasmota 8.1.0.9 using the OTA spoof of tuya-convert, then used the template @Holdestmade shared and added the switch to home assistant using MQTT. Works fantastically!!
I just learned that we can flash ESPHome.io over Tasmota. I’ve been converting my Tasmota devices over to ESPHome so I decided to do it with this one. Works awesome! If you want to do the same, here’s how:
On the Tasmota device, if the version of Tasmota is new enough (mine was 8+) you won’t be able to flash an image that isn’t a tasmota image. In order to get around it, you can use the setoption78 1 command on the console and then reboot Tasmota. When it comes back you can flash it with whatever you want.
Generate the binary image file from ESPHome.io: click on the three dots for the device, choose Compile when it’s done download it to your computer/phone.
Navigate to your Tasmota device’s webpage, choose Firmware Upgrade then choose Upgrade by file upload, select your binary image and fire it off!
When it comes back it’ll be an ESPHome device and you should be able to hook it up directly to Home Assistant without using MQTT!
Yeah, I think it’s just an ESP8266. I just bought the cheap shutoff valve from Amazon and reprogrammed it with Tasmota and then again with ESPHome. I’ve got Home Assistant running on a Raspberry Pi 3.
How did you get it to reset? I was able to wipe the wifi by holding in the power for 6 seconds, but I can’t get it to connect to the Pi like my other Tuya stuff when I try to flash it. If there another kind of reset?
@JoeA, I’m not sure I know what you mean. I didn’t need to reset it. I flashed it to Tasmota, then flashed it to ESPHome. I don’t remember having to reset it other than pulling the plug from the wall.
I couldn’t get mine to connect to the Pi to flash over the air like the rest of my ESP stuff. I saw that some devices have a reset button of some sort that you have to hold to get it to flash fast so that it looks for that wifi network. I’ve been able to reset the wifi, but can never get it to connect to the Pi to flash. I might have to open it up to look for another way to flash it.
@JoeA Did you ever get to flash it via Tuya Convert or via soldering? I have opened mine and the circuit boards look like on these pictures but I’m not sure where to solder TX and RX: https://imgur.com/a/MX4UtMK
I just reprogrammed the OwFeel shutoff valve using the main soldering technique - because the easy way is no longer available. I was waiting for my water sensors to arrive from China before mounting it. They just arrived so I’m about to fully integrate. Are you all set or do you still need help reprogramming?
@Foosman Thank you for your reply. I haven’t been able to figure out how to do the soldering. What pins have out been soldering to TX and RX? And did you flash Tasmota via Tasmotizer or Arduino IDE?
Morning- I flashed via tasmotizer. Ironically right when I figured out that it’s a common WiFi chipset- I was able to find pinouts all over the place. I’m going to try and paste picture here, but if I can’t, the TX is the corner pin, and RX is the one right beside it. (Obviously you’ll want to connect those to the RX and TX of your serial programming interface). The Gnd and 3.3 are located on the other two corners as you work your way around clockwise from corner to corner. Lastly- remember to push gpio to ground when you boot, to enter programming mode. Crossing my fingers this picture works - I’m posting from my phone…