Hi,
I am trying to set the coordinates for the daylight sensor via REST API since they have not been set when setting up the Phoscon gateway. The daylight sensors currently is configured as follows:
$ curl http://192.168.123.123/api/1234567890/sensors/1 | jq . {
"config": {
"configured": false,
"on": true,
"sunriseoffset": 30,
"sunsetoffset": -30
},
"etag": "98e0a065627c5debb677a65865eb5623",
"manufacturername": "Philips",
"modelid": "PHDL00",
"name": "Daylight",
"state": {
"dark": null,
"daylight": null,
"lastupdated": "none",
"status": null
},
"swversion": "1.0",
"type": "Daylight",
"uniqueid": "00:21:2e:ff:ff:08:76:73-01"
}
When I try to set lat
and long
I get the following error:
$ curl -X PUT -d '{"lat":52.12345678,"long":9.12345678}' http://192.168.123.123/api/1234567890/sensors/1/config | jq .
[
{
"error": {
"address": "/sensors/1/config/lat",
"description": "parameter, lat, not available",
"type": 6
}
},
{
"error": {
"address": "/sensors/1/config/long",
"description": "parameter, long, not available",
"type": 6
}
}
]
What else can I do to configure the daylight sensor?
I start deconz with docker-compose
on a Raspberry PI 4B 4GB with the following file:
version: "2.4"
services:
deconz:
image: deconzcommunity/deconz:stable
container_name: deconz
network_mode: host
restart: always
volumes:
- /opt/deconz:/root/.local/share/dresden-elektronik/deCONZ
devices:
- /dev/ttyAMA0
environment:
- TZ=Europe/Berlin
- DECONZ_DEVICE=/dev/ttyACM0
- DECONZ_WEB_PORT=80
- DECONZ_WS_PORT=443
- DECONZ_VNC_MODE=1
- DECONZ_VNC_PORT=5900
- DECONZ_NOVNC_PORT=0
- DEBUG_INFO=1
- DEBUG_APS=0
- DEBUG_ZCL=0
- DEBUG_ZDP=0
- DEBUG_OTAU=0
cap_add:
- ALL
privileged: true
Thanks in advance for your help and best regards,
Tobias