HUE Lightstripes per HM disablen

Allgemeines zur HomeMatic Haussteuerung

Moderator: Co-Administratoren

Accuracy
Beiträge: 749
Registriert: 22.05.2013, 16:37
Hat sich bedankt: 1 Mal

Re: HUE Lightstripes per HM disablen

Beitrag von Accuracy » 20.01.2018, 12:03

Hi SilverHunter,

ich bekomme leider immer einen Skript Fehler bei dem CURL Befehl:

"Error 1 at row 1 col 312 near ^"on":false}' http://192.168.1.45/api/"

kann es sein dass es ein Problem mit dem Gänsefüsschen gibt oder muss man für CURL noch etwas spezielles installieren?

silverhunter
Beiträge: 47
Registriert: 19.06.2016, 21:10

Re: HUE Lightstripes per HM disablen

Beitrag von silverhunter » 24.01.2018, 21:47

Hallo,

da ich die Lösung im anderen Thread hinterlegt habe, hier auch der Link in diesem:
viewtopic.php?f=19&t=41692&start=10#p414861

Viele Grüße
SilverHunter

Accuracy
Beiträge: 749
Registriert: 22.05.2013, 16:37
Hat sich bedankt: 1 Mal

Re: HUE Lightstripes per HM disablen

Beitrag von Accuracy » 28.01.2018, 13:43

Hi Silver,

ich bräuchte noch einmal Deine Hilfe.

Ich habe es soweit geschafft den BWM im Eingang erfolgreich per Skriptbefehl zu aktivieren / deaktivieren. Das funktioniert soweit alles perfekt.

Leider habe ich aber ein Problem mit dem BWM im Schlafzimmer. Bzw. mit dem Lightstripe der über dem BWM geschalten wird. Irgendwie klappts da nicht.
Ich vermute, dass ich die falsche ID für den BWM 2 habe.
(ich dachte der BWM hat die ID: "23C2CB02-C0CD-45AD-8ADD-04AC5285". Das war der analoge Block an sensordaten aus der GET - Sensor Liste.)

Für den Eingang habe ich folgende ID, die ich im Test auch bestätigen konnte:
"25B0A68A-2B22-48CC-8FA9-90D3F22F"

Hast Du eine Idee was ich falsch mache oder warum ich den BWM 2 nicht de- bzw. aktivieren kann?

Anbei mal meine GET Liste:


