Integrating wio link sensors via command line

I’d like to integrate some groove sensors attached to a Wio Link. the sensors respond to a curl command, with a short response, so I was just wondering how to create the value_template for these, or if that is the direction to go.

the responses look like this:

{“fahrenheit_degree”: 71.6} or {“humidity”: 55.0}

1 Like

For reference here I solved this.

value_template: ‘{{ value_json.fahrenheit_degree }}’

I deployed the wio-link server locally, so not dependent on the cloud, and these sensors are relatively cheap, and easy to work with. they supposed also support a direct websocket connection, but I’m happy with curl right.

Could you share more information of what your config looks like?

How did you get home-assistant to perform the http (curl) requests?

Here’s what the senor entry looks like:

  - platform: command_line
    command: "curl -k https://localhost/v1/node/GroveTempHumD1/temperature_f?access_token=REDACTED"
    name: Garage Temperature
    unit_of_measurement: "∞F"
    value_template: '{{ value_json.fahrenheit_degree }}'
1 Like

I have done the same using the seeed wio link cloud link and not the local.
Actually I replaced the

value_template: ‘{{ value_json.fahrenheit_degree }}’

with the return value of every sensor
So instead of fahrenheit_degree I put lux, celsius_degree,approach,shaked and more regarding on the
sensor I attach.

Everything worked great.So thanks tube0013

1 Like