I’m getting a null return from the getWateringStatus API no matter what the state of the taplink device is. I’m wondering if anyone else is seeing this, it’s causing none of my automations to work.
Since I’ve not gotten this working yet I wanted to check with others before I contact link-tap. Note that I’m confident my values for username, API key etc. are correct since they are the same values I’m using to turn on the link-tap from HA and that works.
For brevity, here’s the postman payload that returns null. It returns null if I have the link tap running or if it’s turned off:
payload:
{
"username": "<my username>",
"apiKey": "<my api key>",
"taplinkerId": "<my tap link id for the watering device>"
}
Edit: i contacted their support team and it turns out this API only accepts the first 16 characters for the taplinkerId. They say they are planning on updating their documentation.
Ive had a nightmare getting the correct fittings and fitting them in the box. I have got it working but as my fittings are not perfect and its not in a box and its 240V i’ve not used it. I think a 12v version will be safer?
so im trying to write all the values out into a sensor, so i have the data to review why it wont load, but this template sensor (linktap_alldata) doesnt give me anything either?
sensor:
# Access getalldevices API and read all data
- platform: rest
name: linktap_getalldevices
verify_ssl: true
scan_interval: 600 # 360
resource: https://www.link-tap.com/api/getAllDevices
method: POST
payload: '{"username": "xxxx", "apiKey": "xxxx"}'
json_attributes:
- result
- devices
value_template: '{{ value_json.result }}'
headers:
User-Agent: Home Assistant
Content-Type: application/json
# Access getWateringStatus API and read all data - this API can be read every 30 seconds which is more frequent and up to date than the getalldevices API that is 5 mins
- platform: rest
name: linktap_getwateringstatus
verify_ssl: true
scan_interval: 35
resource: https://www.link-tap.com/api/getWateringStatus
method: POST
payload: '{"username": "xxx", "apiKey": "xxx", "taplinkerId": "xxxx"}'
json_attributes:
- result
- status
value_template: '{{ value_json.result }}'
headers:
User-Agent: Home Assistant
Content-Type: application/json
- platform: template
sensors:
linktap_alldata:
friendly_name: Linktap All Data
value_template: '{{ states.sensor.linktap_getalldevices.state }}'
I’ve had success using the sample posted by TDM to access LinkTap. I’ve also tested out there API in Postman. Hence I can verify that as of today, the sample code does work. Of course, you need to get the GUIDS all correct.
At some point I’ll extend what TDM did to add some additional stuff I see in the API.
At the same time I’ve been super impressed with the LinkTap iPhone app. Lots of detail and capability. Really a great product. So good I bought an additional G2 system to water the garden at the cabin.
Got a LinkTap GS2 and am looking to get it going any week now when it gets a little warmer outside here in Sweden (minus 5 C the other night…).
Anyway, was thinking, is it possible to add it to Home Assistant without using the gateway?
My Zigbee network through Conbee is starting to get extremely robust with almost 20 units spread over most parts of the house. I recon the mesh functions will be lost with the gateway, right? Would be great if it could be added to HA directly…
You cant use it witth Zigbee because they dont follow the standard. I tried to sniff but that didnt work cause they dont use the standard zigbee security key.
Thanks guys, much appreciated. No biggie to work with their gateway.
Really looking forward to get these things going. The tomato plants are looking great indoors, but it is getting crowded on the growth station. Need to get them into the green house rather soon, but the temperature just won’t stay over 0 night time…
I emailed them just now and Linktap Support said that the beta will be available in about 4 weeks from now. Can’t wait! There is also a new version of the app coming out in a week.