Skip to content

Commit

Permalink
Merge pull request #37 from cgiesche/streamdeck-homeassistant-30
Browse files Browse the repository at this point in the history
New configuration screen, Long press action
  • Loading branch information
cgiesche committed Apr 30, 2021
2 parents 5100f9f + 2cc6e96 commit 19aac63
Show file tree
Hide file tree
Showing 13 changed files with 532 additions and 173 deletions.
29 changes: 4 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ service that does not need any more information but the entity id.
# Configuration
There are two sections on the plugin's cofiguration panel:
* Home Assistant Settings
Contains global settings for your Home Assistant installation. Once saved, the settings are valid for all Buttons.
* Entity Settings
Contains global settings for your Home Assistant installation. Once saved, the settings are used for all stream deck Buttons.
* Entity Settings
Contains settings for an individual button.

## Home Assistant Settings
Expand All @@ -52,7 +52,8 @@ After you saved your Home Assistant Settings, the plugin will automatically try
### Basic configuration
* Domain: Home Assistant entities are grouped by domains. Select the domain (for example "switch") of an entity, you want to configure.
* Entity: This is the actual entity you are going to configure (for example "Kitchen Light")
* Service: The service that will be called every time you press the StreamDeck button for this entity.
* Service: The service that will be called every time you press the StreamDeck button.
* Service (long press): The service that will be called every time you press and hold the StreamDeck button for more than 300ms.
* Service Data JSON: JSON formatted data that is sent with your service call when you press a button.
Example:
```
Expand All @@ -79,25 +80,3 @@ After you hit the save button, the button should immediately show the new config
# Happy? Consider to donating me a coffee :)
[![buy me a coffee](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/donate?hosted_button_id=3UKRJEJVWV9H4)

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
Binary file modified doc/entity_settings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/example.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/ha_settings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
102 changes: 102 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"bootstrap": "^4.6.0",
"bootstrap-vue": "^2.21.2",
"bootswatch": "^4.6.0",
"core-js": "^3.6.5",
"nunjucks": "^3.2.3",
"vue": "^2.6.11"
Expand Down
1 change: 0 additions & 1 deletion public/pi.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
name=viewport>
<meta content=yes name=apple-mobile-web-app-capable>
<meta content=black name=apple-mobile-web-app-status-bar-style>
<link rel="stylesheet" href="css/sdpi.css">
<title>HomeAssistant Plugin PI</title>
</head>
<body>
Expand Down

0 comments on commit 19aac63

Please sign in to comment.