Back to Smartcitizen.me

Is there local API?

Hi, I’m interested in the SCK 2.3. Is there a local API on the device that I can use for home Assistant/Hubitat without having to go through the internet?

Hi @christian.busch

You can change the MQTT broker on the SCK, and then ingest that data into your own setup. I believe this is fairly straightforward although i have never done so myself: MQTT - Home Assistant

This script by @pylonsoft is an example of how this setup can be done. He sends data to the public broker, but you can do the same pointing it to another broker(s) too: Add script for republishing MQTT data to public server by pylonsoft · Pull Request #427 · fablabbcn/smartcitizen-api · GitHub

If you make this work, it’d be great to hear about the results.

I was hoping to get by without having to run a MQTT broker…