Smart Garden Tap Water - On and Off

Thanks,

you can use the following template to force the sensor to retain the state instead of forcing it active. obviously a time of at least 10 minutes is recommended

scan_interval: 600

  {% if value_json.result == 'ok' %}
    {% if value_json.devices[0].taplinker[0].plan.action %}
      true
    {% else %}
      false
    {% endif %}
  {% elif value_json.result == 'error' %}
    {% if is_state("binary_sensor.linktap_status","on") %}
      true
    {% else %}
      false
    {% endif %}
  {% else %}
    false
  {% endif %}
2 Likes

hey!
where do you add in the username, APIkey, gatewayID and taplinkID values, sorry?

linktap api

Just did the same like @lessman:

(esphome re-flashed) Sonoff, magnetic valve and 240V -> 12V led driver device. Currently integerating it into HA.
Need to do some input_select, input_datetime and the esphome-integrated switch. Also some automations, then it will do the job. Add a condition for raining so it does not need to start watering.
Maybe check with on of my Plant sensors…
Some job for teh rainy days…

/ Ralf

Wow, thank you so much! Are there any news on the LAN API? Could you implement something new?

Kind regards,
lordhenry

1 Like

After asking for generic zigbee compatiblity and LAN API i got the following response beginning of may:

We implemented proprietary protocol on top the standard Zigbee protocol, so our devices are not compatible with third-party Zigbee devices. The reason we have to design our own protocol is because we want to deliver the best user experience to our clients while the standard Zigbee is simply not comprehensive enough for our product scenario.

Our current product has to talk to our cloud server in order to function properly. All our current open APIs listed on our website are based on our cloud server system.

The good news is that we are also working on a LAN based feature which will be available to all our existing clients through remote software upgrade later. Once this feature is released, user can control his/her LinkTap water timer within their LAN. The LAN based API will also be released at that time. We are looking at another 4-5 months to get it ready. (We are current busy with other new product development :-()

1 Like

while the standard Zigbee is simply not comprehensive enough for our product scenario

Looking at the range of sensors and actuators supported by zigbee2mqtt, this sounds like BS :wink:
I assume they want to constrain their support use cases, and prevent loss of sales if people buy only the valve not the hub. Which is absolutely fair :slight_smile:

I have a good feeling for the developers of link-tap. They respond quickly to customer enquiries and seem to be switched on about their user community.
I asked them about availability in the UK and got quick reply and followup when stock levels were replenished. They also confirmed for me the LAN API, but were less committal about a HA component.

3 Likes

This is awesome, got it working in my UI now.
any way to add some more info to this?
things like the battery, current work mode, wireless signal strength, watering history(if possible?!)

not sure what changed, but getting errors about the payload in the rest.switch

So I bought a link-tap.
Working great so far on its own.
Next challenge is to get it into HA.

1 Like

I found this very useful. I have it working with two taps. I did make a few tweaks that make it work better for what I wanted, but you got me started in the right direction. Thank you!

Outstanding work. Thanks Sagitt

Hey all! Any code updates to this at all since last year?

Hi Lessmann, any chance you could link the exact components that you used for this very good looking build? I’m in an area with 230v power grid, did you need to do any voltage changes for it to work?

Your original ebay link no longer works, but I found these which have a 220v versions. If I just hook up this to a Sonoff Basic and the tap connectors it should be good to go right? First time with anything like this so would appreciate some laymens terms if possible.

I’m no electrician but the 220v or 240v should work just fine. I think I have a 240v.
The solenoid is one directional so check which way the water flows and make sure the water is flowing when the magnet is “open”. It gets pretty hot after a while if there is no water flowing through it and I did burn one out. Getting the plumbing adaptors down to the tap connection size I needed was the biggest challenge

Great thank you. I’ll pull the trigger on these and see how far this rabbit hole goes :slight_smile:

I’ve just happened to buy this exact junction box and have a very similar solenoid and am struggling to find the right pieces so I can extend out the water connections to the outside of the box. Would you please be able to link me to what you bought to get that perfect length! Thanks again, your build looks spot on and I’m almost there!

This is my approach, a Sonoff 4CH R2 Pro with three 12V solenoid valves (in a 3D printed weatherproof housing)

1 Like

Great Work! I’m a bit late to the party but just bought a LinkTap G2 so thought I’d have a go at interfacing with the API’s myself.

I have built upon what you started and use two of the API’s to provide a faster update of the watering status and flow rate as well as provide info on connection status, battery level and device fault alarms.

2 Likes

I’ve added the battery. It’s pretty easy to add the work mode and wireless signal strength. Watering history you would probably have to use the homeassistant recorder for - using the watering status. You could totalise the flow rate too, but the flow is updated at every 30 seconds (best API poll time).

Let me know if you still want the work mode and signal strength and I’ll put up a snippet.

1 Like