{"id":13808991,"url":"https://github.com/aexel90/hue_exporter","last_synced_at":"2025-08-16T16:31:57.458Z","repository":{"id":57567331,"uuid":"322690006","full_name":"aexel90/hue_exporter","owner":"aexel90","description":"Philips Hue exporter for prometheus","archived":false,"fork":false,"pushed_at":"2025-03-18T16:42:56.000Z","size":286,"stargazers_count":21,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T14:11:36.416Z","etag":null,"topics":["golang","hue","hue-api","hue-bridge","hue-bulbs","hue-lights","hue-motion-sensor","hue-sensors","philips","philips-hue","philips-hue-api","philips-hue-bridge","philips-hue-bulbs","philips-hue-lighting","philips-hue-lights","philips-hue-switch","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aexel90.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}},"created_at":"2020-12-18T19:45:50.000Z","updated_at":"2025-04-04T06:29:42.000Z","dependencies_parsed_at":"2024-06-12T15:51:17.642Z","dependency_job_id":null,"html_url":"https://github.com/aexel90/hue_exporter","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":0.08571428571428574,"last_synced_commit":"9b8ee4a93193f836b01921d02b6837229f8e846e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aexel90/hue_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aexel90%2Fhue_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aexel90%2Fhue_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aexel90%2Fhue_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aexel90%2Fhue_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aexel90","download_url":"https://codeload.github.com/aexel90/hue_exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aexel90%2Fhue_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270740773,"owners_count":24637481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["golang","hue","hue-api","hue-bridge","hue-bulbs","hue-lights","hue-motion-sensor","hue-sensors","philips","philips-hue","philips-hue-api","philips-hue-bridge","philips-hue-bulbs","philips-hue-lighting","philips-hue-lights","philips-hue-switch","prometheus","prometheus-exporter"],"created_at":"2024-08-04T01:01:57.157Z","updated_at":"2025-08-16T16:31:57.019Z","avatar_url":"https://github.com/aexel90.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Philips Hue exporter for prometheus\n\nThis exporter exports some variables from Philips Hue Bridge \n(https://www.philips-hue.com)\nto prometheus.\n\n## Build\n\n    go get github.com/aexel90/hue_exporter/\n    cd $GOPATH/src/github.com/aexel90/hue_exporter\n    go install\n\n## Execute\n\nHow to create a user for your bridge is described here: https://developers.meethue.com/develop/get-started-2/\n\nUsage:\n\n    $GOPATH/bin/hue_exporter -h\n\n    Usage of ./hue_exporter:\n        -collect\n                Collect all available metrics\n        -collect-file string\n                The JSON file where to store collect results\n        -hue-url string\n                The URL of the bridge\n        -listen-address string\n                The address to listen on for HTTP requests. (default \"127.0.0.1:9773\")\n        -metrics-file string\n                The JSON file with the metric definitions. (default \"hue_metrics.json\")\n        -test\n                Test configured metrics\n        -username string\n                The username token having bridge access\n\n## Docker\n\n        cp .env.template .env\n        vi .env\n        docker-compose up -d --build\n\n## Example execution\n\n### Running within prometheus:\n\n    $GOPATH/bin/hue_exporter -hue_url 192.168.xxx.xxx -username ZlEH24zabK2jTpJ...  -metrics-file hue_metrics.json \n\n    # HELP hue_bridge_info Non-numeric data, value is always 1\n    # TYPE hue_bridge_info gauge\n    hue_bridge_info{api_version=\"...\",bridge_id=\"...\",internetservice_internet=\"...\",internetservice_remoteaccess=\"...\",internetservice_swupdate=\"...\",internetservice_time=\"...\",ip_address=\"...\",local_time=\"...\",model_id=\"...\",name=\"...\",sw_update_last_change=\"...\",sw_version=\"...\",zigbee_channel=\"...\"} 1\n    ...\n    # HELP hue_light_info Non-numeric data, value is always 1\n    # TYPE hue_light_info gauge\n    hue_light_info{id=\"...\",manufacturer_name=\"...\",model_id=\"...\",name=\"...\",state_alert=\"...\",state_bri=\"...\",state_color_mode=\"...\",state_ct=\"...\",state_on=\"...\",tate_reachable=\"...\",state_saturation=\"...\",sw_config_id=\"...\",sw_version=\"...\",type=\"...\",unique_id=\"...\"} 1\n    ...\n    # HELP hue_light_state light status (1=ON, 0=OFF)\n    # TYPE hue_light_state gauge\n    hue_light_state{name=\"...\"} 1\n    ...\n    # HELP hue_sensor_info Non-numeric data, value is always 1\n    # TYPE hue_sensor_info gauge\n    hue_sensor_info{config_battery=\"...\",config_on=\"...\",config_reachable=\"...\",id=\"...\",manufacturer_name=\"...\",model_id=\"...\",name=\"...\",state_buttonevent=\"...\",tate_daylight=\"...\",state_lastupdated=\"...\",state_lightlevel=\"...\",state_temperature=\"...\",sw_version=\"...\",type=\"...\",unique_id=\"...\"} 1\n    ...\n    # HELP hue_sensor_lightlevel light level\n    # TYPE hue_sensor_lightlevel gauge\n    hue_sensor_lightlevel{name=\"...\"} 0\n    ...\n    # HELP hue_sensor_temperature temperature level celsius degree\n    # TYPE hue_sensor_temperature gauge\n    hue_sensor_temperature{name=\"...\"} 2016\n\n### Test exporter:\n\n    $GOPATH/bin/hue_exporter -hue_url 192.168.xxx.xxx -username ZlEH24zabK2jTpJ... -test -metrics-file hue_metrics.json\n\n### Collect:\n\n    $GOPATH/bin/hue_exporter -hue_url 192.168.xxx.xxx -username ZlEH24zabK2jTpJ... -collect -metrics-file hue_metrics.json -collect-file result.json\n\n## Grafana Dashboard\n\nDashboard ID is 13645.\n\nhttps://grafana.com/grafana/dashboards/13645\n\n![Grafana](https://raw.githubusercontent.com/aexel90/hue_exporter/main/grafana/screenshot.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faexel90%2Fhue_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faexel90%2Fhue_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faexel90%2Fhue_exporter/lists"}