I just looked at the services.yaml in the custom component and they are all named pause, assume by accident. I use the start watering service like this:
So yes, the start watering service does that.
You could also set the relevant duration number entity to 5, and then turn on the switch or open the valve.
Its functionally equivalent.
Not sure if it is just me but I am getting the sensors going Unavailable fairly regularly, but only for a minute or less. A look in the logs there are quite a few timeouts.
Is there something I can do to adjust this timeout?
The LinkTap MQTT Integration doesn’t seem to have these timeouts, or at least it doesn’t cause the sensors to go Unavailable.
Logger: custom_components.linktap
Source: helpers/update_coordinator.py:319
Integration: Local HTTP API for Linktap (documentation, issues)
First occurred: 12:01:16 PM (163 occurrences)
Last logged: 5:42:36 PM
Timeout fetching linktap data
EDIT: I seem to be getting these every 5 minutes, I am also getting the following errors
This error originated from a custom integration.
Logger: custom_components.linktap
Source: helpers/update_coordinator.py:326
Integration: Local HTTP API for Linktap (documentation, issues)
First occurred: 6:22:50 PM (1 occurrences)
Last logged: 6:22:50 PM
Error requesting linktap data: [Errno 104] Connection reset by peer
I get these occasionally, but certainly not on any sort ot schedule. I havent seen in for some time.
Do you also have mqtt set up at the same time?
Linktap support didnt confirm this, but I believe running both could lead to issues where it doesnt respond in a timely manner, especially if you have a few taps/valves
I did have the MQTT enabled as it was the only way to integrate it to Home Assistant whilst LinkTap updated my firmware.
I have now disabled the MQTT devices in Home Assistant, but this doesn’t seem to make any difference to the devices going unavailable.
My setup is two LinkTap D1’s, so four watering devices. I have tried disabling all but one of those and still get the timeouts.
Not sure if it is significant but the firmware version they upgraded me to is G0808642402291348I, which may be newer than the one mentioned in the integration read.me.
So it seems the gateway is losing pings at roughly the same time as the device is going unavailable when I ping it from my computer or my home assistant instance (HA Yellow).
Before I go back to LinkTap and indicate they have an issue (Firmware or Hardware) is it possible you could let me know what Firmware version you are using is for comparison?
I have auto update turned on, so to be honest have no idea when it last updated, but i believe the final part of the string in front of the _ is the date, so that would make it Jan 2024.
Keep me posted if/when you hear back from Linktap support. They have generally been pretty responsive.
Thank you, from looking your firmware version you have different hardware (G v S) and firmware (08086 v 06085)
Think I will try moving the gateway on my network and see if it makes a difference and see if I the LEDs on the gateway do anything when it goes unavailable.
It is interesting that the LinkTap App and their MQTT integration don’t report any issues.
I am trying to get the time from the gateway using local HTTP access. I think I am close because I am getting a response, just not the one that I want. I am sending as a post:
Yeah - I’m ok to do that, but the embedded json is wrong. Instead of echoing the command back, it gives 255. I think that is an error commend, but I don’t know because I couldn’t find a reference to it.
why are you sending cmd 14?
14 is about setting a schedule (i think)
so you need day, time etc, as well as a device (ie a tap)
If its getting the schedule, you need to provide a tap (dev_id)
I left those out of the integration specifically, as it doesnt make sense – use the app for schedules.
the ret value is an error code. If thats not 0, something was wrong with your payload.
You actually need to sign an NDA with linktao in order to get the api documentation. Id suggest you do that if you want further information.
Thanks @sh00t2kill - I emailed tech support for some documentation and they sent me “LinkTap Gateway MQTT Client Interaction Messages.pdf”. In that document they say that command 14 is: “Fetch Gateway Time” and that it is an App–>Broker–>Gateway type message.
I chose this command because it looked like the easiest. But having said that - it isn’t working so I’ve stuffed something up somewhere. I’ll try a different command.