{"id":15095832,"url":"https://github.com/pvainio/scd30-mqtt","last_synced_at":"2026-02-17T08:34:03.630Z","repository":{"id":61628146,"uuid":"423780631","full_name":"pvainio/scd30-mqtt","owner":"pvainio","description":"Sensirion SCD30 CO2 sensor MQTT gateway with Home Assistant MQTT discovery","archived":false,"fork":false,"pushed_at":"2025-03-07T19:57:36.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T09:43:12.459Z","etag":null,"topics":["co2","co2-sensor","home-assistant","home-automation","homeassistant","iot","mqtt","scd30","sensirion","sensirion-scd30"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pvainio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-02T09:28:31.000Z","updated_at":"2025-03-07T19:57:18.000Z","dependencies_parsed_at":"2022-10-18T17:45:26.904Z","dependency_job_id":"2111e5f5-06f0-4110-ae9b-3439b873304d","html_url":"https://github.com/pvainio/scd30-mqtt","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"42b82ac0ad007c87b53193213b798e47e8edc86d"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pvainio/scd30-mqtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvainio%2Fscd30-mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvainio%2Fscd30-mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvainio%2Fscd30-mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvainio%2Fscd30-mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pvainio","download_url":"https://codeload.github.com/pvainio/scd30-mqtt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvainio%2Fscd30-mqtt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29537837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T08:11:05.436Z","status":"ssl_error","status_checked_at":"2026-02-17T08:09:38.860Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["co2","co2-sensor","home-assistant","home-automation","homeassistant","iot","mqtt","scd30","sensirion","sensirion-scd30"],"created_at":"2024-09-25T15:42:26.767Z","updated_at":"2026-02-17T08:34:03.615Z","avatar_url":"https://github.com/pvainio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sensirion SCD30 CO2 sensor MQTT gateway for Home Assistant\n\n## Overview\n\nThis gateway can be used to publish measurements SCD30 to mqtt.\n\nIt supports Home Assistant MQTT Discovery but can also be used without Home Assistant.\n\nOnly requirement is MQTT Broker to connect to.\n\n## Example usecase\n\nAttach SCD30 to Raspberry Pi Zero W I2C bus and run this gateway to publish CO2, temperature and humidity to Home Assistant.\n\n## Configuration\n\nApplication is configure with environment variables\n\n| variable        | required | default | description |\n|-----------------|:--------:|---------|-------------|\n| SCD30_MQTT_URL        |    x     |         | mqtt url, for example tcp://10.1.2.3:8883 |\n| SCD30_MQTT_USER       |          |         | mqtt username |\n| SCD30_MQTT_PASSWORD   |          |         | mqtt password |\n| SCD30_MQTT_CLIENT_ID  |          | scd30   | mqtt client id |\n| SCD30_DEBUG           |          | false   | enable debug output, true/false |\n| SCD30_ID              |          | scd30   | home assistant discovery id |\n| SCD30_TEMP_OFFSET     |          | 150     | temperature compensation offset |\n| SCD30_NAME            |          | SCD30   | home assistant device name |\n| SCD30_INTEVAL         |          | 50      | measurement interval in seconds |\n| SCD30_AUTOCAL         |          | 1       | 1 to enable automatic calibration, 0 to disable |\n| SCD30_FORCECAL        |          |         | CO2 ppm to force calibration to |\n\n## Usage\n\nFor example with following script\n```sh\n#!/bin/sh\n\n# Change to your real mqtt url\nexport MQTT_URL=tcp://localhost:8883\n\n./scd30-mqtt\n```\n\n## MQTT Topics used\n\n- homeassistant/status subscribe to HA status changes\n- scd30/_id_/co2 publish co2\n- scd30/_id_/temperature publish temperature\n- scd30/_id_/humidity publish humidity\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvainio%2Fscd30-mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpvainio%2Fscd30-mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvainio%2Fscd30-mqtt/lists"}