This repository has been archived by the owner on Nov 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: finalizing changes for home assistant
- Loading branch information
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Solar Assistant Browser Automation | ||
=== | ||
|
||
Add the following to your **configuration.yaml** | ||
|
||
```yaml | ||
rest_command: | ||
solar_assistant_work_mode_schedule_update: | ||
url: 'http://localhost:8080/work-mode-schedule?schedule1[from]={{ from }}&schedule1[to]={{ to }}&schedule1[priority]={{ priority }}&schedule1[enabled]={{ enable }}' | ||
method: GET | ||
content_type: 'application/json; charset=utf-8' | ||
timeout: 120 | ||
``` | ||
The rest api can be called with the following method: | ||
### Enable | ||
```yaml | ||
action: rest_command.solar_assistant_work_mode_schedule_update | ||
data: | ||
from: "0500" | ||
to: "0600" | ||
priority: Battery first | ||
enable: "1" | ||
``` | ||
| from | to | priority | enable | | ||
|-----------------------------------|-----------------------------------|---------------------------------------------|-------------------------------------------| | ||
| Timestamp with 4 digits 0000-2359 | Timestamp with 4 digits 0000-2359 | Battery first<br/>Load first<br/>Grid first | To enable use `1`<br/>To disable use `-1` | |
16 changes: 16 additions & 0 deletions
16
solar_assistant_browser_automation_api/translations/da.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
configuration: | ||
url: | ||
name: Link | ||
description: >- | ||
Fuld adresse til solar assistant, eksempel https://xxx.eu.solar-assistant.io | ||
user: | ||
name: Brugernavn | ||
description: >- | ||
Brugernavn til Solar Assistant | ||
pass: | ||
name: Kodeord | ||
description: >- | ||
Kodeord til Solar Assistant | ||
network: | ||
8080/tcp: Webserver port |