Reading temp sensors in to HA from Animus API

Hi!

I’m a HA noob and even more noobish when it comes to JSON. However, I’m enjoying my HA/Hass.io very much. I started my home automation journey on a Animus Home. However, the integrations I need are not just there,

I’m trying to feed my 433mhz temp/humidity sensors from the Animus API in to HA. I’m trying to use RESTful. Any help is greatly appreciated.

This is how far I’ve gotten at my config.yaml:

sensor:    
  - platform: rest
    resource: http://xxx.xxx.xxx.xxx/rest/devices/com.animushome.heart.packages.rf433.2adc890c-c8b1-417a-b5b7-248af6faf08f:f-8193.1/
    headers:
        Authorization: Bearer xxxxxxxxx
        Content-Type: application/json
    name: Temperature
    value_template: '{{ value_json.temperature }}'
    unit_of_measurement: "°C"

When called, the specific sensor readout is this:

>  $ curl "http://xxxxxxxxxxxxxx/rest/devices/com.animushome.heart.packages.rf433.2adc890c-c8b1-417a-b5b7-248af6faf08f/functions" -H "Authorization: Bearer xxxxxxxxxx" -H "Content-Type: application/json"
> {"com.animushome.heart.packages.rf433.2adc890c-c8b1-417a-b5b7-248af6faf08f:f-8193.1":{"serviceProperties":{"UID":"com.animushome.heart.packages.rf433.2adc890c-c8b1-417a-b5b7-248af6faf08f:f-8193.1","operation_names":["getData"],"device_UID":"com.animushome.heart.packages.rf433.2adc890c-c8b1-417a-b5b7-248af6faf08f","property_names":["data"],"animus.package.type":"device","name":"Humidity ","type":"humidity","clazz":"com.animushome.heart.service.dal.functions.MultiLevelSensor","views":["main"],"primary":false},"functionProperties":{"data":{"metadata":{"clazz":"com.animushome.heart.service.dal.functions.data.LevelData","property_access":5},"maxValue":{"level":100,"metadata":{},"timestamp":0},"minValue":{"level":0,"metadata":{},"timestamp":0},"step":{"level":1,"metadata":{},"timestamp":0},"value":{"level":75,"unit":"%","metadata":{},"timestamp":1577285942310}}},"functionOperations":{"getData":{"metadata":{},"paramsMeta":[],"returnMeta":{"metadata":{"type":"com.animushome.heart.service.dal.functions.data.LevelData"}}}}},"com.animushome.heart.packages.rf433.2adc890c-c8b1-417a-b5b7-248af6faf08f:f-8193.0":{"serviceProperties":{"UID":"com.animushome.heart.packages.rf433.2adc890c-c8b1-417a-b5b7-248af6faf08f:f-8193.0","operation_names":["getData"],"device_UID":"com.animushome.heart.packages.rf433.2adc890c-c8b1-417a-b5b7-248af6faf08f","property_names":["data"],"animus.package.type":"device","name":"Temperature ","type":"temperature","clazz":"com.animushome.heart.service.dal.functions.MultiLevelSensor","views":["main"],"primary":true},"functionProperties":{"data":{"metadata":{"clazz":"com.animushome.heart.service.dal.functions.data.LevelData","property_access":5},"maxValue":{"level":100,"metadata":{},"timestamp":0},"minValue":{"level":0,"metadata":{},"timestamp":0},"step":{"level":1,"metadata":{},"timestamp":0},"value":{"level":9.2,"unit":"°C","metadata":{},"timestamp":1577285942310}}},"functionOperations":{"getData":{"metadata":{},"paramsMeta":[],"returnMeta":{"metadata":{"type":"com.animushome.heart.service.dal.functions.data.LevelData"}}}}}}

What’s the best way to configure my yaml to get current temp value and hum value? And to repeat this for the four other sensors.

Thanks and Merry Christmas!