Apple Homekit: die Hoffnung stirbt zuletzt

Begonnen von eldrik, 23 Januar 2015, 13:57:07

Vorheriges Thema - Nächstes Thema

ChrisKoh

Nach längerer Pause konnte ich auch wieder etwas testen.

Schalten von unterwegs über das AppleTV geht nun. Nachdem ich meinen zweiten AppleTV in der zweiten Wohnung von iCloud abgemeldet habe und das "erst" AppleTV Ab und wieder Angemeldet habe von der iCloud.

genericDisplayType habe ich nun auch auf genericDeviceType geändert.
Ist mein liste komplett?

switch,outlet,light,blind,speaker,thermostat


Ist das richtig das man FHEM:Wifilight Devices aktuell nur Ein- und Ausschalten kann? Ich habe zwei LD382 im Einsatz. Die Farben kann ich nicht wählen.

Grüße

Chris

und danke nochmal für die Tolle Arbeit hier!!
ODROID H2 + Docker: Portainer; FHEM; HomeBridge; Node-RED; Nextcloud; PiHole; MQTT.
FS20; HM; ZigBee; Z-Wave

justme1968

die liste ist noch nicht endgültig fest. zur zeit sind nur switch,light und thermostat relevant.

was gibt es für readings und set kommandos? zeig mal bitte ein list und ein set ?

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Wuppi68

coole Sache das ganze :-)

wie kann ich denn einen HarmonyHub einbinden oder dabei unterstützen?

Liebe Grüße

Ralf
FHEM unter Proxmox als VM

ChrisKoh

Zitat von: justme1968 am 28 Juli 2015, 19:57:38
die liste ist noch nicht endgültig fest. zur zeit sind nur switch,light und thermostat relevant.

was gibt es für readings und set kommandos? zeig mal bitte ein list und ein set ?

gruss
  andre

Hier die List:

