Source: factory.service/package.gekko/ObjServiceGoogleHome.py
Home Assistant integration service for the Gekko package.
Connects to the Home Assistant REST API. The HA URL and watched
domains are read from ObjServiceGoogleHome.yaml (settings section).
The access token is read from config.yaml → gekko.home_assistant.
...
| Method | Signature | Description |
|---|---|---|
| ping | ping() -> bool |
Return True if Home Assistant is reachable. |
| list_devices | list_devices() -> list[dict] |
Return all light and switch entities from Home Assistant |
| get_device_state | get_device_state(entity_id: str) -> dict |
Return current state dict for an entity. |
| set_device_on_off | set_device_on_off(entity_id: str, on: bool) -> bool |
Turn a light or switch on or off. |
| set_brightness | set_brightness(entity_id: str, brightness: int) -> bool |
Set brightness 0–255 on a light entity. |
| log_event | log_event(entity_id: str, event_type: str, payload: dict) -> None |
Write an inbound HA event to def_google_home_events. |
| process | process(context: dict) -> dict |
Workflow entry point — control a device from context. |