{"id":19928515,"url":"https://github.com/nareddyt/ha-templight-sensor","last_synced_at":"2026-05-02T05:09:18.783Z","repository":{"id":62289682,"uuid":"533591834","full_name":"nareddyt/ha-templight-sensor","owner":"nareddyt","description":"Home Assistant custom integration to extract out light attributes (color temp, brightness, etc.) into separate sensors.","archived":false,"fork":false,"pushed_at":"2022-11-06T18:17:32.000Z","size":712,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-02T16:12:25.078Z","etag":null,"topics":["hacs","home-assistant","homeassistant","integration","light","templates"],"latest_commit_sha":null,"homepage":"","language":"Python","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/nareddyt.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}},"created_at":"2022-09-07T03:37:11.000Z","updated_at":"2022-10-29T23:47:48.000Z","dependencies_parsed_at":"2023-01-22T11:31:05.116Z","dependency_job_id":null,"html_url":"https://github.com/nareddyt/ha-templight-sensor","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nareddyt/ha-templight-sensor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nareddyt%2Fha-templight-sensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nareddyt%2Fha-templight-sensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nareddyt%2Fha-templight-sensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nareddyt%2Fha-templight-sensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nareddyt","download_url":"https://codeload.github.com/nareddyt/ha-templight-sensor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nareddyt%2Fha-templight-sensor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263322786,"owners_count":23448712,"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","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":["hacs","home-assistant","homeassistant","integration","light","templates"],"created_at":"2024-11-12T22:37:30.676Z","updated_at":"2026-05-02T05:09:13.747Z","avatar_url":"https://github.com/nareddyt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TempLight Sensor\n\n[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg?style=for-the-badge)](https://github.com/hacs/integration)\n\n_Home Assistant custom integration to extract out light attributes (color temp, brightness, etc.) into separate diagnostic sensors._\n\n![Shows the original light entity and newly added diagnostic sensors](img/diagnostic-sensor.png \"TempLight Sensors\")\n\n- [TempLight Sensor](#templight-sensor)\n  - [Overview](#overview)\n  - [Installing](#installing)\n  - [Configuration](#configuration)\n  - [Benefits](#benefits)\n    - [No More Custom Template Sensors](#no-more-custom-template-sensors)\n    - [Save Attribute History](#save-attribute-history)\n    - [Easier Automations \u0026 Frontend Views](#easier-automations--frontend-views)\n  - [Supported Attributes](#supported-attributes)\n  - [Supported Entities](#supported-entities)\n  - [FAQ](#faq)\n    - [Naming](#naming)\n    - [Read Only](#read-only)\n\n## Overview\n\nTempLight Sensors are diagonstic sensors that extract out attributes from an underlying light.\nThis integration creates a few derived sensors for each pre-existing `light` entity.\n\n## Installing\n\n1) Install HACS.\n1) Add this GitHub repository as a custom repository in your HACS install.\n1) Search for `TempLight Sensor` in HACS and install it.\n1) Restart Home Assistant. \n\nAll _supported_ lights in your Home Assistant install will now have diagonstic TempLight Sensors associated with them.\n\n## Configuration\n\nThere is no configuration! TempLight Sensors are automatically added for all _supported_ lights in your Home Assistant install.\n\n## Benefits\n\nA few reasons these diagonstic sensors are useful:\n\n### No More Custom Template Sensors\n\nYou don't need to create your own template sensors to just extract out an attribute as state! It essentially occurs automatically now for any light you add.\n\n### Save Attribute History\n\nBy default, Home Assistant does not save your lights' attributes in the database. You cannot query Home Assistant for the previous attribute values - e.g. _\"How bright was my night light yesterday at 8am?\"_\n\nBy extracting out these attributes to different sensors and tracking their state separately, the values are now saved to the database. You can easily view history for each individual attribute.\n\n![Shows the history for the color temperature attribute via TempLight Sensor](img/color-temp-history.png \"Color Temperature History\")\n\n### Easier Automations \u0026 Frontend Views\n\nSome frontend cards and automations do not support reading a particular attribute for a given sensor. - e.g. _Display a frontend card that shows the current color temperature of the bedroom light._\n\nWith TempLight Sensors, you can easily use these attributes, as they are now native entity state objects.\n\n![Shows the entity frontend card config to view TempLight Sensor's state (light's color_temp attribute)](img/using-state-frontent.png \"Using State in the Frontend\")\n\n## Supported Attributes\n\nThe following light attributes are extracted and stored as individual TempLight Sensors:\n\n- Brightness (%) via the `brightness` attribute\n- Color temperature (Kelvin) via the `color_temp` attribute\n- Color hue via the `hs_color` attribute\n- Color saturation via the `hs_color` attribute\n\nPlease file a feature request if would like to see other light attributes as sensors.\n\nIf the underying light does not support an attribute above (e.g. you have an RGB light that does not have color temperature), the sensor will still be created but show up as `Unknown`.\n\nIf the light is turned off, all TempLight Sensors will show the last available value. They will **not** show as `Disabled`, `Unavailable`, or `Unknown`.\n\n## Supported Entities\n\nTempLight Sensors are automatically created for the following entities:\n\n1) `light` entities that have a unique ID and are registered via the entity and device registry internally.\n\nPlease file a feature request if would like to see other supported entities.\n\n## FAQ\n\n### Naming\n\nWhy is this integration called **TempLight Sensor**?\n\nIt is a bit historical: To track attributes as state in Home Assistant, the common advice in the HA community forums is to create a new `template_sensor` that extracts that attribute into another sensor.\n\nBut also a play on words: Originally this integration was created to track `light` attributes. Hence `template_sensor` --\u003e `templight_sensor`.\n\n### Read Only\n\nTempLight Sensors are diagnostic sensors.\nThey only output the underlying value. They do not support overwriting the value in the underlying entity.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnareddyt%2Fha-templight-sensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnareddyt%2Fha-templight-sensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnareddyt%2Fha-templight-sensor/lists"}