Skip to content

Instantly share code, notes, and snippets.

@ragusa87
Last active February 1, 2022 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ragusa87/e75c42160a55fdfe4fad9cbdfe1b2f6a to your computer and use it in GitHub Desktop.
Save ragusa87/e75c42160a55fdfe4fad9cbdfe1b2f6a to your computer and use it in GitHub Desktop.
Zigbee2MQTT Memo

Zigbee2MQTT on Raspberry PI 1

Check that everything is fine in the logs:

journalctl -u zigbee2mqtt -f

IKEA Bulbs & Control

Use the web interface for almost everything http://192.168.0.200:8080

Adding to default group doesn't work via WEB. You can use "the Explorer app" to run commands via GUI:

sudo snap install mqtt-explorer

Add the devices in the same groups and create the 6 scenes (one for each color)

  • Manually add the bulb to group g1 from cli:

    zigbee2mqtt/bridge/request/group/members/add {"group": "g1", "device": "d1"}

  • Create a new group "hack"
  • Manually add the bulb to group "hack" via web interface
  • Create 6 scenario for the group (be sure the item are in it first) via cli

zigbee2mqtt/hack/set (Each block are in a separated command)


{
  "scene_add": {
      "ID": 1,
      "transition": 0, 
      "state": "ON",
      "color": {"x":0.6308,"y":0.3231}
  }
}

{
  "scene_add": {
      "ID": 2,
      "transition": 0, 
      "state": "ON",
      "color": {"x":0.4911,"y":0.4286}
  }
}

{
  "scene_add": {
      "ID": 3,
      "transition": 0, 
      "state": "ON",
      "color": {"x":0.4105,"y":0.4895}
  }
}

{
  "scene_add": {
      "ID": 4,
      "transition": 0, 
      "state": "ON",
      "color": {"x":0.2963,"y":0.2963}
  }
}

{
  "scene_add": {
      "ID": 5,
      "transition": 0, 
      "state": "ON",
      "color": {"x":0.1491,"y":0.0614}
  }
}

{
  "scene_add": {
      "ID": 6,
      "transition": 0, 
      "state": "ON",
      "color": {"x":0.3415,"y":0.1707}
  }
}
  • Set all your bulb to the same "scene" via

zigbee2mqtt/hack/set {"scene_recall": 2}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment