Blog2021 ≫ No joy with the phoscon app or deconz api so far

I tried that raspberry pi / zigbee interface1, and it's working. The recommended software2 however less so. The app doesn't control the lights and I can't figure out yet how to use it to use a light switch to control the lights. It looks like the PIR is set up to control the lights, but it's not working. Could be something to do with it identifying the IKEA GU10 lights as "On/Off plug-in unit". Also the API says "succesfully turned the lights off", but it's just not doing it. All the time the lights are connected to this system, they're not connected to the normal system so the normal lights and Google Home and so on doesn't recognise them. I've only set this up in the study at least, so the whole house is not broken.

auto image

Here's how I'm using the API:

curl -H 'Content-Type: application/json' -X GET http://192.168.1.181/api/ABCDEF1234/lights
{
  "1": {
    "etag": "e263da7eed1dd4aaa221c8cc36574776",
    "hascolor": false,
    "lastannounced": null,
    "lastseen": "2021-02-18T16:37Z",
    "manufacturername": "dresden elektronik",
    "modelid": "RaspBee II",
    "name": "Configuration tool 1",
    "state": {
      "reachable": true
    },
    "swversion": "0x26610700",
    "type": "Configuration tool",
    "uniqueid": "00:21:2e:ff:ff:06:24:6a-01"
  },
  "2": {
    "etag": "e54443dd2c19298a12a00ecb6515f307",
    "hascolor": false,
    "lastannounced": null,
    "lastseen": "2021-02-18T16:36Z",
    "manufacturername": "_TZ3000_vmpbygs5",
    "modelid": "TS011F",
    "name": "Study light 1",
    "state": {
      "alert": "none",
      "on": false,
      "reachable": true
    },
    "swversion":  null,
    "type": "On/Off plug-in unit",
    "uniqueid": "bc:33:ac:ff:fe:d7:70:94-01"}
  }
}
$ curl -H 'Content-Type: application/json' -X PUT http://192.168.1.181/api/ABCDEF1234/lights/2/state -d '{"on":false}'
[
  {
    "success": {
      "/lights/2/state/on": false
    }
  }
]

So it looks like it should be working, it's just not.

I really like the idea of the phoscon app, the control it gives. I first installed it because I want to control in more detail what happens when the PIR is triggered, but it looks like I can use it to reprogramme the buttons of the remote controls too.

raspberry pi: Credit card sized super cheap computer, awesome.

⬅️ :: ➡️

Paul Clarke's weblog - I live in A small town, Kent. Wed to Clare and father to two, I am a full stack web developr, + I do js / Node, some ruby, python, php ect ect. I like pubs, running, eating, home-automation + other diy stuff, history, genealogy, TV, squirrels, pirates, lego, + TIME TRAVEL.