HomeKit, Grafana and Influx. That works!

Cupertino, October 17, 2020

First I'm sorry for my English, I'm just studying, this is almost my first post and I'm fairly new to home automation, I searched on Google to find a way to view HomeKit data and get stats, but never find out how to do it in HomeKit. There is the possibility to do this in the home assistant, in red and maybe in a different system. But the HomeKit shortcuts allowed me to write data to the Influx database. The first time I used to get content from the URL with the POST method, but it only works for me when my phone was on the local network.
So what do you need:
-Raspberries with homebridge installed, Influx with the database and Grafana connected to the influx. There are a lot of instructions on how to install them on the internet.
To collect data and write it periodically in the database, we need to install automation switches for the homebridge plugin. A motion sensor is created that activates every x seconds. So, our shortcut will begin in which we will get data from the sensor we need (temperature, humidity, heater status, weather, etc.). And we use the "run script over SSH" input information to connect to Raspberry and the script to send data to Influx like this:

curl -i -XPOST 'http: // localhost: 8086 / write? db = mydb '
--data-binar 'cpu_load_short, host = server01, region = us-west value = 0.64 1434055562000000000'

So this is how you view your values. With the if statements you can change states such as on / off to numbers and view them.

Best selling & Top trending HomeKit product in our shop at this moment

HomeKit.Blog is in no way affiliated with or endorsed by Apple Inc. or Apple related subsidiaries.

All images, videos and logos are the copyright of the respective rights holders, and this website does not claim ownership or copyright of the aforementioned.

All information about products mentioned on this site has been collected in good faith. However, the information relating to them, may not be 100% accurate, as we only rely on the information we are able to gather from the companies themselves or the resellers who stock these products, and therefore cannot be held responsible for any inaccuracies arising from the aforementioned sources, or any subsequent changes that are made that we have not been made aware of.

HomeKit.Blog Is A Participant In The Amazon Services LLC Associates Program, An Affiliate Advertising Program Designed To Provide A Means For Sites To Earn Advertising Fees By Advertising And Linking To Amazon Store (Amazon.com, Or Endless.com, MYHABIT.com, SmallParts.com, Or AmazonWireless.com).

The opinions expressed on this website by our contributors do not necessarily represent the views of the website owners. 

Copyright © 2022 HomeKit Blog
. All rights reserved
United States