https://github.com/alertua/ha_pyscript_modules
https://github.com/alertua/ha_pyscript_modules
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alertua/ha_pyscript_modules
- Owner: ALERTua
- Created: 2022-09-22T09:02:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-08-19T09:28:10.000Z (10 months ago)
- Last Synced: 2025-08-19T11:34:46.805Z (10 months ago)
- Language: Python
- Size: 107 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://stand-with-ukraine.pp.ua)
[](https://stand-with-ukraine.pp.ua)
[](https://stand-with-ukraine.pp.ua)
[](https://stand-with-ukraine.pp.ua)
# ha_pyscript_modules

```
from entities.entity import entity
from entities.ha import HA
# or
from imports import *
ha = HA()
ha_external_url = ha.external_url()
ent = entity(constants.OFFICE_LIGHTS) # resolves to entities.light.Light instance
ent.turn_off()
```