Skip to content

Commit

Permalink
docs(examples): add aqara magic cube with z2m example
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviml committed Mar 17, 2020
1 parent fb0fe1a commit 4317df6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
31 changes: 27 additions & 4 deletions docs/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Hue Bridge HA integration for the lights and z2m for E1810 IKEA controller.
hallway_light_group_no_toggle:
# all actions, but toggle/hold for smooth operation with light groups on Hue Bridge
# use HA groups to control dimming and color/color temp change
# use Hue bridge light group for even and syncronized on/off function
# use Hue bridge light group for even and syncronized on/off function
module: controllerx
class: E1810Controller
controller: sensor.0x90fd9ffffe17d796_action
Expand All @@ -129,13 +129,13 @@ hallway_light_group_no_toggle:

hallway_light_group_toggle:
# toggle/hold for smooth operation with light groups on Hue Bridge
# use Hue bridge light group for even and syncronized on/off function
# use Hue bridge light group for even and syncronized on/off function
module: controllerx
class: E1810Controller
controller: sensor.0x90fd9ffffe17d796_action
integration: z2m
# transition: 1000 # transition attribute works on Hue bridge
light: light.hallway # Hue light group. On/off completely in sync, as zigbee group commands are used by Hue bridge
light: light.hallway # Hue light group. On/off completely in sync, as zigbee group commands are used by Hue bridge
actions:
- toggle
- toggle_hold
Expand Down Expand Up @@ -226,7 +226,30 @@ example_app:
4: previous_track # Flip180
```
Customise the E1810 to invert the click and hold actions and control a group of sonos devices. By default it skips track when pressing, whit this it skips source by pressing.
Customising Aqara magic cube with z2m. This makes use of the CallServiceController to turn on different HA scenes.
```yaml
cube_bedroom:
module: controllerx
class: CallServiceController
controller: sensor.cube_bedroom_action
integration: z2m
mapping:
flip90:
service: scene.turn_on
data:
entity_id: scene.bedroom1
flip180:
service: scene.turn_on
data:
entity_id: scene.bedroom2
tap:
service: scene.turn_on
data:
entity_id: scene.bedroom3
```
Customising the E1810 to invert the click and hold actions and control a group of sonos devices. By default it skips track when pressing, whit this it skips source by pressing.
```yaml
sonos_speaker:
Expand Down
1 change: 0 additions & 1 deletion docs/others/custom-controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ custom_hue_dimmer_example:
class: CallServiceController
controller: sensor.office_controller_action
integration: z2m
light: light.office
mapping:
up-press:
- service: script.my_script
Expand Down

0 comments on commit 4317df6

Please sign in to comment.