Frohe Weihnachten liebe FHEM-Community,
ich habe neuerdings Philips Hue Glühbirnen im Einsatz, diese funktionieren auch gut und sind in FHEM eingebunden.
Jetzt habe ich in meiner Deckenlampe 2 HueBirnen, diese würde ich aber gerne mit einem Device steuern, gerne auch über HomeKit/Homebridge ;).
Wie soll ich das anstellen, mit einem structure hat das nicht geklappt. :-[
Mfg
Philipp ;D
das geht auch mit structure. es geht mit LightScene oder mit einer hue group.
structure oder hue group wenn beide lampen gleich geschaltet werden sollen.
LightScene wenn es unterschiede gibt.
je nach konfiguration musst du das homebridgeMapping noch etwas anpassen. oder einen readingsProxy (siehe wiki) dazwischen schalten.
gruss
andre
Zitat von: justme1968 am 25 Dezember 2016, 09:51:42
das geht auch mit structure. es geht mit LightScene oder mit einer hue group.
structure oder hue group wenn beide lampen gleich geschaltet werden sollen.
LightScene wenn es unterschiede gibt.
je nach konfiguration musst du das homebridgeMapping noch etwas anpassen. oder einen readingsProxy (siehe wiki) dazwischen schalten.
gruss
andre
Habe die Lampen mit einem structure zusammengefasst bekommen, nur HomeKit will nicht so ganz.
Hier ist mal der Code:
define Deckenlampe structure extcolordimmer HUEDevice1 HUEDevice3
attr Deckenlampe genericDeviceType light
attr Deckenlampe group Licht
attr Deckenlampe icon hue_filled_white_and_color_e27_b22
attr Deckenlampe room HUEDevice,HomeKit
attr Deckenlampe webCmd rgb:rgb ff0000:rgb DEFF26:rgb 0000ff:ct 490:ct 380:ct 270:ct 160:toggle:on:off
In HomeKit wird die Lampe angezeigt, aber ohne Status. Sie ist in der Eve-App werden AN noch AUS.
Ich kann sie aber steuern, also Farbe ändern, EIN/AUS machen,....
Ich der Apple Home App geht das aber nicht, dort steht "Keine Antwort", ich kann die Lampe in der App steuern.
Was muss ich tun, dass der Status weitergegeben wird ?
Mfg
Philipp ;D
zeig mal was auf beim start mit --denbug alles zu dieser structure auf der homebridge konsole steht.
wenn dort nicht automatisch etwas erkannt wird musst du ein passendes homebridgeMapping setzen.
wenn es nur ums ein und aus schalten geht reicht vermutlich attr <structure> homebridgeMapping On=state,cmdOn=on,cmdOff=off
achtung: structexclude verwenden damit attribute nicht an die beteiligten devices durchgereicht werden.
Danke, Jetzt lässt sich die Lampe auch über die Apple Home App steuern.
Es fehlt nur noch eine Sache, damit es wirklich perfekt ist ;D
Undzwar stellt sich die Helligkeit immer wieder auf 0%, die Lampe bleibt aber unverändert.
Hier das Log beim Start von Homebridge :):
pi@raspberrypi:~ $ homebridge --debug
*** WARNING *** The program 'nodejs' 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=nodejs>
*** WARNING *** The program 'nodejs' 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=nodejs&f=DNSServiceRegister>
[2016-12-25 14:03:06] Loaded plugin: homebridge-fhem
homebridge API version: 2.1
this homebridge-fhem 0.2.67
[2016-12-25 14:03:06] Registering platform 'homebridge-fhem.FHEM'
[2016-12-25 14:03:06] ---
[2016-12-25 14:03:06] Loaded config.json with 0 accessories and 1 platforms.
[2016-12-25 14:03:06] ---
[2016-12-25 14:03:06] Loading 1 platforms...
[2016-12-25 14:03:06] [FHEM] Initializing FHEM platform...
[2016-12-25 14:03:06] [FHEM] Checking devices and attributes...
[2016-12-25 14:03:06] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[2016-12-25 14:03:06] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=siri&XHR=1
starting longpoll: http://127.0.0.1:8083/fhem.pl?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1482670986831
[2016-12-25 14:03:06] [FHEM] Fetching FHEM devices...
[2016-12-25 14:03:06] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=HomeKit&XHR=1
[2016-12-25 14:03:06] Loading 0 accessories...
Server error: Error: listen EADDRINUSE :::8282
Server listening on: http://<ip>:8283
[2016-12-25 14:03:07] [FHEM] no siri device found. please define it.
[2016-12-25 14:03:07] [FHEM] got: 13 results
[2016-12-25 14:03:07] [FHEM] mappings for 1Live: { On:
{ reading: 'state',
valueOff: '/off|A0|000000/',
cmdOn: 'on',
cmdOff: 'off' } }
[2016-12-25 14:03:07] [FHEM] 1Live is switch
[2016-12-25 14:03:07] [FHEM] 1Live has
[2016-12-25 14:03:07] [FHEM] On [state;on,off]
2016-12-25 14:03:07 caching: 1Live-state: off
[2016-12-25 14:03:07] [FHEM] 1Live-state valueOn/valueOff: value off mapped to 0
[2016-12-25 14:03:07] [FHEM] caching: On: false (as boolean; from 'off')
[2016-12-25 14:03:07] [FHEM] mappings for Aussensensor: { CurrentTemperature: { reading: 'temperature', minValue: -30 },
CurrentRelativeHumidity: { reading: 'humidity' } }
[2016-12-25 14:03:07] [FHEM] Aussensensor is thermometer
[2016-12-25 14:03:07] [FHEM] Aussensensor has
[2016-12-25 14:03:07] [FHEM] CurrentTemperature [temperature]
[2016-12-25 14:03:07] [FHEM] CurrentRelativeHumidity [humidity]
2016-12-25 14:03:07 caching: Aussensensor-temperature: 13.2
[2016-12-25 14:03:07] [FHEM] caching: CurrentTemperature: 13.2 (as number; from '13.2')
2016-12-25 14:03:07 caching: Aussensensor-humidity: 55
[2016-12-25 14:03:07] [FHEM] caching: CurrentRelativeHumidity: 55 (as number; from '55')
[2016-12-25 14:03:07] [FHEM] mappings for BadHeizung: { StatusLowBattery:
{ reading: 'battery',
values: [ 'ok:BATTERY_LEVEL_NORMAL', '/.*/:BATTERY_LEVEL_LOW' ] },
FirmwareRevision: { reading: 'firmware', _isInformation: true },
TargetTemperature:
{ reading: 'desiredTemperature',
cmd: 'desiredTemperature',
delay: true,
minValue: 4.5,
maxValue: 29.5,
minStep: -4 },
CurrentHeatingCoolingState: { default: 'HEAT' } }
[2016-12-25 14:03:07] [FHEM] BadHeizung is thermostat
[2016-12-25 14:03:07] [FHEM] BadHeizung has
[2016-12-25 14:03:07] [FHEM] StatusLowBattery [battery]
[2016-12-25 14:03:07] [FHEM] FirmwareRevision [firmware]
[2016-12-25 14:03:07] [FHEM] TargetTemperature [desiredTemperature]
[2016-12-25 14:03:07] [FHEM] CurrentHeatingCoolingState [undefined]
[2016-12-25 14:03:07] [FHEM] value2homekit_re: [ { re: '.*', to: 1 } ]
[2016-12-25 14:03:07] [FHEM] value2homekit: { ok: 0 }
[2016-12-25 14:03:07] [FHEM] homekit2name: { '0': 'BATTERY_LEVEL_NORMAL', '1': 'BATTERY_LEVEL_LOW' }
2016-12-25 14:03:07 caching: BadHeizung-battery: ok
[2016-12-25 14:03:07] [FHEM] BadHeizung-battery values: value ok mapped to 0
[2016-12-25 14:03:07] [FHEM] caching: StatusLowBattery: 0 (as number; means BATTERY_LEVEL_NORMAL; from 'ok')
2016-12-25 14:03:07 caching: BadHeizung-firmware: 110
[2016-12-25 14:03:07] [FHEM] caching: FirmwareRevision: 110 (as string; from '110')
2016-12-25 14:03:07 caching: BadHeizung-desiredTemperature: 18
[2016-12-25 14:03:07] [FHEM] caching: TargetTemperature: 16.5 (as number; from '18')
[2016-12-25 14:03:07] [FHEM] default: 1
[2016-12-25 14:03:07] [FHEM] caching: CurrentHeatingCoolingState: 1 (as number; means HEAT; from 'mapping.default')
[2016-12-25 14:03:07] [FHEM] mappings for Computer: { On:
{ reading: 'state',
valueOff: '/off|A0|000000/',
cmdOn: 'on',
cmdOff: 'off' } }
[2016-12-25 14:03:07] [FHEM] Computer is switch
[2016-12-25 14:03:07] [FHEM] Computer has
[2016-12-25 14:03:07] [FHEM] On [state;on,off]
2016-12-25 14:03:07 caching: Computer-state: on
[2016-12-25 14:03:07] [FHEM] Computer-state valueOn/valueOff: value on mapped to 1
[2016-12-25 14:03:07] [FHEM] caching: On: true (as boolean; from 'on')
[2016-12-25 14:03:07] [FHEM] detected HUEDevice
[2016-12-25 14:03:07] [FHEM] homebridgeMapping: On=state,cmdOn=on,cmdOff=off
[2016-12-25 14:03:07] [FHEM] mappings for Deckenlampe: { On: { reading: 'state', valueOff: '0', cmdOn: 'on', cmdOff: 'off' },
Brightness:
{ reading: 'bri',
cmd: 'pct',
delay: true,
reading2homekit: [Function: bound ] },
Hue: { reading: 'hue', cmd: 'hue', max: '65535', maxValue: 359 },
Saturation: { reading: 'sat', cmd: 'sat', max: '254', maxValue: 100 } }
[2016-12-25 14:03:07] [FHEM] Deckenlampe is light
[2016-12-25 14:03:07] [FHEM] Deckenlampe has
[2016-12-25 14:03:07] [FHEM] On [state;on,off]
[2016-12-25 14:03:07] [FHEM] Brightness [bri]
[2016-12-25 14:03:07] [FHEM] Hue [hue;hue;0-65535]
[2016-12-25 14:03:07] [FHEM] Saturation [sat;sat;0-254]
2016-12-25 14:03:07 caching: Deckenlampe-state: on
[2016-12-25 14:03:07] [FHEM] Deckenlampe-state valueOn/valueOff: value on mapped to 1
[2016-12-25 14:03:07] [FHEM] caching: On: true (as boolean; from 'on')
[2016-12-25 14:03:07] [FHEM] Deckenlampe-bri not a number: undefined
[2016-12-25 14:03:07] [FHEM] mappings for GTA: { On:
{ reading: 'state',
valueOff: '/off|A0|000000/',
cmdOn: 'on',
cmdOff: 'off' } }
[2016-12-25 14:03:07] [FHEM] GTA is switch
[2016-12-25 14:03:07] [FHEM] GTA has
[2016-12-25 14:03:07] [FHEM] On [state;on,off]
2016-12-25 14:03:07 caching: GTA-state: off
[2016-12-25 14:03:07] [FHEM] GTA-state valueOn/valueOff: value off mapped to 0
[2016-12-25 14:03:07] [FHEM] caching: On: false (as boolean; from 'off')
[2016-12-25 14:03:07] [FHEM] mappings for Heizung_Clima: { TargetTemperature:
{ reading: 'desired-temp',
cmd: 'desired-temp',
delay: true,
minValue: 5,
maxValue: 30,
minStep: 0.5 },
'4648454d-0201-686F-6D65-627269646765':
{ reading: 'ValvePosition',
name: 'Actuation',
format: 'UINT8',
unit: 'PERCENTAGE',
maxValue: 100,
minValue: 0,
minStep: 1 },
CurrentTemperature: { reading: 'measured-temp', minValue: -30 },
CurrentHeatingCoolingState: { default: 'HEAT' } }
[2016-12-25 14:03:07] [FHEM] Heizung_Clima is thermostat
[2016-12-25 14:03:07] [FHEM] Heizung_Clima has
[2016-12-25 14:03:07] [FHEM] TargetTemperature [desired-temp]
[2016-12-25 14:03:07] [FHEM] Custom Actuation [ValvePosition]
[2016-12-25 14:03:07] [FHEM] CurrentTemperature [measured-temp]
[2016-12-25 14:03:07] [FHEM] CurrentHeatingCoolingState [undefined]
2016-12-25 14:03:07 caching: Heizung_Clima-desired-temp: 21.0
[2016-12-25 14:03:07] [FHEM] caching: TargetTemperature: 21 (as number; from '21.0')
2016-12-25 14:03:07 caching: Heizung_Clima-ValvePosition: 0
[2016-12-25 14:03:07] [FHEM] caching: Custom Actuation: 0 (as number; from '0')
2016-12-25 14:03:07 caching: Heizung_Clima-measured-temp: 23.3
[2016-12-25 14:03:07] [FHEM] caching: CurrentTemperature: 23.3 (as number; from '23.3')
[2016-12-25 14:03:07] [FHEM] default: 1
[2016-12-25 14:03:07] [FHEM] caching: CurrentHeatingCoolingState: 1 (as number; means HEAT; from 'mapping.default')
[2016-12-25 14:03:07] [FHEM] detected WifiLight
[2016-12-25 14:03:07] [FHEM] mappings for LEDStreifen: { Hue:
{ reading: 'hue',
cmd: 'HSV',
max: 359,
maxValue: 359,
homekit2reading: [Function: bound homekit2reading] },
Saturation:
{ reading: 'saturation',
cmd: 'HSV',
max: 100,
maxValue: 100,
homekit2reading: [Function: bound homekit2reading] },
Brightness:
{ reading: 'brightness',
cmd: 'HSV',
max: 100,
maxValue: 100,
delay: true,
homekit2reading: [Function: bound homekit2reading] },
On:
{ reading: 'state',
valueOff: '/off|A0|000000/',
cmdOn: 'on',
cmdOff: 'off' } }
[2016-12-25 14:03:07] [FHEM] LEDStreifen is light
[2016-12-25 14:03:07] [FHEM] LEDStreifen has
[2016-12-25 14:03:07] [FHEM] Hue [hue;HSV;0-359]
[2016-12-25 14:03:07] [FHEM] Saturation [saturation;HSV;0-100]
[2016-12-25 14:03:07] [FHEM] Brightness [brightness]
[2016-12-25 14:03:07] [FHEM] On [state;on,off]
2016-12-25 14:03:07 caching: LEDStreifen-hue: 0
[2016-12-25 14:03:07] [FHEM] LEDStreifen-hue value 0 scaled to: 0
[2016-12-25 14:03:07] [FHEM] caching: Hue: 0 (as number; from '0')
2016-12-25 14:03:07 caching: LEDStreifen-saturation: 0
[2016-12-25 14:03:07] [FHEM] LEDStreifen-saturation value 0 scaled to: 0
[2016-12-25 14:03:07] [FHEM] caching: Saturation: 0 (as number; from '0')
2016-12-25 14:03:07 caching: LEDStreifen-brightness: 0
[2016-12-25 14:03:07] [FHEM] LEDStreifen-brightness value 0 scaled to: 0
[2016-12-25 14:03:07] [FHEM] caching: Brightness: 0 (as number; from '0')
2016-12-25 14:03:07 caching: LEDStreifen-state: off
[2016-12-25 14:03:07] [FHEM] LEDStreifen-state valueOn/valueOff: value off mapped to 0
[2016-12-25 14:03:07] [FHEM] caching: On: false (as boolean; from 'off')
[2016-12-25 14:03:07] [FHEM] mappings for Monitor: { On:
{ reading: 'state',
valueOff: '/off|A0|000000/',
cmdOn: 'on',
cmdOff: 'off' } }
[2016-12-25 14:03:07] [FHEM] Monitor is switch
[2016-12-25 14:03:07] [FHEM] Monitor has
[2016-12-25 14:03:07] [FHEM] On [state;on,off]
2016-12-25 14:03:07 caching: Monitor-state: on
[2016-12-25 14:03:07] [FHEM] Monitor-state valueOn/valueOff: value on mapped to 1
[2016-12-25 14:03:07] [FHEM] caching: On: true (as boolean; from 'on')
[2016-12-25 14:03:07] [FHEM] mappings for Radio: { On:
{ reading: 'state',
valueOff: '/off|A0|000000/',
cmdOn: 'on',
cmdOff: 'off' } }
[2016-12-25 14:03:07] [FHEM] Radio is switch
[2016-12-25 14:03:07] [FHEM] Radio has
[2016-12-25 14:03:07] [FHEM] On [state;on,off]
2016-12-25 14:03:07 caching: Radio-state: on
[2016-12-25 14:03:07] [FHEM] Radio-state valueOn/valueOff: value on mapped to 1
[2016-12-25 14:03:07] [FHEM] caching: On: true (as boolean; from 'on')
[2016-12-25 14:03:07] [FHEM] mappings for SWR3: { On:
{ reading: 'state',
valueOff: '/off|A0|000000/',
cmdOn: 'on',
cmdOff: 'off' } }
[2016-12-25 14:03:07] [FHEM] SWR3 is switch
[2016-12-25 14:03:07] [FHEM] SWR3 has
[2016-12-25 14:03:07] [FHEM] On [state;on,off]
2016-12-25 14:03:07 caching: SWR3-state: on
[2016-12-25 14:03:07] [FHEM] SWR3-state valueOn/valueOff: value on mapped to 1
[2016-12-25 14:03:07] [FHEM] caching: On: true (as boolean; from 'on')
[2016-12-25 14:03:07] [FHEM] mappings for Stehlampe: { On:
{ reading: 'state',
valueOff: '/off|A0|000000/',
cmdOn: 'on',
cmdOff: 'off' } }
[2016-12-25 14:03:07] [FHEM] Stehlampe is switch
[2016-12-25 14:03:07] [FHEM] Stehlampe has
[2016-12-25 14:03:07] [FHEM] On [state;on,off]
2016-12-25 14:03:07 caching: Stehlampe-state: off
[2016-12-25 14:03:07] [FHEM] Stehlampe-state valueOn/valueOff: value off mapped to 0
[2016-12-25 14:03:07] [FHEM] caching: On: false (as boolean; from 'off')
[2016-12-25 14:03:07] [FHEM] mappings for Tischlampe: { On:
{ reading: 'state',
valueOff: '/off|A0|000000/',
cmdOn: 'on',
cmdOff: 'off' } }
[2016-12-25 14:03:07] [FHEM] Tischlampe is switch
[2016-12-25 14:03:07] [FHEM] Tischlampe has
[2016-12-25 14:03:07] [FHEM] On [state;on,off]
2016-12-25 14:03:07 caching: Tischlampe-state: off
[2016-12-25 14:03:07] [FHEM] Tischlampe-state valueOn/valueOff: value off mapped to 0
[2016-12-25 14:03:07] [FHEM] caching: On: false (as boolean; from 'off')
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory '1Live'...
[2016-12-25 14:03:07] [FHEM] creating services for 1Live
[2016-12-25 14:03:07] [FHEM] information service for 1Live
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for 1Live
[2016-12-25 14:03:07] [FHEM] Switch service for 1Live
[2016-12-25 14:03:07] [FHEM] On characteristic for 1Live:state
[2016-12-25 14:03:07] [FHEM] initial value is: false (boolean)
[2016-12-25 14:03:07] [FHEM] props: { format: 'bool',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory 'Aussensensor'...
[2016-12-25 14:03:07] [FHEM] creating services for Aussensensor
[2016-12-25 14:03:07] [FHEM] information service for Aussensensor
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for Aussensensor
[2016-12-25 14:03:07] [FHEM] TemperatureSensor service for Aussensensor
[2016-12-25 14:03:07] [FHEM] CurrentTemperature characteristic for Aussensensor:temperature
[2016-12-25 14:03:07] [FHEM] initial value is: 13.2 (number)
[2016-12-25 14:03:07] [FHEM] props: { format: 'float',
unit: 'celsius',
minValue: -30,
maxValue: 100,
minStep: 0.1,
perms: [ 'pr', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] CurrentRelativeHumidity characteristic for Aussensensor:humidity
[2016-12-25 14:03:07] [FHEM] initial value is: 55 (number)
[2016-12-25 14:03:07] [FHEM] props: { format: 'float',
unit: 'percentage',
minValue: 0,
maxValue: 100,
minStep: 1,
perms: [ 'pr', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory 'BadHeizung'...
[2016-12-25 14:03:07] [FHEM] creating services for BadHeizung
[2016-12-25 14:03:07] [FHEM] information service for BadHeizung
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for BadHeizung
[2016-12-25 14:03:07] [FHEM] firmware revision characteristic for BadHeizung
[2016-12-25 14:03:07] [FHEM] Thermostat service for BadHeizung
[2016-12-25 14:03:07] [FHEM] StatusLowBattery characteristic for BadHeizung:battery
[2016-12-25 14:03:07] [FHEM] initial value is: 0 (number; means BATTERY_LEVEL_NORMAL)
[2016-12-25 14:03:07] [FHEM] props: { format: 'uint8',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] TargetTemperature characteristic for BadHeizung:desiredTemperature
[2016-12-25 14:03:07] [FHEM] initial value is: 16.5 (number)
[2016-12-25 14:03:07] [FHEM] props: { format: 'float',
unit: 'celsius',
minValue: 4.5,
maxValue: 29.5,
minStep: -4,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] CurrentHeatingCoolingState characteristic for BadHeizung:undefined
[2016-12-25 14:03:07] [FHEM] initial value is: 1 (number; means HEAT)
[2016-12-25 14:03:07] [FHEM] props: { format: 'uint8',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory 'Computer'...
[2016-12-25 14:03:07] [FHEM] creating services for Computer
[2016-12-25 14:03:07] [FHEM] information service for Computer
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for Computer
[2016-12-25 14:03:07] [FHEM] Switch service for Computer
[2016-12-25 14:03:07] [FHEM] On characteristic for Computer:state
[2016-12-25 14:03:07] [FHEM] initial value is: true (boolean)
[2016-12-25 14:03:07] [FHEM] props: { format: 'bool',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory 'Deckenlampe'...
[2016-12-25 14:03:07] [FHEM] creating services for Deckenlampe
[2016-12-25 14:03:07] [FHEM] information service for Deckenlampe
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for Deckenlampe
[2016-12-25 14:03:07] [FHEM] Lightbulb service for Deckenlampe
[2016-12-25 14:03:07] [FHEM] On characteristic for Deckenlampe:state
[2016-12-25 14:03:07] [FHEM] initial value is: true (boolean)
[2016-12-25 14:03:07] [FHEM] props: { format: 'bool',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Brightness characteristic for Deckenlampe:bri
[2016-12-25 14:03:07] [FHEM] no default
[2016-12-25 14:03:07] [FHEM] props: { format: 'int',
unit: 'percentage',
minValue: 0,
maxValue: 100,
minStep: 1,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Hue characteristic for Deckenlampe:hue
[2016-12-25 14:03:07] [FHEM] no default
[2016-12-25 14:03:07] [FHEM] props: { format: 'float',
unit: 'arcdegrees',
minValue: 0,
maxValue: 359,
minStep: 1,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Saturation characteristic for Deckenlampe:sat
[2016-12-25 14:03:07] [FHEM] no default
[2016-12-25 14:03:07] [FHEM] props: { format: 'float',
unit: 'percentage',
minValue: 0,
maxValue: 100,
minStep: 1,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory 'GTA'...
[2016-12-25 14:03:07] [FHEM] creating services for GTA
[2016-12-25 14:03:07] [FHEM] information service for GTA
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for GTA
[2016-12-25 14:03:07] [FHEM] Switch service for GTA
[2016-12-25 14:03:07] [FHEM] On characteristic for GTA:state
[2016-12-25 14:03:07] [FHEM] initial value is: false (boolean)
[2016-12-25 14:03:07] [FHEM] props: { format: 'bool',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory 'Heizung_Clima'...
[2016-12-25 14:03:07] [FHEM] creating services for Heizung_Clima
[2016-12-25 14:03:07] [FHEM] information service for Heizung_Clima
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for Heizung_Clima
[2016-12-25 14:03:07] [FHEM] Thermostat service for Heizung_Clima
[2016-12-25 14:03:07] [FHEM] TargetTemperature characteristic for Heizung_Clima:desired-temp
[2016-12-25 14:03:07] [FHEM] initial value is: 21 (number)
[2016-12-25 14:03:07] [FHEM] props: { format: 'float',
unit: 'celsius',
minValue: 5,
maxValue: 30,
minStep: 0.5,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Custom Actuation characteristic for Heizung_Clima:ValvePosition
[2016-12-25 14:03:07] [FHEM] initial value is: 0 (number)
[2016-12-25 14:03:07] [FHEM] props: { format: 'uint8',
unit: 'percentage',
minValue: 0,
maxValue: 100,
minStep: 1,
perms: [ 'pr', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] CurrentTemperature characteristic for Heizung_Clima:measured-temp
[2016-12-25 14:03:07] [FHEM] initial value is: 23.3 (number)
[2016-12-25 14:03:07] [FHEM] props: { format: 'float',
unit: 'celsius',
minValue: -30,
maxValue: 100,
minStep: 0.1,
perms: [ 'pr', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] CurrentHeatingCoolingState characteristic for Heizung_Clima:undefined
[2016-12-25 14:03:07] [FHEM] initial value is: 1 (number; means HEAT)
[2016-12-25 14:03:07] [FHEM] props: { format: 'uint8',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory 'LEDStreifen'...
[2016-12-25 14:03:07] [FHEM] creating services for LEDStreifen
[2016-12-25 14:03:07] [FHEM] information service for LEDStreifen
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for LEDStreifen
[2016-12-25 14:03:07] [FHEM] Lightbulb service for LEDStreifen
[2016-12-25 14:03:07] [FHEM] Hue characteristic for LEDStreifen:hue
[2016-12-25 14:03:07] [FHEM] initial value is: 0 (number)
[2016-12-25 14:03:07] [FHEM] props: { format: 'float',
unit: 'arcdegrees',
minValue: 0,
maxValue: 359,
minStep: 1,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Saturation characteristic for LEDStreifen:saturation
[2016-12-25 14:03:07] [FHEM] initial value is: 0 (number)
[2016-12-25 14:03:07] [FHEM] props: { format: 'float',
unit: 'percentage',
minValue: 0,
maxValue: 100,
minStep: 1,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Brightness characteristic for LEDStreifen:brightness
[2016-12-25 14:03:07] [FHEM] initial value is: 0 (number)
[2016-12-25 14:03:07] [FHEM] props: { format: 'int',
unit: 'percentage',
minValue: 0,
maxValue: 100,
minStep: 1,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] On characteristic for LEDStreifen:state
[2016-12-25 14:03:07] [FHEM] initial value is: false (boolean)
[2016-12-25 14:03:07] [FHEM] props: { format: 'bool',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory 'Monitor'...
[2016-12-25 14:03:07] [FHEM] creating services for Monitor
[2016-12-25 14:03:07] [FHEM] information service for Monitor
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for Monitor
[2016-12-25 14:03:07] [FHEM] Switch service for Monitor
[2016-12-25 14:03:07] [FHEM] On characteristic for Monitor:state
[2016-12-25 14:03:07] [FHEM] initial value is: true (boolean)
[2016-12-25 14:03:07] [FHEM] props: { format: 'bool',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory 'Radio'...
[2016-12-25 14:03:07] [FHEM] creating services for Radio
[2016-12-25 14:03:07] [FHEM] information service for Radio
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for Radio
[2016-12-25 14:03:07] [FHEM] Switch service for Radio
[2016-12-25 14:03:07] [FHEM] On characteristic for Radio:state
[2016-12-25 14:03:07] [FHEM] initial value is: true (boolean)
[2016-12-25 14:03:07] [FHEM] props: { format: 'bool',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory 'SWR3'...
[2016-12-25 14:03:07] [FHEM] creating services for SWR3
[2016-12-25 14:03:07] [FHEM] information service for SWR3
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for SWR3
[2016-12-25 14:03:07] [FHEM] Switch service for SWR3
[2016-12-25 14:03:07] [FHEM] On characteristic for SWR3:state
[2016-12-25 14:03:07] [FHEM] initial value is: true (boolean)
[2016-12-25 14:03:07] [FHEM] props: { format: 'bool',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory 'Stehlampe'...
[2016-12-25 14:03:07] [FHEM] creating services for Stehlampe
[2016-12-25 14:03:07] [FHEM] information service for Stehlampe
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for Stehlampe
[2016-12-25 14:03:07] [FHEM] Switch service for Stehlampe
[2016-12-25 14:03:07] [FHEM] On characteristic for Stehlampe:state
[2016-12-25 14:03:07] [FHEM] initial value is: false (boolean)
[2016-12-25 14:03:07] [FHEM] props: { format: 'bool',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'pw', 'ev' ] }
[2016-12-25 14:03:07] [FHEM] Initializing platform accessory 'Tischlampe'...
[2016-12-25 14:03:07] [FHEM] creating services for Tischlampe
[2016-12-25 14:03:07] [FHEM] information service for Tischlampe
[2016-12-25 14:03:07] [FHEM] manufacturer, model and serial number characteristics for Tischlampe
[2016-12-25 14:03:07] [FHEM] Switch service for Tischlampe
[2016-12-25 14:03:07] [FHEM] On characteristic for Tischlampe:state
[2016-12-25 14:03:07] [FHEM] initial value is: false (boolean)
[2016-12-25 14:03:07] [FHEM] props: { format: 'bool',
unit: null,
minValue: null,
maxValue: null,
minStep: null,
perms: [ 'pr', 'pw', 'ev' ] }
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ 031-45-154 │
└────────────┘
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::51826
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at Server._listen2 (net.js:1262:14)
at listen (net.js:1298:10)
at Server.listen (net.js:1376:9)
at EventedHTTPServer.listen (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:60:19)
at HAPServer.listen (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:158:20)
at Bridge.Accessory.publish (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:496:16)
at Server._publish (/usr/lib/node_modules/homebridge/lib/server.js:114:16)
at Server.<anonymous> (/usr/lib/node_modules/homebridge/lib/server.js:372:14)
pi@raspberrypi:~ $
Habe mir den Teil über structexclude im Commandref durchgelesen, werde aber nicht ganz schlau draus, wie muss das genau aussehen? :o
Mfg
Philipp ;D
Hab jetzt eine Ewigkeit rumprobiert, aber keine Lösung funktioniert wirklich gut.
Weiß wer eine Möglichkeit :-[
Habe es mit einem Dummy versucht:
#Deckenleuchte
define Deckenleuchte dummy
attr Deckenleuchte genericDeviceType light
attr Deckenleuchte icon hue_filled_white_and_color_e27_b22
attr Deckenleuchte room HUEDevice,HomeKit
attr Deckenleuchte setList on off rgb bri ct hue blink effect dimUp dimDown sat
attr Deckenleuchte webCmd rgb:ct 490:ct 380:ct 270:ct 160:toggle:on:off
attr Deckenleuchte widgetOverride rgb:colorpicker,rgb
define DeckeZusammen notify Deckenleuchte set HUEDevice1,HUEDevice3 $EVENT
In FHEM funktioniert es, nur in HomeKit steht da immer keine Antwort.
Was muss ich bei homebridgeMapping angeben, dass der Helligkeitswert mitgegeben wird ? ::)
Mfg
Philipp
mit einer strucutre funktioniert es nicht weil structure nur ein reading zusammen fasst. d.h. nur state oder nur bri, ...
mit einem einfachen dummy geht es nicht weil hier auch der rück kanal fehlt.
steuerst du immer alle lampen gleich? dann würde ich eine der beiden lampen in homekit einbinden und die andere als 'slave' über ein notify dran hängen.
wenn die beiden lampen auch mal unterschiedlich sein soll: fasse sie in einer hue group zusammen die du in homekit einbindest und konfiguriere dir homebridgeMapping so das der ist zustand nicht aus der group sondern aus einer der beiden lampen geholt wird.
gruss
andre
Gibt es denn irgendwo eine Quelle, wo man sich über homebridgeMapping informieren kann ????
Mfg
Philipp ;D
hier: https://forum.fhem.de/index.php/topic,48558.msg402024.html#msg402024 (https://forum.fhem.de/index.php/topic,48558.msg402024.html#msg402024) und hier: https://github.com/justme-1968/homebridge-fhem (https://github.com/justme-1968/homebridge-fhem)
Zitat von: justme1968 am 27 Dezember 2016, 14:49:39
hier: https://forum.fhem.de/index.php/topic,48558.msg402024.html#msg402024 (https://forum.fhem.de/index.php/topic,48558.msg402024.html#msg402024) und hier: https://github.com/justme-1968/homebridge-fhem (https://github.com/justme-1968/homebridge-fhem)
Danke, wo finde ich denn die
HomeKitTypes.js ?
in deiner homebrige installation. find / -name HomeKitTypes.js -print
Ist das so richtig ?:
attr Deckenleuchte homebridgeMapping Brightness = HUEDevice1:pct,minValue=0,maxValue=100
Wie lautet denn der Characteristic für die Helligkeit ???
Wie kann ich sie abfragen?
Mfg
Philipp ;D
Sorry für die vielen Fragen :-\, brauche ein paar Anstupser(oder Tritte) ;D
ja. ist richtig. aber ohne leerzeichen um das =
Jetzt habe ich Folgendes drin:
Brightness=HUEDevice1:pct,minValue=0,maxValue=100,
On=state,cmdOn=on,cmdOff=off
Jetzt kann ich die Helligkeit schalten, aber es gibt Nein Paar Sachen die ich nicht verstehe:
1. Wenn ich die Helligkeit per App einstelle (z.b. 100%), dann steht in der App immer der Wert geteilt durch 2.5 (also bei 100% 40%)
2. Was muss an Stelle von state=In Hin, dass die Lampe auch als Aus angezeigt werden kann?
Jetzt steht da immer,wenn ich die Lampe per App ausgemacht habe 0%, sie ist aber Aus.
EDIT: Es werden auch immer nur die Helligkeitswerte von HUEDevice1 geändert,was muss ich tun, dass auchHUEDevice3 geändert wird, aber dass die Helligkeit von HUEDevice1 angezeigt wird ? :o :o :o
MfG
Philipp ;D
Brightness=HUEDevice1:pct,minValue=0,maxValue=100,cmd=pct On=state,cmdOn=on,cmdOff=off
sollte das problem der falschen werte lösen.
an und aus geht am besten über das onoff reading:On=onoff,valueOff=0,cmdOn=on,cmdOff=off
Hi und Frohes Neues :D,
bin jetzt aus dem Urlaub zurück und habe mal dein vorgeschlagenes Mapping eingegeben.(siehe Anhang) :)
Jetzt funktioniert Alles, nur der Helligkeitswert stimmt noch immer nicht, wenn ich 100% einstelle steht da 40% an FHEM werden aber 100% weitergegeben. :-[
Aber nur an HUEDevice1 wird die Helligkeit geändert, an HUEDevice3 (die andere Birne in der Deckenlampe) wird die Helligkeit nicht verstellt.
Es scheint als ob die Werte durch 2,5 geteilt werden....
Habe echt keine Ahnung woran das liegt. :-\
Mfg
Philipp ;D
Ich verstehe nicht so ganz was ich falsch mache. :-[
Könntest du vlt bitte das Mapping so angeben, dass ich nur Copy&Paste machen muss.
Verstehe das nicht :-\
Ich möchte hier gerne auch nochmal um Rat fragen:
* Ich habe eine HUEGruppe mit zwei HUELampen (Lampe 2 + 3) drin.
* In der Gruppe ist folgendes "homebridgeMapping" eingetragen: "Brightness=HUEDevice2:pct,minValue=0,maxValue=100,cmd=pct On=state,cmdOn=on,cmdOff=off"
Über Homekit ist die HUEGruppe ansprechbar. Sie kann ein- und ausgeschaltet werden. Man kann die Farbe der beiden Lampen (zeitgleich) ändern.
ABER:
a) Auch bei mir wird in Homekit auf dem iOS Gerät eine maximale Helligkeit von 39% angezeigt. Die HUE Lampen sind laut fhem wirklich auf 100% Helligkeit. Auf der Homekit-Seite wird also ein falscher Wert angezeigt.
b) Wenn die Lampen ausgeschaltet sind, werden sei in HomeKit als "angeschaltet mit 0% Helligkeit" angezeigt. (Glühbirne im Homekit Icon leuchtet gelb)
-> Ich bin etwas ratlos und freue mich über jede Idee