alexa-fhem: amazon alexa smart home skill für fhem, api version 3

Begonnen von justme1968, 19 Dezember 2017, 22:16:30

Vorheriges Thema - Nächstes Thema

stefanru

#435
Ok,
das klingt schonmal gut. Leider gehts bei mir immer noch nicht.
Hast du irgendetwas eingestellt außer die developer Freigabe für den 2ten Account?
Irgendetwas am Account Linking oder an den Berechtigungen?

P.S.: Sehr komisch, habe mim 2ten Account nochmal im developer Bereich bei den Skills rumgespielt und den im Skill das umgestellt:
Send Alexa Events habe ich ausgeschaltet.
Dann kam eine Fehlermeldung dass ich das nicht dürfte. Auf der Seite davor konnte ich aber speichern und dann konnte ich den Skill Enablen.
Sehr seltsam.



Danke und Gruß,
Stefan

trfr3ak

Hi Leute,
ich habe das Problem, dass ein Gerät von alexa-fhem nicht erkannt wird. Bin aber nicht sicher woran es liegt..
Es ist ein Osram Smart Plug, der über zigbee2mqtt eingebunden wurde. Die Definition sieht so aus:

defmod 0x84182600000feb10 XiaomiMQTTDevice AB3257001NJ 0x84182600000feb10
attr 0x84182600000feb10 IODev MQTTPi
attr 0x84182600000feb10 alexaName 3DDrucker
attr 0x84182600000feb10 alexaRoom Zimmer
attr 0x84182600000feb10 alias Ender2
attr 0x84182600000feb10 eventMap on:ON:off off:OFF:on
attr 0x84182600000feb10 genericDeviceType switch
attr 0x84182600000feb10 icon it_printer
attr 0x84182600000feb10 room Alexa,Zimmer
attr 0x84182600000feb10 stateFormat state
attr 0x84182600000feb10 webCmd on:off

eigentlich müsste doch für alexa-fhem reichen, dass es im Raum Alexa ist und dass das genericDeviceType gesetzt ist oder?

Vielen Dank schonmal für die Hilfe  :)

MadMax-FHEM

#437
Was steht denn im alexa-fhem Log?
(NICHT fhem Log!)

Wie sieht dein Filtereintrag in der config.json aus?

room="Alexa" oder room="alexa" ?

EDIT: über den Namen "3DDrucker" also diese Schreibweise würde ich auch noch mal überdenken. Könnte sein, dass Alexa das nicht versteht bzw. "anders" versteht. Besser dann mal in der App schauen was Alexa verstanden hat (z.B. Drei De Drucker) und dann genau das bei alexaName eintragen. Anmerkung: alexaRoom ist nur für den Custom Skill relevant!

EDIT2: ist das dein erstes Gerät!? Also alexa-fhem etc. generell funktioniert!? Ob du genericDeviceType etc. brauchst hängt davon ab, ob das ein Gerät ist was alexa-fhem "schon so" kennt oder nicht... Bzgl. XiaomiMQTT Geräte könnten Beispiele zu finden sein...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

trfr3ak

Hey, danke für die Antwort =)
Nein, ist nicht mein erstes Gerät, habe bereits einige angebunden, nur die Osram Steckdose will nicht.
Hier ist der log von alexa-fhem nach einem neustart:

[2018-12-12 09:37:08] using /home/orion/.alexa/config.json
[2018-12-12 09:37:08] ---
[2018-12-12 09:37:08] this is alexa-fhem 0.4.4
[2018-12-12 09:37:08] Fetching FHEM devices...
[2018-12-12 09:37:08] [FHEM] starting longpoll: http://192.168.56.36:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1544603828922
[2018-12-12 09:37:08] Server listening on: https://:::3000
[2018-12-12 09:37:08] [FHEM] Checking devices and attributes...
[2018-12-12 09:37:08] [FHEM]   executing: http://192.168.56.36:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&fwcsrf=csrf_637077663666465&XHR=1
[2018-12-12 09:37:08] [FHEM]   executing: http://192.168.56.36:8083/fhem?cmd=jsonlist2%20TYPE=alexa&fwcsrf=csrf_637077663666465&XHR=1
[2018-12-12 09:37:08] [FHEM] Fetching FHEM devices...
[2018-12-12 09:37:08] [FHEM] fetching: http://192.168.56.36:8083/fhem?cmd=jsonlist2%20room=Alexa&fwcsrf=csrf_637077663666465&XHR=1
[2018-12-12 09:37:09] [FHEM] alexa device is MyAlexa
[2018-12-12 09:37:09] [FHEM] MyAlexa is switch
[2018-12-12 09:37:09] [FHEM] MyAlexa has
[2018-12-12 09:37:09] [FHEM] homebridgeMapping: #Characteristic=<name>=<value>,...
On=verb=schalte,valueOn=an;ein,valueOff=aus,valueToggle=um

Brightness=verb=stelle,property=helligkeit,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent

Hue=verb=stelle,valuePrefix=auf,values=rot:0;grün:128;blau:200
Hue=verb=färbe,values=rot:0;grün:120;blau:220

Saturation=verb=stelle,property=sättigung,valuePrefix=auf,values=AMAZON.NUMBER
Saturation=verb=sättige,values=AMAZON.NUMBER

TargetPosition=verb=mach,articles=den;die,values=auf:100;zu:0
TargetPosition=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent

TargetTemperature=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=grad

Volume:verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent

#Weckzeit=verb=stelle,valuePrefix=auf;für,values=AMAZON.TIME,valueSuffix=uhr
[2018-12-12 09:37:09] [FHEM]   executing: http://192.168.56.36:8083/fhem?cmd=%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;%7B$defs%7BMyAlexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20=%20%220.4.4%22%7D;%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&fwcsrf=csrf_637077663666465&XHR=1
[2018-12-12 09:37:09] perfectOfVerb:
[2018-12-12 09:37:09] { stelle: 'gestellt',
  schalte: 'geschaltet',
  'färbe': 'gefärbt',
  mach: 'gemacht' }
[2018-12-12 09:37:09] verbsOfIntent:
[2018-12-12 09:37:09] [ OnIntent: [ 'schalte' ],
  prozentIntent: [ 'stelle' ],
  HueIntent: [ 'stelle' ],
  HueIntentB: [ 'färbe' ],
  SaturationIntent: [ 'stelle' ],
  SaturationIntentB: [ 'sättige' ],
  TargetPositionIntent: [ 'mach' ],
  gradIntent: [ 'stelle' ] ]
[2018-12-12 09:37:09] characteristicsOfIntent:
[2018-12-12 09:37:09] { OnIntent: [ 'On' ],
  prozentIntent: [ 'Brightness', 'TargetPosition', 'Volume' ],
  HueIntent: [ 'Hue' ],
  HueIntentB: [ 'Hue' ],
  SaturationIntent: [ 'Saturation' ],
  SaturationIntentB: [ 'Saturation' ],
  TargetPositionIntent: [ 'TargetPosition' ],
  gradIntent: [ 'TargetTemperature' ] }
[2018-12-12 09:37:09] prefixOfIntent:
[2018-12-12 09:37:09] { OnIntent: undefined,
  prozentIntent: 'auf',
  HueIntent: 'auf',
  HueIntentB: undefined,
  SaturationIntent: 'auf',
  SaturationIntentB: undefined,
  TargetPositionIntent: undefined,
  gradIntent: 'auf' }
[2018-12-12 09:37:09] suffixOfIntent:
[2018-12-12 09:37:09] { OnIntent: undefined,
  prozentIntent: 'prozent',
  HueIntent: undefined,
  HueIntentB: undefined,
  SaturationIntent: undefined,
  SaturationIntentB: undefined,
  TargetPositionIntent: undefined,
  gradIntent: 'grad' }
[2018-12-12 09:37:09] alexaTypes:
[2018-12-12 09:37:09] { light: [ 'licht', 'lampen' ],
  blind:
   [ 'rolladen',
     'rolläden',
     'jalousie',
     'jalousien',
     'rollo',
     'rollos' ] }
[2018-12-12 09:37:09] roomOfEcho:
[2018-12-12 09:37:09] {}
[2018-12-12 09:37:09] fhemIntents:
[2018-12-12 09:37:09] { FHEMgutenMorgenIntent: 'gutenMorgen',
  FHEMguteNachtIntent: 'guteNacht' }
[2018-12-12 09:37:09] [FHEM]   executing: http://192.168.56.36:8083/fhem?cmd=%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;list%20MyAlexa%20.Alexa.Authorization;%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&fwcsrf=csrf_637077663666465&XHR=1
[2018-12-12 09:37:09] [FHEM] got: 12 results
[2018-12-12 09:37:09] [FHEM] 0x00158d000239a368 is thermometer
[2018-12-12 09:37:09] [FHEM] 0x00158d000239a368 has
[2018-12-12 09:37:09] [FHEM]   Custom Voltage [voltage]
[2018-12-12 09:37:09] [FHEM]   StatusLowBattery [battery]
[2018-12-12 09:37:09] [FHEM]   CurrentTemperature [temperature]
[2018-12-12 09:37:09] [FHEM]   CurrentRelativeHumidity [humidity]
[2018-12-12 09:37:09] [FHEM] { name: 'Voltage',
  reading: 'voltage',
  format: 'FLOAT',
  factor: 1,
  device: '0x00158d000239a368',
  informId: '0x00158d000239a368-voltage',
  characteristic_type: 'E863F10A-079E-48FF-8F27-9C2605A29F52',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: 0x00158d000239a368-voltage: 2995
[2018-12-12 09:37:09] [FHEM]     caching: Custom Voltage: 2995 (as number; from '2995')
[2018-12-12 09:37:09] [FHEM] { reading: 'battery',
  values: [ 'ok:BATTERY_LEVEL_NORMAL', '/.*/:BATTERY_LEVEL_LOW' ],
  device: '0x00158d000239a368',
  informId: '0x00158d000239a368-battery',
  characteristic_type: 'StatusLowBattery',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' },
  value2homekit: { ok: 'BATTERY_LEVEL_NORMAL' },
  value2homekit_re: [ { re: '.*', to: 'BATTERY_LEVEL_LOW' } ] }
  2018-12-12 09:37:09 caching: 0x00158d000239a368-battery: ok
[2018-12-12 09:37:09] [FHEM] { reading: 'temperature',
  minValue: -30,
  device: '0x00158d000239a368',
  informId: '0x00158d000239a368-temperature',
  characteristic_type: 'CurrentTemperature',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: 0x00158d000239a368-temperature: 22.9
[2018-12-12 09:37:09] [FHEM] { reading: 'humidity',
  device: '0x00158d000239a368',
  informId: '0x00158d000239a368-humidity',
  characteristic_type: 'CurrentRelativeHumidity',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: 0x00158d000239a368-humidity: 59.85
[2018-12-12 09:37:09] [FHEM] 0x00158d00024787dd is thermometer
[2018-12-12 09:37:09] [FHEM] 0x00158d00024787dd has
[2018-12-12 09:37:09] [FHEM]   Custom Voltage [voltage]
[2018-12-12 09:37:09] [FHEM]   StatusLowBattery [battery]
[2018-12-12 09:37:09] [FHEM]   CurrentTemperature [temperature]
[2018-12-12 09:37:09] [FHEM]   CurrentRelativeHumidity [humidity]
[2018-12-12 09:37:09] [FHEM]   Custom AirPressure [pressure]
[2018-12-12 09:37:09] [FHEM] { name: 'Voltage',
  reading: 'voltage',
  format: 'FLOAT',
  factor: 1,
  device: '0x00158d00024787dd',
  informId: '0x00158d00024787dd-voltage',
  characteristic_type: 'E863F10A-079E-48FF-8F27-9C2605A29F52',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: 0x00158d00024787dd-voltage: 2925
[2018-12-12 09:37:09] [FHEM]     caching: Custom Voltage: 2925 (as number; from '2925')
[2018-12-12 09:37:09] [FHEM] { reading: 'battery',
  values: [ 'ok:BATTERY_LEVEL_NORMAL', '/.*/:BATTERY_LEVEL_LOW' ],
  device: '0x00158d00024787dd',
  informId: '0x00158d00024787dd-battery',
  characteristic_type: 'StatusLowBattery',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' },
  value2homekit: { ok: 'BATTERY_LEVEL_NORMAL' },
  value2homekit_re: [ { re: '.*', to: 'BATTERY_LEVEL_LOW' } ] }
  2018-12-12 09:37:09 caching: 0x00158d00024787dd-battery: low
[2018-12-12 09:37:09] [FHEM] { reading: 'temperature',
  minValue: -30,
  device: '0x00158d00024787dd',
  informId: '0x00158d00024787dd-temperature',
  characteristic_type: 'CurrentTemperature',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: 0x00158d00024787dd-temperature: 2.05
[2018-12-12 09:37:09] [FHEM] { reading: 'humidity',
  device: '0x00158d00024787dd',
  informId: '0x00158d00024787dd-humidity',
  characteristic_type: 'CurrentRelativeHumidity',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: 0x00158d00024787dd-humidity: 63.12
[2018-12-12 09:37:09] [FHEM] { name: 'AirPressure',
  reading: 'pressure',
  format: 'UINT16',
  factor: 1,
  device: '0x00158d00024787dd',
  informId: '0x00158d00024787dd-pressure',
  characteristic_type: 'E863F10F-079E-48FF-8F27-9C2605A29F52',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: 0x00158d00024787dd-pressure: 930.93
[2018-12-12 09:37:09] [FHEM]     caching: Custom AirPressure: 931 (as number; from '930.93')
[2018-12-12 09:37:09] [FHEM] 0x84182600000feb10 is switch
[2018-12-12 09:37:09] [FHEM] 0x84182600000feb10 has
[2018-12-12 09:37:09] [FHEM] AmazonJonas: no service type detected
[2018-12-12 09:37:09] [FHEM] no device created for AmazonJonas (echodevice)
[2018-12-12 09:37:09] [FHEM] BettLED is switch
[2018-12-12 09:37:09] [FHEM] BettLED has
[2018-12-12 09:37:09] [FHEM]   Hue [hue;HSV;0-359]
[2018-12-12 09:37:09] [FHEM]   Saturation [saturation;HSV;0-100]
[2018-12-12 09:37:09] [FHEM]   Brightness [brightness]
[2018-12-12 09:37:09] [FHEM]   On [state;on,off]
[2018-12-12 09:37:09] [FHEM] { reading: 'hue',
  cmd: 'HSV',
  max: 359,
  maxValue: 359,
  homekit2reading: [Function: bound homekit2reading],
  device: 'BettLED',
  informId: 'BettLED-hue',
  characteristic_type: 'Hue',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: BettLED-hue: 307
[2018-12-12 09:37:09] [FHEM] { reading: 'saturation',
  cmd: 'HSV',
  max: 100,
  maxValue: 100,
  homekit2reading: [Function: bound homekit2reading],
  device: 'BettLED',
  informId: 'BettLED-saturation',
  characteristic_type: 'Saturation',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: BettLED-saturation: 100
[2018-12-12 09:37:09] [FHEM] { reading: 'brightness',
  cmd: 'HSV',
  max: 100,
  maxValue: 100,
  delay: true,
  homekit2reading: [Function: bound homekit2reading],
  device: 'BettLED',
  informId: 'BettLED-brightness',
  characteristic_type: 'Brightness',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: BettLED-brightness: 100
[2018-12-12 09:37:09] [FHEM] { reading: 'state',
  valueOff: '/off|A0|000000/',
  cmdOn: 'on',
  cmdOff: 'off',
  device: 'BettLED',
  informId: 'BettLED-state',
  characteristic_type: 'On',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: BettLED-state: on
[2018-12-12 09:37:09] [FHEM] KlSchrank1 is light
[2018-12-12 09:37:09] [FHEM] KlSchrank1 has
[2018-12-12 09:37:09] [FHEM]   On [state;on,off]
[2018-12-12 09:37:09] [FHEM] { reading: 'state',
  valueOff: '/off|A0|000000/',
  cmdOn: 'on',
  cmdOff: 'off',
  device: 'KlSchrank1',
  informId: 'KlSchrank1-state',
  characteristic_type: 'On',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: KlSchrank1-state: off
[2018-12-12 09:37:09] [FHEM] L_Kleiderschrank is light
[2018-12-12 09:37:09] [FHEM] L_Kleiderschrank has
[2018-12-12 09:37:09] [FHEM]   Hue [hue;HSV;0-359]
[2018-12-12 09:37:09] [FHEM]   Saturation [saturation;HSV;0-100]
[2018-12-12 09:37:09] [FHEM]   Brightness [brightness]
[2018-12-12 09:37:09] [FHEM]   On [state;on,off]
[2018-12-12 09:37:09] [FHEM] { reading: 'hue',
  cmd: 'HSV',
  max: 359,
  maxValue: 359,
  homekit2reading: [Function: bound homekit2reading],
  device: 'L_Kleiderschrank',
  informId: 'L_Kleiderschrank-hue',
  characteristic_type: 'Hue',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: L_Kleiderschrank-hue: 0
[2018-12-12 09:37:09] [FHEM] { reading: 'saturation',
  cmd: 'HSV',
  max: 100,
  maxValue: 100,
  homekit2reading: [Function: bound homekit2reading],
  device: 'L_Kleiderschrank',
  informId: 'L_Kleiderschrank-saturation',
  characteristic_type: 'Saturation',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: L_Kleiderschrank-saturation: 0
[2018-12-12 09:37:09] [FHEM] { reading: 'brightness',
  cmd: 'HSV',
  max: 100,
  maxValue: 100,
  delay: true,
  homekit2reading: [Function: bound homekit2reading],
  device: 'L_Kleiderschrank',
  informId: 'L_Kleiderschrank-brightness',
  characteristic_type: 'Brightness',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: L_Kleiderschrank-brightness: 100
[2018-12-12 09:37:09] [FHEM] { reading: 'state',
  valueOff: '/off|A0|000000/',
  cmdOn: 'on',
  cmdOff: 'off',
  device: 'L_Kleiderschrank',
  informId: 'L_Kleiderschrank-state',
  characteristic_type: 'On',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: L_Kleiderschrank-state: on
[2018-12-12 09:37:09] [FHEM] L_Nachttisch is light
[2018-12-12 09:37:09] [FHEM] L_Nachttisch has
[2018-12-12 09:37:09] [FHEM]   Hue [hue;HSV;0-359]
[2018-12-12 09:37:09] [FHEM]   Saturation [saturation;HSV;0-100]
[2018-12-12 09:37:09] [FHEM]   Brightness [brightness]
[2018-12-12 09:37:09] [FHEM]   On [state;on,off]
[2018-12-12 09:37:09] [FHEM] { reading: 'hue',
  cmd: 'HSV',
  max: 359,
  maxValue: 359,
  homekit2reading: [Function: bound homekit2reading],
  device: 'L_Nachttisch',
  informId: 'L_Nachttisch-hue',
  characteristic_type: 'Hue',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: L_Nachttisch-hue: 0
[2018-12-12 09:37:09] [FHEM] { reading: 'saturation',
  cmd: 'HSV',
  max: 100,
  maxValue: 100,
  homekit2reading: [Function: bound homekit2reading],
  device: 'L_Nachttisch',
  informId: 'L_Nachttisch-saturation',
  characteristic_type: 'Saturation',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: L_Nachttisch-saturation: 0
[2018-12-12 09:37:09] [FHEM] { reading: 'brightness',
  cmd: 'HSV',
  max: 100,
  maxValue: 100,
  delay: true,
  homekit2reading: [Function: bound homekit2reading],
  device: 'L_Nachttisch',
  informId: 'L_Nachttisch-brightness',
  characteristic_type: 'Brightness',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: L_Nachttisch-brightness: 100
[2018-12-12 09:37:09] [FHEM] { reading: 'state',
  valueOff: '/off|A0|000000/',
  cmdOn: 'on',
  cmdOff: 'off',
  device: 'L_Nachttisch',
  informId: 'L_Nachttisch-state',
  characteristic_type: 'On',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: L_Nachttisch-state: on
[2018-12-12 09:37:09] [FHEM] L_Schrank is light
[2018-12-12 09:37:09] [FHEM] L_Schrank has
[2018-12-12 09:37:09] [FHEM]   Hue [hue;HSV;0-359]
[2018-12-12 09:37:09] [FHEM]   Saturation [saturation;HSV;0-100]
[2018-12-12 09:37:09] [FHEM]   Brightness [brightness]
[2018-12-12 09:37:09] [FHEM]   On [state;on,off]
[2018-12-12 09:37:09] [FHEM] { reading: 'hue',
  cmd: 'HSV',
  max: 359,
  maxValue: 359,
  homekit2reading: [Function: bound homekit2reading],
  device: 'L_Schrank',
  informId: 'L_Schrank-hue',
  characteristic_type: 'Hue',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: L_Schrank-hue: 0
[2018-12-12 09:37:09] [FHEM] { reading: 'saturation',
  cmd: 'HSV',
  max: 100,
  maxValue: 100,
  homekit2reading: [Function: bound homekit2reading],
  device: 'L_Schrank',
  informId: 'L_Schrank-saturation',
  characteristic_type: 'Saturation',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: L_Schrank-saturation: 0
[2018-12-12 09:37:09] [FHEM] { reading: 'brightness',
  cmd: 'HSV',
  max: 100,
  maxValue: 100,
  delay: true,
  homekit2reading: [Function: bound homekit2reading],
  device: 'L_Schrank',
  informId: 'L_Schrank-brightness',
  characteristic_type: 'Brightness',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: L_Schrank-brightness: 100
[2018-12-12 09:37:09] [FHEM] { reading: 'state',
  valueOff: '/off|A0|000000/',
  cmdOn: 'on',
  cmdOff: 'off',
  device: 'L_Schrank',
  informId: 'L_Schrank-state',
  characteristic_type: 'On',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: L_Schrank-state: on
[2018-12-12 09:37:09] [FHEM] MAX_0e5b4d is thermostat
[2018-12-12 09:37:09] [FHEM] MAX_0e5b4d has
[2018-12-12 09:37:09] [FHEM]   StatusLowBattery [battery]
[2018-12-12 09:37:09] [FHEM]   FirmwareRevision [firmware]
[2018-12-12 09:37:09] [FHEM]   TargetTemperature [desiredTemperature]
[2018-12-12 09:37:09] [FHEM]   Custom Actuation [valveposition]
[2018-12-12 09:37:09] [FHEM]   CurrentTemperature [temperature]
[2018-12-12 09:37:09] [FHEM]   CurrentHeatingCoolingState [undefined]
[2018-12-12 09:37:09] [FHEM] { reading: 'battery',
  values: [ 'ok:BATTERY_LEVEL_NORMAL', '/.*/:BATTERY_LEVEL_LOW' ],
  device: 'MAX_0e5b4d',
  informId: 'MAX_0e5b4d-battery',
  characteristic_type: 'StatusLowBattery',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' },
  value2homekit: { ok: 'BATTERY_LEVEL_NORMAL' },
  value2homekit_re: [ { re: '.*', to: 'BATTERY_LEVEL_LOW' } ] }
  2018-12-12 09:37:09 caching: MAX_0e5b4d-battery: ok
[2018-12-12 09:37:09] [FHEM] { reading: 'firmware',
  _isInformation: true,
  device: 'MAX_0e5b4d',
  informId: 'MAX_0e5b4d-firmware',
  characteristic_type: 'FirmwareRevision',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: MAX_0e5b4d-firmware: 1.0
[2018-12-12 09:37:09] [FHEM] { reading: 'desiredTemperature',
  cmd: 'desiredTemperature',
  delay: true,
  minValue: 5,
  maxValue: 30,
  minStep: 0.5,
  device: 'MAX_0e5b4d',
  informId: 'MAX_0e5b4d-desiredTemperature',
  characteristic_type: 'TargetTemperature',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: MAX_0e5b4d-desiredTemperature: 21.0
[2018-12-12 09:37:09] [FHEM] { reading: 'valveposition',
  name: 'Actuation',
  format: 'UINT8',
  unit: 'PERCENTAGE',
  maxValue: 100,
  minValue: 0,
  minStep: 1,
  device: 'MAX_0e5b4d',
  informId: 'MAX_0e5b4d-valveposition',
  characteristic_type: '4648454d-0201-686F-6D65-627269646765',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: MAX_0e5b4d-valveposition: 53
[2018-12-12 09:37:09] [FHEM]     caching: Custom Actuation: 53 (as number; from '53')
[2018-12-12 09:37:09] [FHEM] { reading: 'temperature',
  minValue: -30,
  device: 'MAX_0e5b4d',
  informId: 'MAX_0e5b4d-temperature',
  characteristic_type: 'CurrentTemperature',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: MAX_0e5b4d-temperature: 22.6
[2018-12-12 09:37:09] [FHEM] { default: 'HEAT',
  device: 'MAX_0e5b4d',
  informId: 'MAX_0e5b4d-undefined',
  characteristic_type: 'CurrentHeatingCoolingState',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
[2018-12-12 09:37:09] [FHEM] MAX_0e77d2 is thermostat
[2018-12-12 09:37:09] [FHEM] MAX_0e77d2 has
[2018-12-12 09:37:09] [FHEM]   StatusLowBattery [battery]
[2018-12-12 09:37:09] [FHEM]   FirmwareRevision [firmware]
[2018-12-12 09:37:09] [FHEM]   TargetTemperature [desiredTemperature]
[2018-12-12 09:37:09] [FHEM]   Custom Actuation [valveposition]
[2018-12-12 09:37:09] [FHEM]   CurrentTemperature [temperature]
[2018-12-12 09:37:09] [FHEM]   CurrentHeatingCoolingState [undefined]
[2018-12-12 09:37:09] [FHEM] { reading: 'battery',
  values: [ 'ok:BATTERY_LEVEL_NORMAL', '/.*/:BATTERY_LEVEL_LOW' ],
  device: 'MAX_0e77d2',
  informId: 'MAX_0e77d2-battery',
  characteristic_type: 'StatusLowBattery',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' },
  value2homekit: { ok: 'BATTERY_LEVEL_NORMAL' },
  value2homekit_re: [ { re: '.*', to: 'BATTERY_LEVEL_LOW' } ] }
  2018-12-12 09:37:09 caching: MAX_0e77d2-battery: ok
[2018-12-12 09:37:09] [FHEM] { reading: 'firmware',
  _isInformation: true,
  device: 'MAX_0e77d2',
  informId: 'MAX_0e77d2-firmware',
  characteristic_type: 'FirmwareRevision',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: MAX_0e77d2-firmware: 1.0
[2018-12-12 09:37:09] [FHEM] { reading: 'desiredTemperature',
  cmd: 'desiredTemperature',
  delay: true,
  minValue: 5,
  maxValue: 30,
  minStep: 0.5,
  device: 'MAX_0e77d2',
  informId: 'MAX_0e77d2-desiredTemperature',
  characteristic_type: 'TargetTemperature',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: MAX_0e77d2-desiredTemperature: 20.5
[2018-12-12 09:37:09] [FHEM] { reading: 'valveposition',
  name: 'Actuation',
  format: 'UINT8',
  unit: 'PERCENTAGE',
  maxValue: 100,
  minValue: 0,
  minStep: 1,
  device: 'MAX_0e77d2',
  informId: 'MAX_0e77d2-valveposition',
  characteristic_type: '4648454d-0201-686F-6D65-627269646765',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: MAX_0e77d2-valveposition: 80
[2018-12-12 09:37:09] [FHEM]     caching: Custom Actuation: 80 (as number; from '80')
[2018-12-12 09:37:09] [FHEM] { reading: 'temperature',
  minValue: -30,
  device: 'MAX_0e77d2',
  informId: 'MAX_0e77d2-temperature',
  characteristic_type: 'CurrentTemperature',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: MAX_0e77d2-temperature: 22.4
[2018-12-12 09:37:09] [FHEM] { default: 'HEAT',
  device: 'MAX_0e77d2',
  informId: 'MAX_0e77d2-undefined',
  characteristic_type: 'CurrentHeatingCoolingState',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
[2018-12-12 09:37:09] [FHEM] Sonoff_Switch is switch
[2018-12-12 09:37:09] [FHEM] Sonoff_Switch has
[2018-12-12 09:37:09] [FHEM]   On [state;on,off]
[2018-12-12 09:37:09] [FHEM] { reading: 'state',
  valueOff: '/off|A0|000000/',
  cmdOn: 'on',
  cmdOff: 'off',
  device: 'Sonoff_Switch',
  informId: 'Sonoff_Switch-state',
  characteristic_type: 'On',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-12-12 09:37:09 caching: Sonoff_Switch-state: ON
(also das Gerät wird einfach nicht aufgeführt)

und meine config.json
{
    "alexa": {
        "port": 3000,
        "name": "Alexa TEST",
        "keyFile": "./key.pem",
        "certFile": "./cert.pem",
        "nat-pmp": "",
        "nat-upnp": false,
        "applicationId": "",
        "oauthClientID": "amzn1.application-oa2-client.*********"
    },

    "connections": [
        {
            "name": "FHEM",
            "server": "192.168.56.36",
            "port": "8083",
            "webname": "fhem",
            "filter": "room=Alexa"
        }
    ]
}



TomLee


trfr3ak

Tausend Dank!! Das wars, jetzt wirds auch von alexa-fhem gefunden  :)

stefanru


MadMax-FHEM

Zitat von: stefanru am 12 Dezember 2018, 20:33:25
@TomLee: Was ist das denn?  ???

Bin zwar nicht TomLee ;) aber:

ein anderes Attribut eventMap für das oben genannte "Problem-Gerät": 0x84182600000feb10

Was sonst... ;)

Hoffentlich richtig beantwortet... ;)

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

stefanru

Danke MadMax,
hatte überlesen, dass das Gerät so eine seltsame Bezeichnung hat.

Gruß,
Stefan

MadMax-FHEM

Zitat von: stefanru am 12 Dezember 2018, 22:22:15
Danke MadMax,
hatte überlesen, dass das Gerät so eine seltsame Bezeichnung hat.

Gruß,
Stefan

Hi Stefan,

gerne!
Kommt schon mal vor... ;)

Programmier- bzw. RegEx-technisch sicher kein einfacher Name... ;)

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

r_knipp

Hallo zusammen,

ich versuche gerade Alexa einzurichten. Bei dem Schritt wo man in der Lambdafunktion die ARN-Nummer unter Alexa Smart Home eintragen soll, wird mir dieser Menüeintrag nicht angezeigt. Wurde dort etwas geändert. Habe die Anleitung bisher Schritt für Schritt erfolgreich abgearbeitet.
Vielen Dank für eure Hilfe.

Gruß,
Robert

Tommy82

Zitat von: r_knipp am 13 Dezember 2018, 17:03:09
Hallo zusammen,

ich versuche gerade Alexa einzurichten. Bei dem Schritt wo man in der Lambdafunktion die ARN-Nummer unter Alexa Smart Home eintragen soll, wird mir dieser Menüeintrag nicht angezeigt. Wurde dort etwas geändert. Habe die Anleitung bisher Schritt für Schritt erfolgreich abgearbeitet.
Vielen Dank für eure Hilfe.

Gruß,
Robert

Hi,
das gehört normal in den Probleme bei der installations Thread......

Ich hab grade aber nochmal nachgesehen, also bei mir sieht das alles noch wie im Wiki beschrieben aus.
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

Tommy82

Hab dann aber auch nochmal eine Frage, hat einer HUE RGB Lampen die er über FHEM Alexa steuert? Wie habt ihr die Angelegt?
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

hermanski.k

#448
Hallo zusammen,

seit gestern findet alexa keine Geräte mehr bei mir.
Per fhem lassen sich alle Geräte noch schalten.
Meiner Meinung nach habe ich nicht geändert.

Anbei zwei Screenshots zur alex-fhem.log und nach ausführen von ./bin/alexa

Wäre super dankbar für eure Unterstützung.
Im Moment stehe ich auf dem Schlauch.

SG

Kamilo

MadMax-FHEM

#449
Der manuelle Start geht schief weil ja schon was (verm. alexa-fhem) auf Port 3000 läuft...

Bei der ersten Ausgabe sieht man dass alexa-fhem (auch) keine Geräte findet...
...sofern der Screenshot vollständig ist...

Damit ist das "offline" klar...

Poste doch mal ein list eines Gerätes das gefunden werden sollte...
...und den Filter-Eintrag aus der /home/pi/.alexa/config.json

Und bitte posten (Code-Tags '#') und keinen Screenshot...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)