{"id":17003369,"url":"https://github.com/wrboyce/ad-powerfsm","last_synced_at":"2026-05-11T16:02:13.244Z","repository":{"id":66628986,"uuid":"231086351","full_name":"wrboyce/ad-powerfsm","owner":"wrboyce","description":"Power-based Finite State Machine for Home Assistant/AppDaemon","archived":false,"fork":false,"pushed_at":"2021-06-09T12:30:03.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T09:41:35.670Z","etag":null,"topics":["appdaemon","home-assistant"],"latest_commit_sha":null,"homepage":null,"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/wrboyce.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":"2019-12-31T12:37:16.000Z","updated_at":"2024-09-25T21:22:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5c02d98-4d9d-4acf-bac6-017e3eb77dbf","html_url":"https://github.com/wrboyce/ad-powerfsm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrboyce%2Fad-powerfsm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrboyce%2Fad-powerfsm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrboyce%2Fad-powerfsm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrboyce%2Fad-powerfsm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wrboyce","download_url":"https://codeload.github.com/wrboyce/ad-powerfsm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244937740,"owners_count":20535124,"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":["appdaemon","home-assistant"],"created_at":"2024-10-14T04:30:38.822Z","updated_at":"2026-05-11T16:02:08.202Z","avatar_url":"https://github.com/wrboyce.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ad-powerfsm\n\n_Power-based Finite State Machines for [Home Assistant](https://www.home-assistant.io/)/[AppDaemon](https://www.home-assistant.io/docs/ecosystem/appdaemon/)._\n\n## Installation\n\nThis app is best installed using [HACS](https://github.com/custom-components/hacs), so that you can easily track and download updates.\n\nAlternatively, download the `powerfsm` directory from inside the `apps` directory here to your local `apps` directory, then add the configuration to enable the `powerfsm` module.\n\n## App configuration\n\n```yaml\nlounge_tv_state:\n  module: powerfsm\n  class: PowerFSM\n  power_sensor: sensor.lounge_tv:current_power_w\n  idle_power: 10\n  idle_timeout: 0\n  idle_state: Standby\n  work_state: On\n```\n\nkey | optional | type | default | description\n-- | -- | -- | -- | --\n`module` | False | string | | The module name of the app.\n`class` | False | string | | The name of the Class.\n`power_sensor` | False | AttributeDefinition | | The entity_id of the HACS sensor.\n`idle_power` | False | number | | Power below or equal to which the device is idle\n`idle_timeout` | True | TimeDuration | 0 | How long the consumption must fall below idle_power to trigger a transition\n`idle_state` | True | string | Idle | Name of the state when idle\n`work_state` | True | string | Working | Name of the state when working\n`attn_state` | True | string | Needs Attention | Name of the state when attenion is required\n`requires_attn` | True | boolean | False | Requires attention to transition from working to idle\n\n### Types\n\n#### AttributeDefinition\n\nAn entity id with an optional state attribute suffix separated with a colon. e.g., `sensor.dish_washer_power`, `switch.dish_washer:power`.\n\n#### TimeDuration\n\nA number will be interpreted as a value in seconds; `h`, `m`, `s` suffixes are supported. e.g., `1h30m`, `10m`, `30s`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrboyce%2Fad-powerfsm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwrboyce%2Fad-powerfsm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrboyce%2Fad-powerfsm/lists"}