{"id":17449304,"url":"https://github.com/heiso/knoblight","last_synced_at":"2026-05-07T02:38:40.189Z","repository":{"id":146936383,"uuid":"540064767","full_name":"heiso/knoblight","owner":"heiso","description":"Knoblight is a little IoT light knob acting as a dimmer for some homeassistant lights.","archived":false,"fork":false,"pushed_at":"2023-01-29T17:16:40.000Z","size":2115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T11:29:44.985Z","etag":null,"topics":["esp8266","home-assistant","iot","mqtt","openscad","stl"],"latest_commit_sha":null,"homepage":"","language":"C++","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/heiso.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":"2022-09-22T16:10:36.000Z","updated_at":"2022-09-23T20:36:51.000Z","dependencies_parsed_at":"2024-03-15T17:16:13.937Z","dependency_job_id":null,"html_url":"https://github.com/heiso/knoblight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heiso/knoblight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiso%2Fknoblight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiso%2Fknoblight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiso%2Fknoblight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiso%2Fknoblight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heiso","download_url":"https://codeload.github.com/heiso/knoblight/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiso%2Fknoblight/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32720769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"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":["esp8266","home-assistant","iot","mqtt","openscad","stl"],"created_at":"2024-10-17T21:12:20.858Z","updated_at":"2026-05-07T02:38:40.157Z","avatar_url":"https://github.com/heiso.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KnobLight\n\nKnoblight is a little IoT light knob acting as a dimmer for some homeassistant lights.\nOnce it's powered, it will connect to a wifi network and discuss with [Home Assistant (https://www.home-assistant.io)](https://www.home-assistant.io/) through [MQTT (https://www.home-assistant.io/integrations/mqtt)](https://www.home-assistant.io/integrations/mqtt/).\n\n\u003cimg src=\"pictures/finished.jpeg\" width=\"500\"\u003e\n\u003cimg src=\"pictures/opened.jpeg\" width=\"500\"\u003e  \n\n![scadview](pictures/scadview.png)\n\n## Scad design\n\nYou'll need to clone this openscad [library (https://github.com/heiso/openscad-bits)](https://github.com/heiso/openscad-bits) in your openscad libraries folder (probably `~/Documents/OpenSCAD/libraries/` on mac).\n\n## Arduino code\n\nYou should copy `src/secrets.tpl.h` as `src/secrets.h` and set your values before trying to flash to your esp8266\n\n## HA automation example\n\nGiven we want to control lights in the area_id **room**\n\n```yaml\n- id: 'knoblight_dimmer'\n  alias: Knoblight - dimmer\n  description: 'Set brightness accordingly to knoblight turns'\n  trigger:\n  - platform: mqtt\n    topic: knoblight/brightness/set\n  condition: []\n  action:\n  - service: light.turn_on\n    data_template:\n      transition: 1\n      brightness: '{{ trigger.payload_json }}'\n    target:\n      area_id: room\n  mode: queued\n  max: 5\n\n- id: 'knoblight_btn'\n  alias: Knoblight - btn\n  description: 'Toggle lights on knoblight btn pressed'\n  trigger:\n  - platform: mqtt\n    topic: knoblight/btn\n  condition: []\n  action:\n  - service: light.toggle\n    data: {}\n    target:\n      area_id: room\n  mode: single\n\n- id: 'knoblight_sync'\n  alias: Knoblight - sync\n  description: 'Periodically send the light brightness to the knob so it can stay up to date'\n  trigger:\n  - platform: time_pattern\n    seconds: /10\n  condition: []\n  action:\n  - service: mqtt.publish\n    data:\n      topic: knoblight/brightness\n      payload_template: '{{ state_attr(''light.room'', ''brightness'') }}'\n  mode: single\n```\n\n## BOM (Bill Of Materials)\n\n1 KY_040_encoder  \n1 Wemos D1 mini (esp8266)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiso%2Fknoblight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheiso%2Fknoblight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiso%2Fknoblight/lists"}