Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timmo001/homeassistant-integration-supabase-export
Home Assistant Integration - Supabase Export
https://github.com/timmo001/homeassistant-integration-supabase-export
hacs hacs-integration home-assistant home-assistant-integration home-automation homeassistant homeassistant-integration supabase
Last synced: 11 days ago
JSON representation
Home Assistant Integration - Supabase Export
- Host: GitHub
- URL: https://github.com/timmo001/homeassistant-integration-supabase-export
- Owner: timmo001
- License: mit
- Created: 2023-02-26T13:32:11.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-03-02T22:39:19.000Z (over 1 year ago)
- Last Synced: 2024-10-03T20:41:41.144Z (about 1 month ago)
- Topics: hacs, hacs-integration, home-assistant, home-assistant-integration, home-automation, homeassistant, homeassistant-integration, supabase
- Language: Python
- Homepage: https://timmo.dev
- Size: 34.2 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Home Assistant Integration - Supabase Export
This integration allows you to export data from Home Assistant to a Supabase database.
## Installation
[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=timmo001&repository=homeassistant-integration-supabase-export&category=integration)
This integration is available in the [Home Assistant Community Store](https://hacs.xyz/).
## Setup
1. Create a Supabase project and database.
1. Run the following SQL query to create the required tables:```sql
create table homeassistant_entities (
id bigint not null primary key,
created_at timestamp default now(),
entity_id text not null,
state text,
attributes json,
last_changed timestamp default now()
);create table homeassistant_metadata (
id bigint not null primary key,
created_at timestamp default now(),
provisioned boolean,
data json
);
```## Configuration
[![Open your Home Assistant instance and start setting up a new integration.](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=supabase_export)
You can configure the integration via the Home Assistant UI.
### Options
Once the integration is configured, you should then configure the options for the integration. This can be done via the Home Assistant UI.
From here, you can configure the following options:
- **Update interval**: The interval at which the integration will update the data in the database. This is in seconds.
- **Entities**: The entities that you want to export to the database.