Hallo, ich will mir mit den Fenster-Kontakten und Bewegungsmeldern von Xiaomi ne Alarmanlage bauen. Kennt jemand ne Sirene, die ich hierbei in den iobroker einbinden könnte? Hab nichts gefunden. Sollte natürlich Batteriebetrieben sein, damit das Ding in Fall der Fälle nicht einfach nur aus Steckdose gezogen werden muss (sonst hätte ich schon das xiaomi gateway genutzt). Vielen Dank
Beiträge von toschi.home
-
-
Hallo,
ich habe Probleme mein Script zum Laufen zu bekommen. Ich habe zwei Xiaomi Bewegungssensoren in meinem Flur und will eigentlich nur, dass das Licht angeht, wenn eine Bewegung registriert wird (hab noch unterschiedliche Helligkeitsstufen, je nach Uhrzeit eingebaut). Funktioniert auch alles, allerdings schaltet sich das Licht immer nach ca. 1 min aus und ich weiß nicht, weshalb. Hab eigentlich extra eine Bedingung eingebaut, wonach beide Sensoren auf Bewegung = false stehen müssen (sie schalten sich ja nach 1 min auf false), um dann nach einer Minute das Licht auszuschalten, aber das funktioniert irgendwie nicht. Hat jemand eine Idee?
Code
Alles anzeigenon({id: "zigbee.0.00158d0002ed9232.occupancy"/*Occupancy*/, change: "any"}, function (obj) { var value = obj.state.val; var oldValue = obj.oldState.val; if (getState("zigbee.0.00158d0002ed9232.occupancy").val == true && compareTime('00:00', '07:00', "between", null)) { setState("hue.0.Philips_hue.Flur.level"/*Philips_hue.Flur.level*/, '1'); setState("hue.0.Philips_hue.Flur.hue"/*Philips_hue.Flur.hue*/, '1250'); } else if (getState("zigbee.0.00158d0002ed9232.occupancy").val == true && compareTime('07:01', '19:00', "between", null)) { setState("hue.0.Philips_hue.Flur.hue"/*Philips_hue.Flur.hue*/, '6912'); setState("hue.0.Philips_hue.Flur.level"/*Philips_hue.Flur.level*/, '100'); } else if (getState("zigbee.0.00158d0002ed9232.occupancy").val == true && compareTime('19:01', '23:59', "between", null)) { setState("hue.0.Philips_hue.Flur.level"/*Philips_hue.Flur.level*/, '1'); setState("hue.0.Philips_hue.Flur.hue"/*Philips_hue.Flur.hue*/, '1250'); } else if (getState("zigbee.0.00158d0002ed9232.occupancy").val == false && getState("zigbee.0.00158d0002ed92cf.occupancy").val == false) { setStateDelayed("hue.0.Philips_hue.Flur.on"/*Philips_hue.Flur.on*/, false, 60000, false); } });
-
Hallo,
ich versuche schon seit geraumer Zeit den BLE-Adapter zum Laufen zu bringen, um ein XIAOMI Temperatur- und Luftfeuchtigkeitssensor in den IOBroker einzubinden. Leider bleibt der Adapter die gesamte Zeit auf gelb
Im log zeigt er
{"killed":false,"code":1,"signal":null,"cmd":"hciconfig | grep hci"} System ist:
Platform: linux
Architecture: arm
CPUs: 4
Speed: 900 MHz
Model: ARMv7 Processor rev 5 (v7l)
RAM: 927.1 MB
System uptime: 10 T. 17:00:09
Node.js: v8.15.0
NPM: 6.4.1
adapters count: 227
Uptime: 00:56:26
Hab schon diverse Sachen versucht, u.a. sudo npm install bluetooth-hci-socket, dabei bekomme ich jedoch Fehlermeldungen:
Spoiler anzeigen
> usb@1.5.0 install /home/pi/node_modules/usb
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/tessel/node-us…inux-arm.tar.gz
node-pre-gyp WARN Pre-built binaries not found for usb@1.5.0 and node@8.15.0 (node-v57 ABI, glibc) (falling back to source compile with node-gyp)
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.15.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/node_modules/usb/build'
gyp ERR! System Linux 4.14.79-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/pi/node_modules/usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/home/pi/node_modules/usb/src/binding" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v57"
gyp ERR! cwd /home/pi/node_modules/usb
gyp ERR! node -v v8.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home/pi/node_modules/usb/src/binding --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/pi/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:915:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Linux 4.14.79-v7+
node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/pi/node_modules/usb
node-pre-gyp ERR! node -v v8.15.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home/pi/node_modules/usb/src/binding --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
> bluetooth-hci-socket@0.5.1 install /home/pi/node_modules/bluetooth-hci-socket
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.15.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/node_modules/bluetooth-hci-socket/build'
gyp ERR! System Linux 4.14.79-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/bluetooth-hci-socket
gyp ERR! node -v v8.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.5.0 (node_modules/usb):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.5.0 install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bluetooth-hci-socket@0.5.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bluetooth-hci-socket@0.5.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-03-03T10_39_48_932Z-debug.log
pi@raspberrypi:~ $ sudo npm i iobroker.ble –production --unsafe-perm
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "–production": Tags may not have any characters that encodeURIComponent encodes.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-03-03T10_40_22_920Z-debug.log
Hat jemand eine Idee?