mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
feat: add Home Assistant example Plugin
This commit is contained in:
parent
282fdac583
commit
dfd77b392a
3 changed files with 128 additions and 0 deletions
|
|
@ -87,5 +87,24 @@ class ExampleReceiptsSeeder extends Seeder
|
|||
'flux_icon_name' => 'calendar',
|
||||
]
|
||||
);
|
||||
|
||||
Plugin::create(
|
||||
[
|
||||
'uuid' => '4349fdad-a273-450b-aa00-3d32f2de788d',
|
||||
'name' => 'Home Assistant',
|
||||
'user_id' => '1',
|
||||
'data_payload' => null,
|
||||
'data_stale_minutes' => 30,
|
||||
'data_strategy' => 'polling',
|
||||
'polling_url' => 'http://raspberrypi.local:8123/api/states',
|
||||
'polling_verb' => 'get',
|
||||
'polling_header' => 'Authorization: Bearer YOUR_API_KEY',
|
||||
'render_markup' => null,
|
||||
'render_markup_view' => 'receipts.home-assistant',
|
||||
'detail_view_route' => null,
|
||||
'icon_url' => null,
|
||||
'flux_icon_name' => 'thermometer',
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue