{"id":25391461,"url":"https://github.com/bigouden/hue-motion-sensor-exporter","last_synced_at":"2026-04-30T09:37:10.320Z","repository":{"id":127663056,"uuid":"387589605","full_name":"Bigouden/hue-motion-sensor-exporter","owner":"Bigouden","description":"Hue Motion Sensor Prometheus Exporter","archived":false,"fork":false,"pushed_at":"2025-06-01T10:57:10.000Z","size":218,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"devel","last_synced_at":"2025-06-01T19:15:40.575Z","etag":null,"topics":["alerting","devops","docker","metrics","monitoring","observability","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bigouden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-07-19T20:44:20.000Z","updated_at":"2024-07-12T12:29:44.000Z","dependencies_parsed_at":"2025-01-20T23:20:28.843Z","dependency_job_id":"c66acad1-911c-47ba-8719-deec39175039","html_url":"https://github.com/Bigouden/hue-motion-sensor-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bigouden/hue-motion-sensor-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bigouden%2Fhue-motion-sensor-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bigouden%2Fhue-motion-sensor-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bigouden%2Fhue-motion-sensor-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bigouden%2Fhue-motion-sensor-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bigouden","download_url":"https://codeload.github.com/Bigouden/hue-motion-sensor-exporter/tar.gz/refs/heads/devel","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bigouden%2Fhue-motion-sensor-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32460781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["alerting","devops","docker","metrics","monitoring","observability","prometheus","prometheus-exporter"],"created_at":"2025-02-15T15:42:55.576Z","updated_at":"2026-04-30T09:37:10.303Z","avatar_url":"https://github.com/Bigouden.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hue Motion Sensor Exporter\n\n## Description\n\nExporter Prometheus des indicateurs (présence, luminosité, température, ...) remontés par le détecteur de mouvement Philips Hue.\n\n## Variable d'environement\n\n| Variable d'environement | Description | Valeur par défaut |\n| ------ | ------ | ------ |\n| HUE_MOTION_SENSOR_EXPORTER_LOGLEVEL | Niveau de verbosité de l'exporter | INFO |\n| HUE_MOTION_SENSOR_EXPORTER_NAME | Valeur 'job' des métriques remontées | dockerhub-limit-exporter |\n| HUE_MOTION_SENSOR_EXPORTER_PORT | Port d'écoute de l'exporter | 8123 |\n| HUE_USERNAME | Utilisateur Hue Bridge | Vide |\n| HTTP_PROXY | Proxy HTTP  | Vide |\n| HTTPS_PROXY | Proxy HTTPS  | Vide |\n\n## Format des métriques\n\nLes métriques remontées par l'exporter sont toutes préfixées par la chaine de caractère : **'hue_motion_sensor_'**.\n\n```bash\n# HELP hue_motion_sensor_presence Présence (1: OUI, 0: NON)\n# TYPE hue_motion_sensor_presence gauge\nhue_motion_sensor_presence{job=\"hue-motion-sensor-exporter\",room=\"Salon\"} 0.0\n# HELP hue_motion_sensor_battery Batterie restante en %\n# TYPE hue_motion_sensor_battery gauge\nhue_motion_sensor_battery{job=\"hue-motion-sensor-exporter\",room=\"Salon\"} 100.0\n# HELP hue_motion_sensor_state Etat (1: ON, 0: OFF)\n# TYPE hue_motion_sensor_state gauge\nhue_motion_sensor_state{job=\"hue-motion-sensor-exporter\",room=\"Salon\"} 1.0\n# HELP hue_motion_sensor_lightlevel Luminosité en lx\n# TYPE hue_motion_sensor_lightlevel gauge\nhue_motion_sensor_lightlevel{job=\"hue-motion-sensor-exporter\",room=\"Salon\"} 8552.0\n# HELP hue_motion_sensor_temperature Température en °C\n# TYPE hue_motion_sensor_temperature gauge\nhue_motion_sensor_temperature{job=\"hue-motion-sensor-exporter\",room=\"Salon\"} 1833.0\n```\n\n## Lancement de l'exporter\n\nL'exporter est \"packagé\" sous forme de conteneur Docker. \n\nUne fois le conteneur construit, il peut être lancé comme suit :\n\n`docker run -dit -p 8123:8123 hue-motion-sensor-exporter`\n\nL'association \"Pièce/Détecteur de mouvement\" se fait en alimentant la variable **HUE_MOTION_SENSORS** (liste de dictionnaires) du fichier **hue_motion_sensor_exporter.py** :\n\nExemple :\n\n```bash\nHUE_MOTION_SENSORS = [\n    {'uniqueid': '00:17:88:01:04:b6:e5:df-02-04', 'room': 'Salon'}\n]\n```\n\n## Tableau de bord Grafana\n\nUn tableau de bord Grafana est disponible dans le répertoire **grafana** et permet l'exploitation des métriques remontées par l'exporter.\n\n_Capture d'écran :_\n\n![capture d'écran Grafana](grafana/grafana.png \"Capture d'écran Grafana\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigouden%2Fhue-motion-sensor-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigouden%2Fhue-motion-sensor-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigouden%2Fhue-motion-sensor-exporter/lists"}