Internals:
   CONNECTION LD382
   DEF        RGB LD382:192.168.200.39
   IP         192.168.200.39
   LEDTYPE    RGB
   NAME       wz.LED.Sofa
   NR         205
   NTFY_ORDER 50-wz.LED.Sofa
   PORT       5577
   PROTO      1
   SLOT       0
   STATE      off
   TYPE       WifiLight
   Readings:
     2015-07-28 17:10:47   RGB             000000
     2015-07-28 17:10:47   brightness      0
     2015-07-28 17:10:47   hue             0
     2015-07-28 17:10:47   saturation      0
     2015-07-28 17:10:47   state           off
   Helper:
     COMMANDSET on off dim dimup dimdown HSV RGB
     llLock     0
     targetTime 1438096247.44539
     COLORMAP:
       0
       1
       1
       2
       3
       3
       4
       5
       5
       6
       7
       7
       8
       9
       9
       10
       11
       11
       12
       13
       13
       14
       15
       15
       16
       17
       17
       18
       19
       19
       20
       21
       21
       22
       23
       23
       24
       25
       25
       26
       27
       27
       28
       29
       29
       30
       31
       31
       32
       33
       33
       34
       35
       35
       36
       37
       37
       38
       39
       39
       40
       41
       42
       43
       44
       45
       46
       47
       48
       49
       50
       51
       52
       53
       54
       55
       56
       57
       58
       59
       60
       61
       62
       63
       64
       65
       66
       67
       68
       69
       70
       71
       72
       73
       74
       75
       76
       77
       78
       79
       80
       81
       82
       83
       84
       85
       86
       87
       88
       89
       90
       91
       92
       93
       94
       95
       96
       97
       98
       99
       100
       101
       102
       103
       104
       105
       106
       106
       107
       108
       109
       110
       111
       112
       113
       114
       115
       116
       117
       117
       118
       119
       120
       121
       122
       123
       124
       125
       126
       127
       128
       128
       129
       130
       131
       132
       133
       134
       135
       136
       137
       138
       139
       139
       140
       141
       142
       143
       144
       145
       146
       147
       148
       149
       150
       150
       151
       152
       153
       154
       155
       156
       158
       159
       161
       162
       164
       165
       166
       168
       169
       171
       172
       173
       175
       176
       178
       179
       181
       182
       183
       185
       186
       188
       189
       190
       192
       193
       195
       196
       198
       199
       200
       202
       203
       205
       206
       207
       209
       210
       212
       213
       215
       216
       217
       219
       220
       222
       223
       224
       226
       227
       229
       230
       232
       233
       234
       236
       237
       239
       240
       241
       242
       243
       243
       244
       245
       246
       247
       248
       248
       249
       250
       251
       252
       253
       253
       254
       255
       256
       257
       258
       258
       259
       260
       261
       262
       263
       263
       264
       265
       266
       267
       268
       268
       269
       270
       271
       272
       273
       273
       274
       275
       276
       277
       278
       278
       279
       280
       281
       282
       283
       283
       284
       285
       286
       287
       288
       288
       289
       290
       291
       292
       294
       295
       296
       297
       298
       299
       301
       302
       303
       304
       305
       306
       308
       309
       310
       311
       312
       313
       315
       316
       317
       318
       319
       320
       322
       323
       324
       325
       326
       327
       329
       330
       331
       332
       333
       334
       336
       337
       338
       339
       340
       341
       343
       344
       345
       346
       347
       348
       350
       351
       352
       353
       354
       355
       357
       358
       359
       0
     GAMMAMAP:
       0
       0.0837677640068292
       0.243332430098219
       0.45405621299892
       0.70684316621699
       0.996357952001595
       1.31896324344069
       1.67196720192944
       2.05327034060355
       2.46117402090514
       2.89426612471675
       3.35134791378444
       3.83138472229589
       4.33347131986342
       4.85680675751166
       5.4006755921087
       5.96443354494847
       6.54749632988109
       7.14933080167485
       7.76944783828119
       8.40739654243209
       9.06275946322968
       9.73514861754315
       10.4242021465521
       11.1295814824596
       11.8509689292396
       12.5880655825711
       13.3405895300298
       14.1082742846809
       14.8908674144572
       15.6881293368749
       16.499832254239
       17.3257592089163
       18.1657032417713
       19.0194666396879
       19.8868602603794
       20.7677029245494
       21.6618208669846
       22.5690472394153
       23.4892216590168
       24.4221897972898
       25.3678030047821
       26.3259179677223
       27.2963963931522
       28.2791047195789
       29.2739138505435
       30.2806989088167
       31.2993390092098
       32.329717048222
       33.3717195089492
       34.4252362798567
       35.4901604861718
       36.5663883327847
       37.6538189576659
       38.7523542949095
       39.8618989466026
       40.982360062801
       42.1136472289627
       43.2556723602513
       44.4083496021795
       45.5715952371095
       46.7453275961738
       47.9294669762181
       49.1239355614018
       50.3286573491265
       51.5435580799885
       52.7685651714775
       54.0036076551689
       55.2486161171733
       56.5035226416311
       57.7682607570534
       59.0427653853271
       60.3269727932157
       61.6208205462015
       62.9242474645252
       64.237193581289
       65.5596001025013
       66.8914093689478
       68.2325648197832
       69.583010957744
       70.9426933158916
       72.3115584257991
       73.6895537871024
       75.0766278383415
       76.4727299290214
       77.8778102928286
       79.2918200219416
       80.7147110423796
       82.1464360903337
       83.5869486894341
       85.0362031289022
       86.4941544425471
       87.9607583885629
       89.4359714300888
       90.9197507164941
       92.4120540653557
       93.9128399450933
       95.4220674582326
       96.9396963252683
       98.4656868690975
       100
     hlCmdQueue:
     llCmdQueue:
Attributes:
   colorCast  0, -20, -20, -25, 0, -10
   fp_Wohnzimmer 719,580,2,,
   genericDeviceType light
   group      01_Licht
   room       Wohnzimmer
   userattr   room_map structexclude
   webCmd     RGB:RGB ff0000:RGB 00ff00:RGB 0000ff:toggle:on:off
   whitePoint 1, 0.75, 0.25
   widgetOverride RGB:colorpicker,RGB


und hier sein Set. Ich hoffe ich hab richtig verstanden was du möchtest, ansonsten bitte korrigieren :)


wz.LED.Sofa set HSV 0, 100, 100 with ramp: 0, flags:



grüße
ODROID H2 + Docker: Portainer; FHEM; HomeBridge; Node-RED; Nextcloud; PiHole; MQTT.
FS20; HM; ZigBee; Z-Wave

justme1968

fast :)

ganz wörtlich das hier eingeben:
set <device> ?

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

justme1968

@Wuppi68: der hub geht zur zeit nur über den mitgelieferten shim und noch nicht über den fhem shim. das kommt noch.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

ChrisKoh

Zitat von: justme1968 am 28 Juli 2015, 20:39:48
fast :)

ganz wörtlich das hier eingeben:
set <device> ?

gruss
  andre

ok, dann sollte das hoffentlich passen:


unknown command (?): choose one of on off dim dimup dimdown HSV RGB
ODROID H2 + Docker: Portainer; FHEM; HomeBridge; Node-RED; Nextcloud; PiHole; MQTT.
FS20; HM; ZigBee; Z-Wave

justme1968

ich habe die test version hier: http://forum.fhem.de/index.php/topic,32652.msg317190.html#msg317190 noch mal aktualisiert.

damit müssten sich die FHEM:Wifilight auch in farbe und helligkeit ändern lassen.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

ChrisKoh

Zitat von: justme1968 am 28 Juli 2015, 20:59:28
ich habe die test version hier: http://forum.fhem.de/index.php/topic,32652.msg317190.html#msg317190 noch mal aktualisiert.

damit müssten sich die FHEM:Wifilight auch in farbe und helligkeit ändern lassen.

gruss
  andre

danke für die schnelle Lösung, leider gibts beim starten nun einen Error:

pi@openHab ~/homebridge $ npm run start

> homebridge@0.0.0 start /home/pi/homebridge
> node app.js

Starting HomeBridge server...
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Loading 3 platforms...
[FHEM] Initializing FHEM platform...
starting longpoll: http://192.168.200.35:8083/fhem.pl?XHR=1&inform=type=status;filter=.*;since=null;fmt=JSON&timestamp=1438110256045
[FHEM] Fetching FHEM switchable devices...
[FHEM] fetching: http://192.168.200.35:8083/fhem?cmd=jsonlist2%20room=Wohnzimmer&XHR=1
[FHEM] Initializing FHEM platform...
[FHEM] Fetching FHEM switchable devices...
[FHEM] fetching: http://192.168.200.35:8083/fhem?cmd=jsonlist2%20room=Kueche&XHR=1
[FHEM] Initializing FHEM platform...
[FHEM] Fetching FHEM switchable devices...
[FHEM] fetching: http://192.168.200.35:8083/fhem?cmd=jsonlist2%20room=Schlafzimmer&XHR=1
Loading 0 accessories...
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: listen EADDRINUSE
    at exports._errnoException (util.js:746:11)
    at Server._listen2 (net.js:1156:14)
    at listen (net.js:1182:10)
    at Server.listen (net.js:1267:5)
    at Object.<anonymous> (/home/pi/homebridge/platforms/FHEM.js:1437:18)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

npm ERR! Linux 4.0.8-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.6
npm ERR! npm  v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! homebridge@0.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the homebridge@0.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the homebridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls homebridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/homebridge/npm-debug.log
ODROID H2 + Docker: Portainer; FHEM; HomeBridge; Node-RED; Nextcloud; PiHole; MQTT.
FS20; HM; ZigBee; Z-Wave

justme1968

du musst die laufende version anhalten...
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

ChrisKoh

Die war aus.

Habe gerade versucht den letzten stand wieder herzustellen.

Geht auch nicht mehr :(
ODROID H2 + Docker: Portainer; FHEM; HomeBridge; Node-RED; Nextcloud; PiHole; MQTT.
FS20; HM; ZigBee; Z-Wave

ChrisKoh

ok mit der Version der FHEM.js von Seite 3 läuft es wieder.

Wenn ich zu deiner zuletzt veröffentlichten Version versuche bekomme ich die Fehlermeldung wie schon geschrieben.
ODROID H2 + Docker: Portainer; FHEM; HomeBridge; Node-RED; Nextcloud; PiHole; MQTT.
FS20; HM; ZigBee; Z-Wave

justme1968

und was sagt passiert bei der test version?
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

ChrisKoh


> homebridge@0.0.0 start /home/pi/homebridge
> node app.js

Starting HomeBridge server...
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Loading 3 platforms...
[FHEM] Initializing FHEM platform...
starting longpoll: http://192.168.200.35:8083/fhem.pl?XHR=1&inform=type=status;filter=.*;since=null;fmt=JSON&timestamp=1438115245116
[FHEM] Fetching FHEM switchable devices...
[FHEM] fetching: http://192.168.200.35:8083/fhem?cmd=jsonlist2%20room=Wohnzimmer&XHR=1
[FHEM] Initializing FHEM platform...
[FHEM] Fetching FHEM switchable devices...
[FHEM] fetching: http://192.168.200.35:8083/fhem?cmd=jsonlist2%20room=Kueche&XHR=1
[FHEM] Initializing FHEM platform...
[FHEM] Fetching FHEM switchable devices...
[FHEM] fetching: http://192.168.200.35:8083/fhem?cmd=jsonlist2%20room=Schlafzimmer&XHR=1
Loading 0 accessories...
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: listen EADDRINUSE
    at exports._errnoException (util.js:746:11)
    at Server._listen2 (net.js:1156:14)
    at listen (net.js:1182:10)
    at Server.listen (net.js:1267:5)
    at Object.<anonymous> (/home/pi/homebridge/platforms/FHEM.js:1437:18)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

npm ERR! Linux 4.0.8-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.6
npm ERR! npm  v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! homebridge@0.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the homebridge@0.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the homebridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls homebridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/homebridge/npm-debug.log



0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'start' ]
2 info using npm@2.11.2
3 info using node@v0.12.6
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart homebridge@0.0.0
6 info start homebridge@0.0.0
7 verbose unsafe-perm in lifecycle true
8 info homebridge@0.0.0 Failed to exec start script
9 verbose stack Error: homebridge@0.0.0 start: `node app.js`
9 verbose stack Exit status 1
9 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack     at EventEmitter.emit (events.js:110:17)
9 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack     at ChildProcess.emit (events.js:110:17)
9 verbose stack     at maybeClose (child_process.js:1015:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid homebridge@0.0.0
11 verbose cwd /home/pi/homebridge
12 error Linux 4.0.8-v7+
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
14 error node v0.12.6
15 error npm  v2.11.2
16 error code ELIFECYCLE
17 error homebridge@0.0.0 start: `node app.js`
17 error Exit status 1
18 error Failed at the homebridge@0.0.0 start script 'node app.js'.
18 error This is most likely a problem with the homebridge package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     node app.js
18 error You can get their info via:
18 error     npm owner ls homebridge
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
ODROID H2 + Docker: Portainer; FHEM; HomeBridge; Node-RED; Nextcloud; PiHole; MQTT.
FS20; HM; ZigBee; Z-Wave

justme1968

am ende des files gibt es einen mini http server zum debugen. ändere den port auf etwas anderes als 8080 oder lösche alles was damit zu tun hat.

gruß
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968