-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
386 additions
and
75 deletions.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,58 @@ | ||
.. _group : | ||
|
||
Group | ||
========= | ||
|
||
For Dashticz a custom block type 'group' has been created with the following advantages: | ||
|
||
* Instantanious update of the group/scene status when one of the devices changes | ||
* By longpress on a block, a popup will open showing all the group devices. | ||
|
||
Group blocks can be recognized by the border on the right side of the block. | ||
|
||
.. image :: img/group.jpg | ||
Block parameters | ||
---------------- | ||
|
||
.. list-table:: | ||
:header-rows: 1 | ||
:widths: 5 30 | ||
:class: tight-table | ||
|
||
* - Parameter | ||
- Description | ||
* - width | ||
- ``1..12``: The width of the block relative to the column width | ||
* - title | ||
- ``'<string>'``: Custom title for the block | ||
* - icon | ||
- | Defines the icon for this block, choose from: https://fontawesome.com/icons?d=gallery&m=free | ||
| ``'fas fa-eye'`` | ||
* - image | ||
- | If you want to show an image instead of an icon, place image in ``img/`` folder | ||
| ``'bulb_off.png'`` | ||
* - idx | ||
- | Domoticz group ID to be used for device selection | ||
| ``'s12'``: The devices of Domoticz group 12 will be used | ||
| ``12``: The devices of Domoticz group 12 will be used | ||
* - devices | ||
- | Domoticz device id's belonging to this group (only if ``idx`` is not defined) | ||
| ``[ 1, 3, 5]``: Device id 1,3 and 5 will be used | ||
* - longpress | ||
- | ``true``: Enable popup on longpress of block (=default) | ||
| ``false``: Disable popup | ||
* - mixed | ||
- | ``'on'`` (=default): The group state will be 'On' in case at least one device in the group has status 'On' | ||
| ``'off'``: The group state will be 'off' in case at least one device in the group has status 'Off' | ||
|
||
Example | ||
------- | ||
|
||
An example of a group block:: | ||
|
||
blocks['mygroup'] = { | ||
type: 'group', | ||
devices: [12, 14, 16] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.