{
"1": {
"state": {
"daylight": true,
"lastupdated": "2018-01-28T06:08:01"
},
"config": {
"on": true,
"configured": true,
"sunriseoffset": -46,
"sunsetoffset": -24
},
"name": "Daylight",
"type": "Daylight",
"modelid": "PHDL00",
"manufacturername": "Philips",
"swversion": "1.0"
},
"2": {
"state": {
"status": 0,
"lastupdated": "2018-01-28T06:54:08"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[4]sn:state",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[4]sn:state",
"recycle": false
},
"3": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[4][1]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[4][1]sn:step",
"recycle": false
},
"4": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[2]sn:state",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[2]sn:state",
"recycle": false
},
"5": {
"state": {
"status": null,
"lastupdated": "none"
},
"config": {
"on": false,
"reachable": true
},
"name": "XFDani[2][1]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[2][1]sn:step",
"recycle": false
},
"6": {
"state": {
"status": 0,
"lastupdated": "2018-01-28T08:59:41"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[5]sn:state",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[5]sn:state",
"recycle": false
},
"7": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[5][1]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[5][1]sn:step",
"recycle": false
},
"12": {
"state": {
"status": 0,
"lastupdated": "2018-01-28T07:39:30"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[7]sn:state",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[7]sn:state",
"recycle": false
},
"13": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[7][1]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[7][1]sn:step",
"recycle": false
},
"14": {
"state": {
"status": 0,
"lastupdated": "2018-01-28T08:59:41"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[8]sn:state",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[8]sn:state",
"recycle": false
},
"15": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[8][1]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[8][1]sn:step",
"recycle": false
},
"16": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[3]sn:state",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[3]sn:state",
"recycle": false
},
"17": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[3][1]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[3][1]sn:step",
"recycle": false
},
"18": {
"state": {
"buttonevent": 4002,
"lastupdated": "2018-01-21T03:52:01"
},
"swupdate": {
"state": "noupdates",
"lastinstall": null
},
"config": {
"on": true,
"battery": 100,
"reachable": true,
"pending": []
},
"name": "Hue dimmer switch 1",
"type": "ZLLSwitch",
"modelid": "RWL021",
"manufacturername": "Philips",
"swversion": "5.45.1.17846",
"uniqueid": "00:17:88:01:10:5f:9b:25-02-fc00"
},
"19": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[7][2]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[7][2]sn:step",
"recycle": false
},
"20": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[7][3]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[7][3]sn:step",
"recycle": false
},
"21": {
"state": {
"status": 0,
"lastupdated": "2018-01-28T06:54:08"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[1]sn:state",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[1]sn:state",
"recycle": false
},
"22": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[7][4]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[7][4]sn:step",
"recycle": false
},
"23": {
"state": {
"temperature": 2308,
"lastupdated": "2018-01-28T12:22:58"
},
"swupdate": {
"state": "noupdates",
"lastinstall": null
},
"config": {
"on": true,
"battery": 100,
"reachable": true,
"alert": "none",
"ledindication": false,
"usertest": false,
"pending": []
},
"name": "Hue temperature sensor 1",
"type": "ZLLTemperature",
"modelid": "SML001",
"manufacturername": "Philips",
"swversion": "6.1.0.18912",
"uniqueid": "00:17:88:01:02:02:19:31-02-0402"
},
"24": {
"state": {
"presence": false,
"lastupdated": "2018-01-28T12:17:01"
},
"swupdate": {
"state": "noupdates",
"lastinstall": null
},
"config": {
"on": true,
"battery": 100,
"reachable": true,
"alert": "none",
"ledindication": false,
"usertest": false,
"sensitivity": 2,
"sensitivitymax": 2,
"pending": []
},
"name": "Hue motion sensor 1",
"type": "ZLLPresence",
"modelid": "SML001",
"manufacturername": "Philips",
"swversion": "6.1.0.18912",
"uniqueid": "00:17:88:01:02:02:19:31-02-0406"
},
"25": {
"state": {
"lightlevel": null,
"dark": null,
"daylight": null,
"lastupdated": "none"
},
"swupdate": {
"state": "noupdates",
"lastinstall": null
},
"config": {
"on": false,
"battery": 100,
"reachable": true,
"alert": "none",
"tholddark": 16000,
"tholdoffset": 7000,
"ledindication": false,
"usertest": false,
"pending": []
},
"name": "Hue ambient light sensor 1",
"type": "ZLLLightLevel",
"modelid": "SML001",
"manufacturername": "Philips",
"swversion": "6.1.0.18912",
"uniqueid": "00:17:88:01:02:02:19:31-02-0400"
},
"26": {
"state": {
"status": 0,
"lastupdated": "2018-01-28T12:17:01"
},
"config": {
"on": true,
"reachable": true
},
"name": "Motion Sensor 24 Activity State",
"type": "CLIPGenericStatus",
"modelid": "MotionSensorState",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "25B0A68A-2B22-48CC-8FA9-90D3F22F",
"recycle": false
},
"31": {
"state": {
"presence": true,
"lastupdated": "2018-01-27T16:24:47"
},
"config": {
"on": true,
"reachable": true
},
"name": "Ares",
"type": "CLIPPresence",
"modelid": "XFDPresence",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "D96C6F36-7AF1-4E3F-BEDA-B71CF07C",
"recycle": false
},
"32": {
"state": {
"presence": true,
"lastupdated": "2018-01-27T16:24:47"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDAnybodyHome",
"type": "CLIPPresence",
"modelid": "XFDPresence",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "5CE6CABB-FB0E-4784-86A8-5D5CA8F9",
"recycle": false
},
"33": {
"state": {
"presence": false,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "Omid",
"type": "CLIPPresence",
"modelid": "XFDPresence",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "88529607-86B9-4569-977C-6CE41C1C",
"recycle": false
},
"34": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[1][1]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[1][1]sn:step",
"recycle": false
},
"37": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "Play and stop",
"type": "CLIPGenericStatus",
"modelid": "HUELABSVDIMMER",
"manufacturername": "Philips",
"swversion": "1.0",
"uniqueid": "bbc8-4a60-4ebb-b3cf",
"recycle": true
},
"38": {
"state": {
"status": 1,
"lastupdated": "2018-01-11T06:06:57"
},
"config": {
"on": true,
"reachable": true
},
"name": "player",
"type": "CLIPGenericStatus",
"modelid": "HUELABSSTOGGLE",
"manufacturername": "Philips",
"swversion": "1.0",
"uniqueid": "2:27a8-f90a-4123-b26c",
"recycle": true
},
"39": {
"state": {
"status": 0,
"lastupdated": "2018-01-28T09:37:59"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[9]sn:state",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[9]sn:state",
"recycle": false
},
"40": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[9][1]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[9][1]sn:step",
"recycle": false
},
"41": {
"state": {
"temperature": 1959,
"lastupdated": "2018-01-28T12:22:10"
},
"swupdate": {
"state": "noupdates",
"lastinstall": null
},
"config": {
"on": true,
"battery": 100,
"reachable": true,
"alert": "none",
"ledindication": false,
"usertest": false,
"pending": []
},
"name": "Hue temperature sensor 2",
"type": "ZLLTemperature",
"modelid": "SML001",
"manufacturername": "Philips",
"swversion": "6.1.0.18912",
"uniqueid": "00:17:88:01:02:10:70:1b-02-0402"
},
"42": {
"state": {
"presence": false,
"lastupdated": "2018-01-28T12:26:34"
},
"swupdate": {
"state": "noupdates",
"lastinstall": null
},
"config": {
"on": true,
"battery": 100,
"reachable": true,
"alert": "none",
"ledindication": false,
"usertest": false,
"sensitivity": 2,
"sensitivitymax": 2,
"pending": []
},
"name": "Hue motion sensor 2",
"type": "ZLLPresence",
"modelid": "SML001",
"manufacturername": "Philips",
"swversion": "6.1.0.18912",
"uniqueid": "00:17:88:01:02:10:70:1b-02-0406"
},
"43": {
"state": {
"lightlevel": 15121,
"dark": true,
"daylight": false,
"lastupdated": "2018-01-28T12:26:32"
},
"swupdate": {
"state": "noupdates",
"lastinstall": null
},
"config": {
"on": true,
"battery": 100,
"reachable": true,
"alert": "none",
"tholddark": 16000,
"tholdoffset": 7000,
"ledindication": false,
"usertest": false,
"pending": []
},
"name": "Hue ambient light sensor 2",
"type": "ZLLLightLevel",
"modelid": "SML001",
"manufacturername": "Philips",
"swversion": "6.1.0.18912",
"uniqueid": "00:17:88:01:02:10:70:1b-02-0400"
},
"44": {
"state": {
"status": 0,
"lastupdated": "2018-01-28T12:26:34"
},
"config": {
"on": true,
"reachable": true
},
"name": "Motion Sensor 42 Activity State",
"type": "CLIPGenericStatus",
"modelid": "MotionSensorState",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "23C2CB02-C0CD-45AD-8ADD-04AC5285",
"recycle": false
},
"45": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[9][2]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[9][2]sn:step",
"recycle": false
},
"46": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[7][5]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[7][5]sn:step",
"recycle": false
},
"47": {
"state": {
"status": 0,
"lastupdated": "2018-01-28T09:34:11"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[9][3]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[9][3]sn:step",
"recycle": false
},
"48": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[9][4]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[9][4]sn:step",
"recycle": false
},
"49": {
"state": {
"status": 0,
"lastupdated": "2018-01-28T08:59:41"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[6]sn:state",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[6]sn:state",
"recycle": false
},
"50": {
"state": {
"status": 0,
"lastupdated": "none"
},
"config": {
"on": true,
"reachable": true
},
"name": "XFDani[6][1]sn:step",
"type": "CLIPGenericStatus",
"modelid": "AnimationSensor",
"manufacturername": "xfiredesigns",
"swversion": "1.0",
"uniqueid": "XFDani[6][1]sn:step",
"recycle": false
}
}

silverhunter
Beiträge: 47
Registriert: 19.06.2016, 21:10

Re: HUE Lightstripes per HM disablen

Beitrag von silverhunter » 28.01.2018, 14:14

Hi,

hier liegt glaube ich ein Missverständnis vor, denn die ID ist die Zahl am Anfang:
"42": {
"state": {
"presence": false,
"lastupdated": "2018-01-28T12:26:34"
},
"swupdate": {
"state": "noupdates",
"lastinstall": null
},
"config": {
"on": true,
"battery": 100,
"reachable": true,
"alert": "none",
"ledindication": false,
"usertest": false,
"sensitivity": 2,
"sensitivitymax": 2,
"pending": []
},
"name": "Hue motion sensor 2",
"type": "ZLLPresence",
"modelid": "SML001",
"manufacturername": "Philips",
"swversion": "6.1.0.18912",
"uniqueid": "00:17:88:01:02:10:70:1b-02-0406"
},
Hier ist es also die ID also -> 42

Zur Erklärung:
Die URL zeigt auf den Teil den Du ändern willst:
http://<HUE-BRIDGE-IP>/api/<API-USER>/sensors/42/config"

Wobei 42 (die Sensor ID) und config eine Gruppe mit mehreren Attributen ist, erkennbar an den geschweiften Klammern { }.

Der Value / das Attribute selber ist dann {"on":false}

Anbei auch mal ein allgemeiner Link zu JSON:
https://www.json.org/json-de.html

Viele Grüße
SilverHunter

Antworten

Zurück zu „HomeMatic allgemein“