Skip to content

Integrations

TheYOSH edited this page May 12, 2020 · 4 revisions

The TerrariumPI software does have Webhooks and a FULL API so that there are at least two ways to integrate this with other home automation systems or private systems.

Code snippets

Here are some code snippets of personal people that use TerrariumPI

https://github.com/kaju666/TerrariumPI-Send-Webcam-Image-With-Data-To-Public

3rd Party Integration

Here you can find some third party suppliers that can integrate with TerrariumPI

Home Assistant

For Home Assistant you can use the API for sensor and other states read out. Use the RESTful sensor to request data from TerrariumPI.

Then you can use the value template setting of Home Assistant to get the right value.

For example: Source is /api/sensors/[XYZ]:

{
  "sensors": [
    {
      "id": "176ba2cc660046a239e15b1f94ef8091",
      "hardwaretype": "miflora",
      "address": "c4:7c:8d:66:e3:52",
      "type": "temperature",
      "indicator": "C",
      "name": "Plant",
      "current": 23.2,
      "alarm_min": 15,
      "alarm_max": 28,
      "limit_min": 5,
      "limit_max": 50,
      "max_diff": 25,
      "alarm": false,
      "error": false,
      "exclude_avg": false,
      "firmware": "3.1.8",
      "battery": 39
    }
  ]
}

Then with Home Assistant value templating you sould get the current value with:

"{{ value_json['sensors'][0]['current'] }}"
Clone this wiki locally