ssh fhem.garnix.de register email=<adresse>
<Hashcode-Deines-Public-SSH-Key>-<generiertes Passwort>
...
"alexa":
...
"ssl": false,
"bind-ip": "127.0.0.1",
"trustAny": true,
...
} else if( (token === accepted_token && Date.now() < expires) || this._config.alexa.trustAny === true) {
handler.bind(this)( event, callback );
Zitat von: gvzdus am 23 Dezember 2018, 23:59:52
- Ja.Hosting geht z.Zt. auf meinen Deckel und hängt an mir. Die erwarteten 40 Euro im Monat bringen mich aber nicht um. Wenn ich "meinen Server" zum Verein übertragen kann, tue ich das.
Zitat von: gvzdus am 23 Dezember 2018, 23:59:52
- Vielleicht habe ich doch etwas abschreckend geschrieben, ich will mir halt nicht ans Bein binden, nodejs zu installieren o.ä. zu Supporten.
const PORT=443;
const HOST='fhem.garnix.de';
// namespaces
const NAMESPACE_CONTROL = "Alexa.ConnectedHome.Control";
const NAMESPACE_DISCOVERY = "Alexa.ConnectedHome.Discovery";
// errors
const ERROR_TARGET_OFFLINE = "TargetOfflineError";
const ERROR_UNSUPPORTED_OPERATION = "UnsupportedOperationError";
const ERROR_UNEXPECTED_INFO = "UnexpectedInformationReceivedError";
// Bearer-Tokens to debug:
const DEBUG_TOKENS = new Set(['b0a3b71AA3387fd1']);
// entry
exports.handler = function(event, context, callback) {
var token;
if( event.directive && event.directive.endpoint && event.directive.endpoint.scope && event.directive.endpoint.scope.token )
token = event.directive.endpoint.scope.token;
else if( event.directive && event.directive.payload && event.directive.payload.scope && event.directive.payload.scope.token )
token = event.directive.payload.scope.token;
else if( event.context && event.context.System && event.context.System.user && event.context.System.user.accessToken )
token = event.context.System.user.accessToken;
else if( event.session && event.session.user && event.session.user.accessToken )
token = event.session.user.accessToken;
else if( event.payload )
token = event.payload.accessToken;
else
token = undefined;
var DEBUG = DEBUG_TOKENS.has(token);
if (DEBUG) {
console.log(`EVENT: ` + JSON.stringify(event));
console.log(`CONTEXT: ` + JSON.stringify(context));
}
var ctoken;
if (event.directive && event.directive.header && event.directive.header.correlationToken ) {
ctoken = event.directive.header.correlationToken;
event.directive.header.correlationToken = "-";
}
var post_data = JSON.stringify(event);
var options = {
hostname: HOST,
port: PORT,
//family: 6,
path: '/alexa',
method: 'POST',
rejectUnauthorized: false, // accept self-signed
headers: {
'Content-Type': 'application/json',
'Content-Length': Buffer.byteLength(post_data),
'Authorization': 'Bearer ' + token
}
};
var request = require('https').request(options, (result) => {
if (DEBUG) {
console.log(`STATUS: ${result.statusCode}`);
console.log(`HEADERS: ${JSON.stringify(result.headers)}`);
}
result.setEncoding('utf8');
var body = '';
result.on('data', (chunk) => body += chunk);
result.on('end', () => {
if (DEBUG) {
console.log(`BODY: ${JSON.stringify(body)}`);
}
var reply = JSON.parse(body);
if (ctoken && reply.event && reply.event.header && reply.event.header.correlationToken) {
reply.event.header.correlationToken = ctoken;
}
callback(null, JSON.parse(body) );
return;
});
});
request.on('error', (e) => {
console.log(`problem with request: ${e.message}`);
callback(null, createError(ERROR_TARGET_OFFLINE) );
return;
});
request.write(post_data);
request.end();
return;
}// exports.handler
// support functions
var createMessageId = function() {
var d = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = (d + Math.random()*16)%16 | 0;
d = Math.floor(d/16);
return (c=='x' ? r : (r&0x3|0x8)).toString(16);
});
return uuid;
}// createMessageId
var createHeader = function(namespace, name) {
return {
"messageId": createMessageId(),
"namespace": namespace,
"name": name,
"payloadVersion": "2"
};
}// createHeader
var createError = function(error,payload) {
if( payload === undefined )
payload = {};
return {
"header" : createHeader(NAMESPACE_CONTROL,error),
"payload" : payload,
};
}// createError
Zitat von: gvzdus am 24 Dezember 2018, 08:39:36
> Hi Martin,
Georg, aber kein Problem :)
Cheers und schöne Weihnachten, Georg
ssh fhem.garnix.de register
ssh-keygen
Diese Website kann keine sichere Verbindung bereitstellen fhem.garnix.de hat eine ungültige Antwort gesendet.
Versuchen Sie, die Windows-Netzwerkdiagnose auszuführen.
ERR_SSL_PROTOCOL_ERROR
[2019-1-1 19:56:13] [FHEM] Wohnzimmer_MSwitch: executing set cmd for On with value 1
[2019-1-1 19:56:13] [FHEM] executing: http://192.168.2.40:8083/fhem?cmd=set%20Wohnzimmer_MSwitch%20on&XHR=1
response :{"context":{"properties":[{"namespace":"Alexa.PowerController","name":"powerState","value":"ON","timeOfSample":"2019-01-01T18:56:13.453Z","uncertaintyInMilliseconds":500}]},"event":{"header":{"name":"Response","payloadVersion":3,"namespace":"Alexa","messageId":"geheim","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"geheim"},"endpointId":"Wohnzimmer_MSwitch"},"payload":{}}}
Host *
ServerAliveInterval 30
ServerAliveCountMax 4
{
"alexa": {
"port": 3000,
"name": "Alexa",
"bind-ip": "127.0.0.1",
"ssl": false,
"publicSkill": true,
"ssh": "/usr/bin/ssh"
},
Zitat von: gvzdus am 02 Januar 2019, 15:43:54
Mit der ersten Runde hatte ich ja erfahrene Nutzer gesucht, die bereit sind, ihre laufende Installation auf's Spiel zu setzen und für die gute Sache zu testen.
Ich weiß zwar noch vieles, was zu verbessern ist, aber dem einen oder anderen läuft die Ferienzeit vermutlich dem Ende entgegen.
Deswegen möchte ich nun die "Alexa-Fhem für Dummies"-Version von FHEMlazy vorstellen, die auf die Leute abzielt, die bisher noch nicht so weit gekommen sind, und perfekterweise von Null auf ihre ansonsten laufende FHEM-Installation mit Alexa anreichern wollen.
Gegenüber der ersten Version:
- Ist nunmehr "meine" Version von Alexa-FHEM nötig, die neben diversen Anpassungen einen Installer mitbringt. Diese wird im Laufe der Installation geladen
- Liegt die Kommunikation nun auf einer VM vom FHEM-Verein, die Rudi König zur Verfügung gestellt hat
- Hat sich nach der Anregung von Andre (justme1968) das Sicherheitskonzept grundsätzlich geändert: Wie im Original von Andre wird jetzt das Bearer-Token wieder in der lokalen NodeJS-Software validiert. Der Installer generiert es und sichert es in FHEM-Konfiguration.
- Der Installer kümmert sich von der SSH-Keygenerierung über den Start des SSH-Clients bis hin zum Autostart von alexa-fhem beim Start von FHEM so ziemlich um alles.
Mein Ziel ist, dass der ganze Installationsspaß unter 10 Minuten von Null aus braucht.
Insofern möchte ich zum Besuch der Wikiseite:
https://wiki.fhem.de/wiki/Alexa-FHEM-lazy
einladen, hier stehen alle Schritte drin.
npm ERR! path /root/.npm/_logs
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall scandir
npm ERR! Error: EACCES: permission denied, scandir '/root/.npm/_logs'
npm ERR! { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
npm ERR! stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'scandir',
npm ERR! path: '/root/.npm/_logs' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
glob error { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'',
errno: -13,
code: 'EACCES',
syscall: 'scandir',
path: '/root/.npm/_logs' }
npm ERR! path /root/.npm/_cacache/index-v5/b5/54/aa8983e85e659dca40242d9b62bf74f435ea8b2223e1622754298361f304
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open
npm ERR! Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/b5/54/aa8983e85e659dca40242d9b62bf74f435ea8b2223e1622754298361f304'
npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/b5/54/aa8983e85e659dca40242d9b62bf74f435ea8b2223e1622754298361f304'
npm ERR! cause:
npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/b5/54/aa8983e85e659dca40242d9b62bf74f435ea8b2223e1622754298361f304'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: '/root/.npm/_cacache/index-v5/b5/54/aa8983e85e659dca40242d9b62bf74f435ea8b2223e1622754298361f304' },
npm ERR! isOperational: true,
npm ERR! stack: 'Error: EACCES: permission denied, open \'/root/.npm/_cacache/index-v5/b5/54/aa8983e85e659dca40242d9b62bf74f435ea8b2223e1622754298361f304\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: '/root/.npm/_cacache/index-v5/b5/54/aa8983e85e659dca40242d9b62bf74f435ea8b2223e1622754298361f304',
npm ERR! parent: 'alexa-fhem' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
fhem@fhem:/opt/fhem/alexa-fhem$ bin/alexa -A
Creating directory /root/.alexa
(node:19697) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir '/root/.alexa'
at Object.fs.mkdirSync (fs.js:885:18)
at runAutoconfig (/opt/fhem/alexa-fhem/lib/user.js:79:8)
at /opt/fhem/alexa-fhem/lib/user.js:61:15
at /opt/fhem/alexa-fhem/lib/user.js:62:7
at new Promise (<anonymous>)
at Function.User.autoConfig (/opt/fhem/alexa-fhem/lib/user.js:56:10)
at /opt/fhem/alexa-fhem/lib/cli.js:27:42
at Command.<anonymous> (/opt/fhem/alexa-fhem/node_modules/commander/index.js:395:35)
at emitNone (events.js:106:13)
at Command.emit (events.js:208:7)
(node:19697) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:19697) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
fhem@fhem:/opt/fhem/alexa-fhem$
set
env
export HOME=/opt/fhem
npm install -g
Zitat von: MarkusN am 02 Januar 2019, 20:43:22
Ich frage mich zumindest beim letzten Befehl warum die Dateien im root profil angelegt werden sollen.
2019-01-02T16:08:20.576Z info server.js: fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=...*&fwcsrf=csrf_394589785944464&XHR=1
2019-01-02T16:08:20.828Z info server.js: got: 23 results
list alexaName=...*
2019.01.02 22:34:48 1: PERL WARNING: Possible unintended interpolation of @appstore in string at (eval 312694) line 1.
2019.01.02 22:34:48 3: eval: {system ("/volume1/@appstore/fhem/fhem-5.6/alexa-fhem/bin/alexa > /tmp/alexa.stdout.log 2>&1 &")}
2019.01.02 22:34:48 1: ERROR evaluating {system ("/volume1/@appstore/fhem/fhem-5.6/alexa-fhem/bin/alexa > /tmp/alexa.stdout.log 2>&1 &")}: Global symbol "@appstore" requires explicit package name (did you forget to declare "my @appstore"?) at (eval 312694) line 1.
2019.01.02 22:34:48 2: FHEM.Alexa.DOIF: {system ("/volume1/@appstore/fhem/fhem-5.6/alexa-fhem/bin/alexa > /tmp/alexa.stdout.log 2>&1 &")}: Global symbol "@appstore" requires explicit package name (did you forget to declare "my @appstore"?) at (eval 312694) line 1.
Zitat von: gvzdus am 02 Januar 2019, 22:42:15
Perl und das @-Zeichen werden wohl nie Freunde. Könntest Du mal gucken, ob, wenn Du per Hand das FHEM.Alexa.DOIF "patcht", und das "@" durch ein "\@" ersetzt, die Welt besser wird? Dann würde ich das unsägliche Zeichen im Installer escapen...
2019.01.02 22:44:39 2: FHEM.Alexa.DOIF: {system ("/volume1/\@appstore/fhem/fhem-5.6/alexa-fhem/bin/alexa > /tmp/alexa.stdout.log 2>&1 &")}: -1
Zitat von: gvzdus am 02 Januar 2019, 22:14:08
Hört sich nicht schlecht an!
Sicherlich stand auf der "check"-Seite beim Skill-Verknüpfen auch "0 Geräte"?
Zur Zeit ist das Logging unterirdisch. Einerseits über "winston" - aber hier wird z.B. nichts geschrieben, wenn der Prozess hart abstürzt. Andererseits immer noch eben für diesen Fall nach /tmp/alexa.stdout.log.
Hier wird u.a. jeder Request geloggt. Wenn Du nach "cmd=" suchst, findest Du die Kommunikation mit FHEM. Der eigentliche Befehl, um die Devices zu listen, sieht z.B. so aus:Code Auswählen2019-01-02T16:08:20.576Z info server.js: fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=...*&fwcsrf=csrf_394589785944464&XHR=1
2019-01-02T16:08:20.828Z info server.js: got: 23 results
Variante 1: Dein Alexa-Prozess (eigentlich sollte da nur einer laufen) hat ebenfalls kein Homedir. Unter ~/.alexa/config.json liegt die Konfigurationsdatei, die die Filteranweisung beinhaltet. Wenn hier zwar "alexaName=...*" steht, aber im cmd etwas anderes, könnte es ein weiteres HomeDir-Problem sein.
Variante 2: Irgendwelche Typos. Sofern cmd und config.json sich auf alexaName beziehen, sollte im FHEM-Webfrontend einCode Auswählenlist alexaName=...*
eine Liste der Geräte ausspucken, oder da ist doch was falsch mit den Namen, die Du vergeben hast.
2019-01-02T21:41:25.687Z info server.js: doif_modus_beleuchtung_keller is light
2019-01-02T21:41:25.688Z info server.js: doif_modus_beleuchtung_keller has
Zitat von: gvzdus am 02 Januar 2019, 22:50:19
-1 ist normal.
Spannender wäre /tmp/alexa.stdout.log - ich vermute, da steht was drin.
Der Pfad zu SSH wird aus der config.json unter "~/.alexa/config.json" ausgelesen, das Fehlerlog vom SSH-Start wandert in die normalen Logdateien von Alexa-FHEM.
2019.01.02 22:52:54 2: FHEM.Alexa.DOIF: {system ("/volume1/\@appstore/fhem/fhem-5.6/alexa-fhem/bin/alexa > /tmp/alexa.stdout.log 2>&1 &")}: -1
admin@DiskStation:/tmp$ ps -ef | egrep '(alexa|ssh)'
admin 1297 21018 0 22:53 pts/24 00:00:00 grep -E (alexa|ssh)
root 20923 1 0 2018 ? 00:00:00 /usr/bin/sshd
root 20990 20923 0 22:06 ? 00:00:00 sshd: admin [priv]
root 21017 20990 0 22:06 ? 00:00:00 sshd: admin@pts/24
admin@DiskStation:/tmp$
/volume1/\@appstore/fhem/fhem-5.6/alexa-fhem/bin/alexa > /tmp/alexa.stdout.log 2>&1 &
bringt mir auf der Konsole die pid 2729 zurück.admin@DiskStation:/tmp$ ps -ef | egrep '(alexa|ssh)' admin 2729 21018 2 22:56 pts/24 00:00:01 alexa
admin 2967 2729 0 22:56 pts/24 00:00:00 /usr/bin/ssh -R 1234:127.0.0.1:3000 -oServerAliveInterval=90 -p 58824 fhem-va.fhem.de
admin 3438 21018 0 22:57 pts/24 00:00:00 grep -E (alexa|ssh)
root 20923 1 0 2018 ? 00:00:00 /usr/bin/sshd
root 20990 20923 0 22:06 ? 00:00:00 sshd: admin [priv]
root 21017 20990 0 22:06 ? 00:00:00 sshd: admin@pts/24
2019.01.02 23:00:02 2: FHEM.Alexa.DOIF: {system ("/volume1/\@appstore/fhem/fhem-5.6/alexa-fhem/bin/alexa -k > /dev/null 2>&1 &")}: -1
admin 2967 2729 0 22:56 pts/24 00:00:00 /usr/bin/ssh -R 1234:127.0.0.1:3000 -oServerAliveInterval=90 -p 58824 fhem-va.fhem.de
admin 6670 21018 0 23:02 pts/24 00:00:00 grep --color=auto fhem
root 15091 1 1 2018 ? 02:21:16 perl /volume1/@appstore/fhem/fhem-5.6/fhem.pl /volume1/@appstore/fhem/fhem-5.6/fhem.cfg
root 15119 15091 0 2018 ? 00:00:07 perl /volume1/@appstore/fhem/fhem-5.6/fhem.pl /volume1/@appstore/fhem/fhem-5.6/fhem.cfg
2019-01-02T22:19:26.343Z error undefined: ENOENT: no such file or directory, open '/root/.alexa/alexa.pid'
Das liegt daran dass dieses doif als setlist "modus:on,auto,off" hat. Gehe ich richtig in der Annahme dass ich das mit dem Attribut homebridgeMapping "übersetzen" muss? Am Ende soll das ein einfacher Switch sein der entweder auf on oder off schaltet, auto spielt in dem Fall keine Rolle.
fhem@fhembanana:~/alexa-fhem$ bin/alexa -A
config.json not existing, creating from the scratch
/opt/fhem/alexa-fhem/lib/user.js:359
Object.keys(response.headers).forEach((key) => {
^
TypeError: Cannot read property 'headers' of undefined
at Request.request [as _callback] (/opt/fhem/alexa-fhem/lib/user.js:359:32)
at self.callback (/opt/fhem/alexa-fhem/node_modules/request/request.js:185:22)
at Request.emit (events.js:188:13)
at Request.onRequestError (/opt/fhem/alexa-fhem/node_modules/request/request.js:881:8)
at ClientRequest.emit (events.js:188:13)
at Socket.socketErrorListener (_http_client.js:399:9)
at Socket.emit (events.js:188:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
{
"alexa": {
"port": 3000,
"name": "Alexa",
"bind-ip": "127.0.0.1",
"ssl": false,
"publicSkill": true,
"ssh": "/usr/bin/ssh"
},
{
"alexa": {
"port": 3000,
"name": "Alexa",
"bind-ip": "127.0.0.1",
"ssl": false,
"publicSkill": true,
"ssh": "/usr/bin/ssh"
},
"connections": [
{
"server": "127.0.0.1",
"port": 8083,
"name": "FHEM",
"filter": "alexaName=...*",
"ssl": false,
"base_url": "http://127.0.0.1:8083/fhem",
"auth": {"user": "FIXME", "password": "FIXME"}
}
]
}
{
"alexa": {
"port": 3000,
"name": "Alexa",
"bind-ip": "192.168.2.22",
"ssl": false,
"publicSkill": true,
"ssh": "/usr/bin/ssh"
},
"connections": [
{
"server": "192.168.2.22",
"port": 8083,
"name": "FHEM",
"filter": "alexaName=...*",
"ssl": false,
"base_url": "http://192.168.2.22:8083/fhem",
"auth": {"user": "xxxxxx", "password": "xxxxxxxx"};
}
]
}
fhem@homeserver:~/alexa-fhem$ cat ../.alexa/config.json
{
"alexa": {
"port": 3000,
"name": "Alexa",
"bind-ip": "127.0.0.1",
"ssl": false,
"publicSkill": true,
"ssh": "/usr/bin/ssh"
},
"connections": [
{
"server": "127.0.0.1",
"port": 8083,
"name": "FHEM",
"filter": "alexaName=...*",
"ssl": false,
"base_url": "http://127.0.0.1:8083/fhem",
"auth": {
"user": "xxxx",
"password": "xxxx"
}
}
]
}
fhem@homeserver:~/alexa-fhem$ bin/alexa -A
FHEM-Connectivity fine, CSRF-Token: undefined
Random hash: xxxx
Your SSH key needs to get registered. Please read the privacy instructions here:
https://va.fhem.de/privacy/
... and the press Enter to register your key.
Okay to register your public SSH-Key at fhem-va.fhem.de? [Hit Enter for okay, 'n' else]
2019-01-03T13:23:40.922Z info undefined: executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
/opt/fhem/alexa-fhem/lib/user.js:386
log('There was a problem connecting to FHEM (' + url + ').');
^
TypeError: log is not a function
at Request._callback (/opt/fhem/alexa-fhem/lib/user.js:386:13)
at Request.self.callback (/opt/fhem/alexa-fhem/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/opt/fhem/alexa-fhem/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> (/opt/fhem/alexa-fhem/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
git pull
2019-01-02T22:51:37.509Z info undefined: Got %s, shutting down alexa-fhem...
genericDeviceType HumiditySensor
homebridgeMapping clear CurrentRelativeHumidity=BME280_Humidity CurrentTemperature=BME280_Temperature
Zitat von: gvzdus am 03 Januar 2019, 21:46:39
> Kann man sich alexaRoom für diesen Skill allgemein sparen?
Ja.
Schlicht und einfach, weil die SmartHome-API keine Möglichkeit bietet, den Raum zu übermitteln. Diese Struktur wird rein auf der Amazon-Seite gemanagt.
Ich bin von Tag zu Tag neugieriger, auch mal den CustomSkill (den mit "Frage FHEM / Haus / wieauchimmer ....") zu probieren. Aber erst mal den Smarthome-Skill rund kriegen...
Zitat von: justme1968 am 03 Januar 2019, 22:54:34
- wie oben schon geschrieben: alexaName ist für den smart home skill nicht relevant weil im api nicht unterstütz und auch nicht nötig.
Zitat von: gvzdus am 03 Januar 2019, 22:50:34
Ich habe die nächste Version (meldet sich im MyAlexa-Device mit 0.5.1-fhemlazy an) auf GitHub und den Server gelegt.
Verbessert ist das Pidfile-Handling und der Einwand von "desmoloch":
Man kann jetzt mehrfach auf Reload drücken, denn das DOIF-Device ist jetzt "always". Dafür war aber nötig, dass ich auch souveräner mit dem Mehrfachstart umgehe (der ohnehin ein Problem war).
Wer Reload nicht braucht und ansonsten glücklich ist, braucht nicht upzudaten, ansonsten muss man "bin/alexa -A" wieder laufen lassen (wobei sich der Registrierungscode ändert, allerdings ist das nur relevant, wenn man den Skill trennen und sich neu anmelden will).
Falls mir keine Probleme um die Ohren gehauen werden, die ich noch nicht kenne, gehe ich als Nächstes die Optimierung des Loggings an. (Anständiger Pfad, keine Custom-Skill-Meldungen, u.s.w.). Oder was an Vorschlägen kommt.
Zitat von: gvzdus am 04 Januar 2019, 16:47:44
- alexa-fhem ergibt ohne FHEM keinen Sinn. Läuft FHEM nicht, braucht alexa-fhem auch nicht zu laufen
- Nix garantiert so gut, dass der User, unter dem alexa-fhem läuft, stabil gleich ist
- FHEM ist das gesetzte Frontend, hier kann man den Status am besten einsehen.
Zitat von: gvzdus am 04 Januar 2019, 16:47:44
- Du hast bestimmt auch andere FHEM-Hobbies, als systemd zu erläutern :-)
forever -a -l $LOGFILE -e $LOGFILE --pidFile $PIDFILE start alexa
forever -a -l $LOGFILE -e $LOGFILE --pidFile $PIDFILE restart alexa
forever stop --pidFile $PIDFILE alexa
forever list --pidFile $PIDFILE
Zitat von: gvzdus am 03 Januar 2019, 22:50:34Ich bräuchte noch einmal Hilfe. Ich habe das update heute gezogen, neu konfiguriert und versuche jetzt, den skill neu zu aktivieren.
Ich habe die nächste Version (meldet sich im MyAlexa-Device mit 0.5.1-fhemlazy an) auf GitHub und den Server gelegt.
Verbessert ist das Pidfile-Handling und der Einwand von "desmoloch":
Man kann jetzt mehrfach auf Reload drücken, denn das DOIF-Device ist jetzt "always". Dafür war aber nötig, dass ich auch souveräner mit dem Mehrfachstart umgehe (der ohnehin ein Problem war).
Wer Reload nicht braucht und ansonsten glücklich ist, braucht nicht upzudaten, ansonsten muss man "bin/alexa -A" wieder laufen lassen (wobei sich der Registrierungscode ändert, allerdings ist das nur relevant, wenn man den Skill trennen und sich neu anmelden will).
Falls mir keine Probleme um die Ohren gehauen werden, die ich noch nicht kenne, gehe ich als Nächstes die Optimierung des Loggings an. (Anständiger Pfad, keine Custom-Skill-Meldungen, u.s.w.). Oder was an Vorschlägen kommt.
Zu den technischen Hintergründen:
Dass der laufende Prozess durch einen Aufruf mit "alexa -k" beendet wird, haben vielleicht schon manche erkannt. Das Problem: Startet man 2 Server, überschrieb der neu gestartete Prozess das PID-File, beendete sich dann aber, weil der Listener auf Port 3000 nicht andocken konnte (da war schon jemand). Danach war dann das PID-File kaputt, also zeigte auf einen Prozess, der sich beendet hatte.
Ist jetzt gelöst, indem das PID-File ein Array ist.
Man sollte trotzdem nicht wie blöd auf "Start" klicken, denn ggf. kommt sonst das Backend durcheinander, weil schon ein neuer SSH-Prozess sich angemeldet hatte, dann aber mit der zugehörigen Alexa-Instanz wieder verschied.
"Stop" killt alle eventuell laufenden Alexa-Prozess-Instanzen.
Und noch was: Von ca. 22:00 - 22:10 Uhr gab es technische Probleme. Die schreibe ich eher Amazon zu - ich erhielt auch in der Entwickler-Konsole Netzwerkfehlermeldungen.
{
"alexa": {
"port": 3000,
"name": "Alexa",
"bind-ip": "127.0.0.1",
"ssl": false,
"publicSkill": true,
"ssh": "/usr/bin/ssh"
},
"connections": [
{
"server": "127.0.0.1",
"port": 8083,
"name": "FHEM",
"filter": "alexaName=...*",
"ssl": false,
"base_url": "http://127.0.0.1:8083/fhem",
...
fhem@raspberrypi:~/alexa-fhem$ sudo /usr/sbin/tcpdump -X -s 0 -i lo port 3000
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 262144 bytes
21:09:21.251590 IP localhost.51204 > localhost.3000: Flags [S], seq 3048306337, win 43690, options [mss 65495,sackOK,T S val 220426 ecr 0,nop,wscale 7], length 0
0x0000: 4500 003c 2bab 4000 4006 110f 7f00 0001 E..<+.@.@.......
0x0010: 7f00 0001 c804 0bb8 b5b1 76a1 0000 0000 ..........v.....
0x0020: a002 aaaa fe30 0000 0204 ffd7 0402 080a .....0..........
0x0030: 0003 5d0a 0000 0000 0103 0307 ..].........
21:09:21.251860 IP localhost.3000 > localhost.51204: Flags [S.], seq 669056302, ack 3048306338, win 43690, options [ms s 65495,sackOK,TS val 220426 ecr 220426,nop,wscale 7], length 0
0x0000: 4500 003c 0000 4000 4006 3cba 7f00 0001 E..<..@.@.<.....
0x0010: 7f00 0001 0bb8 c804 27e0 fd2e b5b1 76a2 ........'.....v.
0x0020: a012 aaaa fe30 0000 0204 ffd7 0402 080a .....0..........
0x0030: 0003 5d0a 0003 5d0a 0103 0307 ..]...].....
21:09:21.252121 IP localhost.51204 > localhost.3000: Flags [.], ack 1, win 342, options [nop,nop,TS val 220426 ecr 220 426], length 0
0x0000: 4500 0034 2bac 4000 4006 1116 7f00 0001 E..4+.@.@.......
0x0010: 7f00 0001 c804 0bb8 b5b1 76a2 27e0 fd2f ..........v.'../
0x0020: 8010 0156 fe28 0000 0101 080a 0003 5d0a ...V.(........].
0x0030: 0003 5d0a ..].
21:09:21.290564 IP localhost.51204 > localhost.3000: Flags [P.], seq 1:309, ack 1, win 342, options [nop,nop,TS val 22 0430 ecr 220426], length 308
0x0000: 4500 0168 2bad 4000 4006 0fe1 7f00 0001 E..h+.@.@.......
0x0010: 7f00 0001 c804 0bb8 b5b1 76a2 27e0 fd2f ..........v.'../
0x0020: 8018 0156 ff5c 0000 0101 080a 0003 5d0e ...V.\........].
0x0030: 0003 5d0a 504f 5354 202f 7374 6174 7573 ..].POST./status
0x0040: 2048 5454 502f 312e 310d 0a48 6f73 743a .HTTP/1.1..Host:
0x0050: 206c 6f63 616c 686f 7374 0d0a 436f 6e6e .localhost..Conn
0x0060: 6563 7469 6f6e 3a20 636c 6f73 650d 0a43 ection:.close..C
0x0070: 6f6e 7465 6e74 2d54 7970 653a 2061 7070 ontent-Type:.app
0x0080: 6c69 6361 7469 6f6e 2f6a 736f 6e0d 0a43 lication/json..C
0x0090: 6f6e 7465 6e74 2d4c 656e 6774 683a 2031 ontent-Length:.1
0x00a0: 3934 0d0a 0d0a 7b22 6469 7265 6374 6976 94....{"directiv
0x00b0: 6522 3a7b 2268 6561 6465 7222 3a7b 226e e":{"header":{"n
0x00c0: 616d 6573 7061 6365 223a 2241 6c65 7861 amespace":"Alexa
0x00d0: 2e44 6973 636f 7665 7279 222c 226e 616d .Discovery","nam
0x00e0: 6522 3a22 4469 7363 6f76 6572 222c 2270 e":"Discover","p
0x00f0: 6179 6c6f 6164 5665 7273 696f 6e22 3a22 ayloadVersion":"
0x0100: 3322 2c22 6d65 7373 6167 6549 6422 3a22 3","messageId":"
0x0110: 3038 3135 227d 2c22 7061 796c 6f61 6422 0815"},"payload"
0x0120: 3a7b 2273 636f 7065 223a 0909 097b 2274 :{"scope":...{"t
0x0130: 7970 6522 3a22 4265 6172 6572 546f 6b65 ype":"BearerToke
0x0140: 6e22 2c22 746f 6b65 6e22 3a22 n","token":"XYZ"}}}}
21:09:21.290823 IP localhost.3000 > localhost.51204: Flags [.], ack 309, win 350, options [nop,nop,TS val 220430 ecr 2 20430], length 0
0x0000: 4500 0034 a025 4000 4006 9c9c 7f00 0001 E..4.%@.@.......
0x0010: 7f00 0001 0bb8 c804 27e0 fd2f b5b1 77d6 ........'../..w.
0x0020: 8010 015e fe28 0000 0101 080a 0003 5d0e ...^.(........].
0x0030: 0003 5d0e ..].
dann lange Pause .............
21:11:21.352973 IP localhost.3000 > localhost.51204: Flags [F.], seq 1, ack 309, win 350, options [nop,nop,TS val 232436 ecr 220430], length 0
0x0000: 4500 0034 a026 4000 4006 9c9b 7f00 0001 E..4.&@.@.......
0x0010: 7f00 0001 0bb8 c804 27e0 fd2f b5b1 77d6 ........'../..w.
0x0020: 8011 015e fe28 0000 0101 080a 0003 8bf4 ...^.(..........
0x0030: 0003 5d0e ..].
21:11:21.358126 IP localhost.51204 > localhost.3000: Flags [.], ack 2, win 342, options [nop,nop,TS val 232437 ecr 232436], length 0
0x0000: 4500 0034 2bae 4000 4006 1114 7f00 0001 E..4+.@.@.......
0x0010: 7f00 0001 c804 0bb8 b5b1 77d6 27e0 fd30 ..........w.'..0
0x0020: 8010 0156 fe28 0000 0101 080a 0003 8bf5 ...V.(..........
0x0030: 0003 8bf4 ....
21:11:21.390985 IP localhost.51204 > localhost.3000: Flags [F.], seq 309, ack 2, win 342, options [nop,nop,TS val 232440 ecr 232436], length 0
0x0000: 4500 0034 2baf 4000 4006 1113 7f00 0001 E..4+.@.@.......
0x0010: 7f00 0001 c804 0bb8 b5b1 77d6 27e0 fd30 ..........w.'..0
0x0020: 8011 0156 fe28 0000 0101 080a 0003 8bf8 ...V.(..........
0x0030: 0003 8bf4 ....
21:11:21.391243 IP localhost.3000 > localhost.51204: Flags [.], ack 310, win 350, options [nop,nop,TS val 232440 ecr 232440], length 0
0x0000: 4500 0034 0369 4000 4006 3959 7f00 0001 E..4.i@.@.9Y....
0x0010: 7f00 0001 0bb8 c804 27e0 fd30 b5b1 77d7 ........'..0..w.
0x0020: 8010 015e 390f 0000 0101 080a 0003 8bf8 ...^9...........
0x0030: 0003 8bf8 ....
2019-01-04T20:04:03.945Z info server.js: <<<< {"directive":{"header":{"namespace":"Alexa.Discovery","name":"Discover","payloadVersion":"3","messageId":"0815"},"payload":{"scope":{"type":"BearerToken","token":"1XXXXXXXXXXXXXX"}}}}
2019-01-04T20:04:03.947Z error server.js: Exception in handling request:
2019-01-04T20:04:03.948Z info server.js: >>>> null
fhem@raspberrypi:~/alexa-fhem$ ps -ef | egrep '(alexa|ssh)'
root 682 1 0 20:27 ? 00:00:00 /usr/sbin/sshd -D
root 1540 682 0 20:28 ? 00:00:00 sshd: pi [priv]
pi 1561 1540 0 20:28 ? 00:00:00 sshd: pi@pts/0
fhem 4034 1 0 20:58 ? 00:00:01 alexa
fhem 4125 4034 0 20:59 ? 00:00:00 /usr/bin/ssh -R 1234:127.0.0.1:3000 -oServerAliveInterval=90 -p 58824 fhem-va.fhem.de
fhem 5948 1781 0 21:28 pts/0 00:00:00 grep -E (alexa|ssh)
fhem@raspberrypi:~/alexa-fhem$ kill -9 4034
fhem@raspberrypi:~/alexa-fhem$ bin/alexa
2019-01-04T20:28:36.770Z info server.js: this is alexa-fhem 0.5.1-FHEMlazy
2019-01-04T20:28:36.830Z info server.js: Fetching FHEM devices...
2019-01-04T20:28:37.446Z info server.js: starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1546633717446
2019-01-04T20:28:37.469Z error undefined: Server failed with TypeError: pids.push is not a function
2019-01-04T20:28:37.470Z info server.js: Killing SSH on event process.exit
2019-01-04T20:28:37.498Z info server.js: SSH: Welcome at the reverse proxy!
This pseudoshell does not react to any input - do not get irritated.
2019-01-04T20:28:37.503Z warn server.js: SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
2019-01-04T20:28:37.525Z error server.js: SSH: exited with 143 - will restart in 82.67019710306744 seconds
cat /opt/fhem/log/alexa-2019-01.log
2019-01-04T19:27:39.926Z info server.js: this is alexa-fhem 0.5.1-FHEMlazy
2019-01-04T19:27:39.936Z error undefined: Server failed with Error: ENOENT: no such file or directory, open './key.pem'
try {
const oldpids = fs.readFileSync(pidPath);
if (oldpids) {
pids = [].concat(JSON.parse(oldpids.toString()));
}
} catch (e) {
fhem@raspberrypi:~/alexa-fhem$ ps -ef | egrep '(alexa|ssh)'
root 682 1 0 20:27 ? 00:00:00 /usr/sbin/sshd -D
root 1540 682 0 20:28 ? 00:00:00 sshd: pi [priv]
pi 1561 1540 0 20:28 ? 00:00:00 sshd: pi@pts/0
fhem 6420 1 0 21:35 ? 00:00:01 alexa
fhem 6584 6420 0 21:37 ? 00:00:00 /usr/bin/ssh -R 1234:127.0.0.1:3000 -oServerAliveInterval=90 -p 58824 fhem-va.fhem.de
fhem 9934 1781 0 22:30 pts/0 00:00:00 grep -E (alexa|ssh)
fhem@raspberrypi:~/alexa-fhem$ kill -9 6420 6584
fhem@raspberrypi:~/alexa-fhem$ bin/alexa
2019-01-04T21:30:31.392Z info server.js: this is alexa-fhem 0.5.1-FHEMlazy
2019-01-04T21:30:31.452Z info server.js: Fetching FHEM devices...
2019-01-04T21:30:32.048Z info server.js: starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1546637432048
2019-01-04T21:30:32.087Z info server.js: Server listening on: http%s://%s:%s
2019-01-04T21:30:32.094Z info server.js: SSH: Welcome at the reverse proxy!
This pseudoshell does not react to any input - do not get irritated.
2019-01-04T21:30:32.096Z warn server.js: SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
2019-01-04T21:30:32.243Z info server.js: executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
2019-01-04T21:30:32.248Z info server.js: executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1
2019-01-04T21:30:32.251Z info server.js: Executing cmd 'jsonlist2 FHEM.Alexa from startup command list
2019-01-04T21:30:32.252Z info server.js: executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20FHEM.Alexa&XHR=1
2019-01-04T21:30:32.256Z info server.js: Fetching FHEM devices...
2019-01-04T21:30:32.256Z info server.js: fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=...*&XHR=1
2019-01-04T21:30:32.431Z info server.js: alexa device is MyAlexa
2019-01-04T21:30:32.453Z info server.js: MyAlexa is switch
2019-01-04T21:30:32.454Z info server.js: MyAlexa has
2019-01-04T21:30:32.455Z info server.js: 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=für;auf,values=AMAZON.TIME,valueSuffix=uhr
2019-01-04T21:30:32.470Z info server.js: executing: http://127.0.0.1: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.5.1-FHEMlazy%22%7D;%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
2019-01-04T21:30:32.478Z error server.js: perfectOfVerb:
2019-01-04T21:30:32.478Z error server.js: [object Object]
2019-01-04T21:30:32.479Z error server.js: verbsOfIntent:
2019-01-04T21:30:32.480Z error server.js:
2019-01-04T21:30:32.480Z error server.js: characteristicsOfIntent:
2019-01-04T21:30:32.481Z error server.js: [object Object]
2019-01-04T21:30:32.481Z error server.js: prefixOfIntent:
2019-01-04T21:30:32.482Z error server.js: [object Object]
2019-01-04T21:30:32.482Z error server.js: suffixOfIntent:
2019-01-04T21:30:32.482Z error server.js: [object Object]
2019-01-04T21:30:32.483Z error server.js: alexaTypes:
2019-01-04T21:30:32.484Z error server.js: [object Object]
2019-01-04T21:30:32.484Z error server.js: roomOfEcho:
2019-01-04T21:30:32.485Z error server.js: [object Object]
2019-01-04T21:30:32.486Z error server.js: fhemIntents:
2019-01-04T21:30:32.486Z error server.js: [object Object]
2019-01-04T21:30:32.487Z info server.js: executing: http://127.0.0.1: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&XHR=1
2019-01-04T21:30:32.504Z info server.js: BearerToken '------------' read from FHEM.
2019-01-04T21:30:32.524Z info server.js: got: 10 results
2019-01-04T21:30:32.526Z error server.js: Alexa.Weckzeit: no service type detected
2019-01-04T21:30:32.527Z info server.js: no device created for Alexa.Weckzeit (dummy)
2019-01-04T21:30:32.530Z info server.js: Kuehlschrank.Temp is thermometer
2019-01-04T21:30:32.530Z info server.js: Kuehlschrank.Temp has
2019-01-04T21:30:32.531Z info server.js: StatusLowBattery [battery]
2019-01-04T21:30:32.531Z info server.js: CurrentTemperature [temperature]
2019-01-04T21:30:32.536Z info server.js: Level_Oil is thermometer
2019-01-04T21:30:32.536Z info server.js: Level_Oil has
2019-01-04T21:30:32.537Z info server.js: Custom Volume [Volume;not cached]
2019-01-04T21:30:32.537Z info server.js: Custom Voltage [voltage]
2019-01-04T21:30:32.538Z info server.js: CurrentTemperature [temperature]
2019-01-04T21:30:32.545Z info server.js: Level_Water is thermometer
2019-01-04T21:30:32.546Z info server.js: Level_Water has
2019-01-04T21:30:32.546Z info server.js: Custom Voltage [voltage]
2019-01-04T21:30:32.547Z info server.js: CurrentTemperature [temperature]
2019-01-04T21:30:32.550Z info server.js: RGBWW is light
2019-01-04T21:30:32.551Z info server.js: RGBWW has
2019-01-04T21:30:32.551Z info server.js: Hue [hue;hue;0-359]
2019-01-04T21:30:32.552Z info server.js: Saturation [sat;sat;0-100]
2019-01-04T21:30:32.552Z info server.js: Custom Color Temperature [ct]
2019-01-04T21:30:32.552Z info server.js: On [state;on,off]
2019-01-04T21:30:32.554Z error server.js: RGBWW-ct not a number: 0
2019-01-04T21:30:32.555Z info server.js: homebridgeMapping: clear CurrentRelativeHumidity=humidity CurrentTemperature=temperature
2019-01-04T21:30:32.556Z info server.js: WS1600 is thermometer
2019-01-04T21:30:32.557Z info server.js: WS1600 has
2019-01-04T21:30:32.557Z info server.js: CurrentRelativeHumidity [humidity]
2019-01-04T21:30:32.558Z info server.js: CurrentTemperature [temperature]
2019-01-04T21:30:32.559Z info server.js: homebridgeMapping: clear CurrentRelativeHumidity=humidity CurrentTemperature=temperature
2019-01-04T21:30:32.560Z info server.js: Wintergarten.Temp is thermometer
2019-01-04T21:30:32.561Z info server.js: Wintergarten.Temp has
2019-01-04T21:30:32.561Z info server.js: CurrentRelativeHumidity [humidity]
2019-01-04T21:30:32.561Z info server.js: CurrentTemperature [temperature]
2019-01-04T21:30:32.562Z info server.js: homebridgeMapping: On=state,cmdOn=ON,cmdOff=OFF
2019-01-04T21:30:32.563Z info server.js: sonoff_garage_links is switch
2019-01-04T21:30:32.564Z info server.js: sonoff_garage_links has
2019-01-04T21:30:32.564Z info server.js: On [state;ON,OFF]
2019-01-04T21:30:32.565Z info server.js: homebridgeMapping: On=state,cmdOn=ON,cmdOff=OFF
2019-01-04T21:30:32.566Z info server.js: sonoff_garage_rechts is switch
2019-01-04T21:30:32.567Z info server.js: sonoff_garage_rechts has
2019-01-04T21:30:32.567Z info server.js: On [state;ON,OFF]
2019-01-04T21:30:32.568Z error server.js: vacuum: no service type detected
2019-01-04T21:30:32.569Z info server.js: no device created for vacuum (XiaomiDevice)
.... Registrierung ...
2019-01-04T21:33:59.497Z info server.js: <<<< {"directive":{"header":{"namespace":"Alexa.Discovery","name":"Discover","payloadVersion":"3","messageId":"0815"},"payload":{"scope":{"type":"BearerToken","token":"xxxxxxxx"}}}}
2019-01-04T21:33:59.503Z info server.js: >>>> {"event":{"header":{"namespace":"Alexa.Discovery","name":"Discover.Response","payloadVersion":"3","messageId":"xxxx"},"payload":{"endpoints":[{"endpointId":"Kuehlschrank_Temp","manufacturerName":"FHEMLaCrosse","friendlyName":"Kühlschrank","description":"n: Kuehlschrank.Temp, r: alexaroom,lacrosse,mqttroom","displayCategories":["TEMPERATURE_SENSOR"],"cookie":{"device":"Kuehlschrank.Temp"},"capabilities":[{"type":"AlexaInterface","interface":"Alexa.TemperatureSensor","version":"3","properties":{"supported":[{"name":"temperature"}],"proactivelyReported":false,"retrievable":true}}]},{"endpointId":"Level_Oil","manufacturerName":"FHEMLevel","friendlyName":"Öltank","description":"n: Level_Oil, r: alexaroom,energy,heizung,lacrosse","displayCategories":["OTHER"],"cookie":{"device":"Level_Oil"},"capabilities":[{"type":"AlexaInterface","interface":"Alexa.Speaker","version":"3","properties":{"supported":[{"name":"volume"}],"proactivelyReported":false,"retrievable":true}},{"type":"AlexaInterface","interface":"Alexa.TemperatureSensor","version":"3","properties":{"supported":[{"name":"temperature"}],"proactivelyReported":false,"retrievable":true}}]},{"endpointId":"Level_Water","manufacturerName":"FHEMLevel","friendlyName":"Regenwasser","description":"n: Level_Water, r: alexaroom,energy,lacrosse,mqttroom","displayCategories":["TEMPERATURE_SENSOR"],"cookie":{"device":"Level_Water"},"capabilities":[{"type":"AlexaInterface","interface":"Alexa.TemperatureSensor","version":"3","properties":{"supported":[{"name":"temperature"}],"proactivelyReported":false,"retrievable":true}}]},{"endpointId":"RGBWW","manufacturerName":"FHEMLedController","friendlyName":"Büro","description":"n: RGBWW, r: alexaroom,buero,qfhem","displayCategories":["LIGHT"],"cookie":{"device":"RGBWW"},"capabilities":[{"type":"AlexaInterface","interface":"Alexa.ColorController","version":"3","properties":{"supported":[{"name":"color"}],"proactivelyReported":false,"retrievable":false}},{"type":"AlexaInterface","interface":"Alexa.ColorTemperatureController","version":"3","properties":{"supported":[{"name":"colorTemperatureInKelvin"}],"proactivelyReported":false,"retrievable":true}},{"type":"AlexaInterface","interface":"Alexa.PowerController","version":"3","properties":{"supported":[{"name":"powerState"}],"proactivelyReported":false,"retrievable":true}}]},{"endpointId":"WS1600","manufacturerName":"FHEMLaCrosse","friendlyName":"Wetterstation","description":"n: WS1600, r: alexaroom,aussen,lacrosse,mqttroom","displayCategories":["TEMPERATURE_SENSOR"],"cookie":{"device":"WS1600"},"capabilities":[{"type":"AlexaInterface","interface":"Alexa.TemperatureSensor","version":"3","properties":{"supported":[{"name":"temperature"}],"proactivelyReported":false,"retrievable":true}}]},{"endpointId":"Wintergarten_Temp","manufacturerName":"FHEMLaCrosse","friendlyName":"Wintergarten","description":"n: Wintergarten.Temp, r: alexaroom,lacrosse,mqttroom","displayCategories":["TEMPERATURE_SENSOR"],"cookie":{"device":"Wintergarten.Temp"},"capabilities":[{"type":"AlexaInterface","interface":"Alexa.TemperatureSensor","version":"3","properties":{"supported":[{"name":"temperature"}],"proactivelyReported":false,"retrievable":true}}]},{"endpointId":"sonoff_garage_links","manufacturerName":"FHEMMQTT_DEVICE","friendlyName":"Ludwigs Garage","description":"n: sonoff_garage_links, r: alexaroom,garage,mqtt,mqttroom","displayCategories":["SWITCH"],"cookie":{"device":"sonoff_garage_links"},"capabilities":[{"type":"AlexaInterface","interface":"Alexa.PowerController","version":"3","properties":{"supported":[{"name":"powerState"}],"proactivelyReported":false,"retrievable":true}}]},{"endpointId":"sonoff_garage_rechts","manufacturerName":"FHEMMQTT_DEVICE","friendlyName":"Karins Garage","description":"n: sonoff_garage_rechts, r: alexaroom,garage,mqtt,mqttroom","displayCategories":["SWITCH"],"cookie":{"device":"sonoff_garage_rechts"},"capabilities":[{"type":"AlexaInterface","interface":"Alexa.PowerController","version":"3","properties":{"supported":[{"name":"powerState"}],"proactivelyReported":false,"retrievable":true}}]}]}}}
Zitat von: gvzdus am 03 Januar 2019, 22:33:08
Smarthome-Skill-API macht bei Amazon der Praktikant, und der hat sich da noch etwas verzettelt. Fragen im Amazon-Developerforum (auch auf Englisch) nach dem Motto
Kostprobe? Siehe hier:
https://forums.developer.amazon.com/questions/186240/rooms-support-with-groups-and-devices-duplicate-na.html
Zitat von: gvzdus am 04 Januar 2019, 23:22:22HM, die config.json hatte ich nicht angefasst, nur ein 'git pull' für das Update.
Nee, die Meldung dürfte dann kommen, wenn unter
{ "alexa": {
entweder "ssl" komplett fehlt, vielleicht aber auch "false" als String geschrieben ist.
Auf jeden Fall versuchte er, SSL hochzuziehen.
Zitat von: gvzdus am 04 Januar 2019, 23:40:03
Dann wird node die Ursache sein ("alexa"), denn ein beendeter SSH-Prozess wird von Alexa nach Zeit X (15-135 Sekunden) neu gestartet.
Variante 1) Aktuell ist noch das Winston-Logging-Framework drin, das schreibt aber nicht die Todesursache weg. Falls unter /tmp kein Logging liegt: Wenn Du es Dir zutraust, so starten, dass stdout weggeschrieben wird.
Variante 2) Die nächste Version stützt sich auf Andres neues 39_alexa.pm, wenn installiert. Das startet ggf. alles automatisch neu.
Zitat von: gvzdus am 04 Januar 2019, 23:40:03
Dann wird node die Ursache sein ("alexa"), denn ein beendeter SSH-Prozess wird von Alexa nach Zeit X (15-135 Sekunden) neu gestartet.
Variante 1) Aktuell ist noch das Winston-Logging-Framework drin, das schreibt aber nicht die Todesursache weg. Falls unter /tmp kein Logging liegt: Wenn Du es Dir zutraust, so starten, dass stdout weggeschrieben wird.
Variante 2) Die nächste Version stützt sich auf Andres neues 39_alexa.pm, wenn installiert. Das startet ggf. alles automatisch neu.
bin/alexa > /tmp/alexa.stdout.log 2>&1 &
? Damit steht leider in der stdout.log nichts drin...
FHEM-Connectivity fine, CSRF-Token: csrf_4227.......199
existing config.json seems fine
SSH key seems to exist
Our SSH key is known at the reverse proxy, good!
[user] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_422787832422199&XHR=1
fhem@fhembanana:~/alexa-fhem$ ps -ef | egrep '(alexa|ssh)'
root 1695 1 0 08:31 ? 00:00:00 /usr/sbin/sshd
root 1713 1695 0 08:31 ? 00:00:00 sshd: root@notty
root 3805 1695 0 09:06 ? 00:00:00 sshd: root@notty
root 5285 1695 0 09:53 ? 00:00:00 sshd: root@pts/1
fhem 10017 1 33 11:12 ? 00:00:04 alexa
fhem 10027 10017 1 11:12 ? 00:00:00 /usr/bin/ssh -R 1234:127.0.0.1:3000 -oServerAliveInterval=90 -p 58824 fhem-va.fhem.de
fhem 10043 5621 0 11:13 pts/1 00:00:00 grep -E (alexa|ssh)
fhem@fhembanana:~/alexa-fhem$ ps -ef | egrep '(alexa|ssh)'
root 1695 1 0 08:31 ? 00:00:00 /usr/sbin/sshd
root 1713 1695 0 08:31 ? 00:00:00 sshd: root@notty
root 3805 1695 0 09:06 ? 00:00:00 sshd: root@notty
root 5285 1695 0 09:53 ? 00:00:00 sshd: root@pts/1
fhem 9965 4418 24 11:11 ? 00:00:02 alexa
fhem 9980 5621 0 11:11 pts/1 00:00:00 grep -E (alexa|ssh)
"publicSkill": true,
"ssh": "/usr/bin/ssh",
bin/alexa -c /opt/fhem/alexa-fhem.cfg -s
aufrufst?fhem@fhembanana:~/alexa-fhem$ bin/alexa -c /opt/fhem/alexa-fhem.cfg -s
[server] this is alexa-fhem 0.5.2p3-FHEMlazy
[server] Fetching FHEM devices...
[FHEM] starting longpoll: https://localhost:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1546773462406
[server] Server listening on: https://:::3000
[server] SSH: Welcome at the reverse proxy!
This pseudoshell does not react to any input - do not get irritated.
[server] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
[FHEM] longpoll error: Error: self signed certificate, retry in: 5000msec
fhem@Fhem:/opt/fhem/alexa-fhem$ ps -ef | egrep '(alexa|ssh)'
root 154 1 0 16:21 ? 00:00:00 /usr/sbin/sshd -D
root 345 154 0 16:21 ? 00:00:00 sshd: root@pts/2
root 3938 154 0 16:28 ? 00:00:00 sshd: fhem [priv]
fhem 3947 3938 0 16:28 ? 00:00:00 sshd: fhem@notty
fhem 3948 3947 0 16:28 ? 00:00:00 /usr/lib/openssh/sftp-server
fhem 6140 3683 0 16:53 pts/2 00:00:00 grep -E (alexa|ssh)
fhem@Fhem:/opt/fhem/alexa-fhem$ cat /tmp/alexa.stdout.log
cat: /tmp/alexa.stdout.log: No such file or directory
2019.01.06 16:54:40 3: MyAlexa: alexaFHEM starting
2019.01.06 16:54:40 3: MyAlexa: using logfile: ./log/alexa-2019-01-06.log
2019.01.06 16:54:40 2: MyAlexa: starting alexa-fhem: /opt/fhem/alexa-fhem/bin/alexa -c ./alexa-fhem.cfg -s
2019.01.06 16:54:40 3: MyAlexa: read: end of file reached while sysread
2019.01.06 16:54:40 3: MyAlexa: alexaFHEM stopped
Error: spawn /usr/bin/ssh
ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:362:16)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
at Function.Module.runMain (module.js:696:11)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3
[server] this is alexa-fhem 0.5.2p4-FHEMlazy
[server] Fetching FHEM devices...
[FHEM] starting longpoll: https://localhost:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1546790141602
[cli] Server failed with Error: ENOENT: no such file or directory, open '/opt/fhem/.alexa/alexa.pid'
[server] Killing SSH on event process.exit
events.js:183
throw er; // Unhandled 'error' event
^
mkdir /opt/fhem/.alexa
Zitat von: gvzdus am 06 Januar 2019, 17:07:54
Auch eine Nebenwirkung der Config-File-Migration: Beim Schreiben des PID-Files ging ich davon aus, dass ~/.alexa existieren muss, weil da ja das Config-File her kommt.
Einfach einmal als FHEM-UserCode Auswählenmkdir /opt/fhem/.alexa
eintippen.
[cli] Server failed with Error: ENOENT: no such file or directory, open '/opt/fhem/.alexa/alexa.pid'
jetzt schon sein, wenn Du das Verzeichnis richtig (= für den FHEM-User beschreibbar) angelegt hast.fhem@Fhem:~$ ls -la /opt/fhem/.alexa
total 12
drwxr-xr-x 2 fhem fhem 4096 Jan 6 17:41 .
drwxr-xr-x 18 fhem dialout 4096 Jan 6 18:00 ..
-rw-r--r-- 1 fhem fhem 2 Jan 6 18:02 alexa.pid
fhem@Fhem:~$ ps -ef | egrep '(alexa|ssh)'
root 154 1 0 17:42 ? 00:00:00 /usr/sbin/sshd -D
root 380 154 0 17:42 ? 00:00:00 sshd: fhem [priv]
fhem 395 380 0 17:42 ? 00:00:00 sshd: fhem@pts/2
root 1122 154 0 17:50 ? 00:00:00 sshd: fhem [priv]
fhem 1128 1122 0 17:50 ? 00:00:00 sshd: fhem@notty
fhem 1129 1128 0 17:50 ? 00:00:00 /usr/lib/openssh/sftp-server
fhem 2525 396 0 18:04 pts/2 00:00:00 grep -E (alexa|ssh)
Error: spawn /usr/bin/ssh
ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:362:16)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
at Function.Module.runMain (module.js:696:11)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3
[server] this is alexa-fhem 0.5.2p4-FHEMlazy
[server] Fetching FHEM devices...
[FHEM] starting longpoll: https://localhost:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1546794468063
[server] Killing SSH on event process.exit
events.js:183
throw er; // Unhandled 'error' event
^
{
"connections" : [
{
"server" : "localhost",
"filter" : "alexaName=..*",
"name" : "FHEM",
"port" : "8083",
// "ssl": true,
// "auth" : { "user": "fhem", "pass": "fhem", "sendImmediately": false }
"webname" : "fhem"
}
],
"alexa" : {
// Pfui:
"ssh" : "/usr/bin/ssh\n",
"ssl" : false,
"bind-ip" : "127.0.0.1",
"name" : "alexa-fhem default",
"publicSkill" : true
},
"description" : "alexa-fhem default config"
}
Internals:
NAME Test
NR 18
STATE ???
TYPE dummy
Attributes:
room alexa
setList on off
pi@raspberrypi:~ $ node --version
v8.11.1
Zitat-> cd ~
jetzt erfolgreich eine solche auf. Wechsele mit "cd" ins Home-Verzeichnis:
cd
Zitat-> fhem Backup? (ist wahrscheinlich übertrieben an der Stelle)
cp fhem.cfg fhem.cfg_vor_fhemlazy
fertigst Du ein letztes Backup Deiner Konfiguration an.
bash npm: command not found
sudo apt-get -f install npm
fhem@raspberrypi:~/alexa-fhem$ npm install
(node:3420) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
readline-sync@1.4.9 node_modules/readline-sync
commander@2.8.1 node_modules/commander
└── graceful-readlink@1.0.1
request@2.88.0 node_modules/request
├── aws-sign2@0.7.0
├── forever-agent@0.6.1
├── oauth-sign@0.9.0
├── tunnel-agent@0.6.0
├── caseless@0.12.0
├── is-typedarray@1.0.0
├── safe-buffer@5.1.2
├── aws4@1.8.0
├── isstream@0.1.2
├── json-stringify-safe@5.0.1
├── extend@3.0.2
├── performance-now@2.1.0
├── qs@6.5.2
├── uuid@3.3.2
├── combined-stream@1.0.7 (delayed-stream@1.0.0)
├── mime-types@2.1.21 (mime-db@1.37.0)
├── form-data@2.3.3 (asynckit@0.4.0)
├── tough-cookie@2.4.3 (punycode@1.4.1, psl@1.1.31)
├── http-signature@1.2.0 (assert-plus@1.0.0, jsprim@1.4.1, sshpk@1.16.0)
└── har-validator@5.1.3 (har-schema@2.0.0, ajv@6.6.2)
winston@3.1.0 node_modules/winston
├── is-stream@1.1.0
├── stack-trace@0.0.10
├── one-time@0.0.4
├── triple-beam@1.3.0
├── winston-transport@4.3.0
├── readable-stream@2.3.6 (process-nextick-args@2.0.0, safe-buffer@5.1.2, inherits@2.0.3, string_decoder@1.1.1, util-deprecate@1.0.2, core-util-is@1.0.2, isarray@1.0.0)
├── logform@1.10.0 (ms@2.1.1, fecha@2.3.3, fast-safe-stringify@2.0.6, colors@1.3.3)
├── diagnostics@1.1.1 (enabled@1.0.2, kuler@1.0.1, colorspace@1.1.1)
└── async@2.6.1 (lodash@4.17.11)
fhem@raspberrypi:~/alexa-fhem$ bin/alexa -A
config.json not existing, creating from the scratch
(node:549) UnhandledPromiseRejectionWarning: TypeError: config.alexa.ssl.trim is not a function
at runAutoconfig (/opt/fhem/alexa-fhem/lib/user.js:154:44)
at /opt/fhem/alexa-fhem/lib/user.js:73:34
at /opt/fhem/alexa-fhem/lib/user.js:77:7
at new Promise (<anonymous>)
at Function.User.autoConfig (/opt/fhem/alexa-fhem/lib/user.js:68:10)
at /opt/fhem/alexa-fhem/lib/cli.js:31:42
at Command.<anonymous> (/opt/fhem/alexa-fhem/node_modules/commander/index.js:395:35)
at emitNone (events.js:106:13)
at Command.emit (events.js:208:7)
at Command.parseOptions (/opt/fhem/alexa-fhem/node_modules/commander/index.js:697:14)
(node:549) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:549) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Zitat
Sofern Du die Forumsversion von 39_alexa.pm benutzt, an der justme1968 gerade entwickelt, findest Du nur das MyAlexa-Device. Bitte suche dann im Folgenden bei MyAlexa statt Alexa.FHEM. Sobald der aktuellste FHEM diese Version verwendet, wird die Anleitung umgestellt.
Zitat von: gvzdus am 07 Januar 2019, 10:01:41
Die von Andre im Thread gepostete Version von 39_alexa.pm unterstützt einen recht schicken Autostart, baut ein Konfigurationsfile vorab zusammen, und loggt sauber mit Rotation und Co. Andre wird sie zu gegebener Zeit halt offiziell machen und man kann sie dann im Rahmen des FHEM-Updates laden.
Das halte ich für den richtigen Zeitpunkt, den Wiki umzustellen.
Zitat von: gvzdus am 07 Januar 2019, 10:01:41
Wenn der Installer ("bin/alexa -A") hingegen die normale 39_alexa.pm-Version vorfindet, wird mit FHEM.Alexa und Co. eine Autostart-"Krücke" gebaut. Heißt, niemand muss jetzt schon Andres 39_alexa.pm verwenden, aber es ist natürlich willkommen, um Test-Feedback zu haben.
if (config.alexa.ssh && config.alexa.ssl.trim()!==config.alexa.ssh) {
config.alexa.ssh = config.alexa.ssh.trim(); dirty=true;
}
Zitat von: gvzdus am 07 Januar 2019, 10:17:55
Ah! Ich hatte nur den jüngeren Beitrag gelesen, nicht den vorherigen mit dem ausführlichen Fehlerreport.
Ich habe da gestern in der Version "p5" beim Versuch, den "ssh\n"-Bug zu workarounden, einen Fehler eingebaut.
Soeben (seit 09:13 Uhr) gefixt.Code Auswählenif (config.alexa.ssh && config.alexa.ssl.trim()!==config.alexa.ssh) {
config.alexa.ssh = config.alexa.ssh.trim(); dirty=true;
}
stand da, richtig wäre durchgängig "ssh" gewesen.
Zitat von: gvzdus am 07 Januar 2019, 10:25:32
Schreib mir doch, dass "git commit" nicht reicht, sondern man auch noch "git push" eingeben muss :-)
Ist jetzt oben
fhem@raspberrypi:~/alexa-fhem$ ps -ef | egrep '(alexa|ssh)'
root 507 1 0 09:03 ? 00:00:00 /usr/sbin/sshd -D
root 512 507 0 09:03 ? 00:00:00 sshd: pi [priv]
pi 528 512 0 09:03 ? 00:00:00 sshd: pi@pts/0
fhem 822 728 0 10:33 ? 00:00:03 alexa
fhem 828 822 0 10:33 ? 00:00:00 /usr/bin/ssh -R 1234:127.0.0.1:3000 -oServerAliveInterval=90 -p 58824 fhem-va.fhem.de
fhem 863 749 0 11:21 pts/0 00:00:00 grep -E (alexa|ssh)
Zitat
Finale: Skill verknüpfen
Zum Zeitpunkt des Beta-Tests muss noch jeder Benutzer einzeln zur Nutzung des Skills eingeladen werden. Schreibe mir - ohne lange Umstände und Huldigungen - eine Email an
gvz-fhembeta@garnix.de
Zitat von: gvzdus am 07 Januar 2019, 13:02:36
Danke!
Was geloggt wird, entscheide im Moment (bei dem Alexa-Fhem aus meinem Github "gvzdus") ich, don't blame Andre :-)
Wenn Du Abweichungen zwischen Original und meiner Version im Verhalten feststellst, wäre das sehr interessant - Du kennst ja beides.
Ein Unterschied z.B.: "Bei mir" kommen die alexaName-Namen mit Groß- / Kleinschreibung nach Alexa.
[FHEM] got: 1 results
[FHEM] Test is switch
Internals:
NAME Test
NR 18
STATE off
TYPE dummy
READINGS:
2019-01-07 12:47:36 state off
Attributes:
alexaName Badlampe
genericDeviceType switch
room alexa
setList on off
[1/6/2019, 10:32:49 PM] [FHEM-Test] dmVentilatorWohnzimmer is switch
[1/6/2019, 10:32:49 PM] [FHEM-Test] dmVentilatorWohnzimmer has
[1/6/2019, 10:32:49 PM] [FHEM-Test] On [state;on,off]
[1/6/2019, 10:32:49 PM] [FHEM-Test] { reading: 'state',
valueOff: '/off|A0|000000/',
cmdOn: 'on',
cmdOff: 'off',
device: 'dmVentilatorWohnzimmer',
informId: 'dmVentilatorWohnzimmer-state',
characteristic_type: 'On',
log:
{ [Function: bound ]
debug: [Function],
info: [Function],
warn: [Function],
error: [Function],
log: [Function],
prefix: 'FHEM-Test' } }
2019-01-06 22:32:49 caching: dmVentilatorWohnzimmer-state: off
Internals:
NAME dmVentilatorWohnzimmer
NR 445
STATE off
TYPE dummy
READINGS:
2018-05-30 22:53:54 state off
Attributes:
alias Ventilator
genericDeviceType switch
room alexa
setList on off
Zitat von: gvzdus am 06 Januar 2019, 22:24:46
...
An dieser Stelle möchte ich fragen, ob jemand etwas mehr HTML-lastig als ich bin.
- Wir bräuchten ein Logo, und zwar in dem Maßen 108x108px und 512x512px. Für Rudi ist die Verwendung des Logos okay, es soll aber einen Schriftzug mit dem Namen des Skills dabei sein. Wäre also "FHEMlazy" bei mir, und "alexa-fhem" bei Andre. Wichtiger ist Andre.
- Mich wurmt auf der Registrierungsseite, dass der Activate-Button ganz rechts ist. Und außerdem immer aktiv ist, auch wenn der Registrierungscode falsch ist.
Wenn jemand eine der beiden Aufgaben angehen könnte, wäre das großartig. Ich habe als Anhang mal das statische HTML angehängt - ich kriege allerdings vom Filesystem aus das Ganze nicht zum Laufen.
Zitat von: MadMax-FHEM am 07 Januar 2019, 12:53:54
2x Custom Skill (mit versch. "Namen")
(eigentlich 3x aber einer ist auch deaktiviert glaub ich ;) )
Zitat von: Amenophis86 am 07 Januar 2019, 15:09:00
Kurze Zwischenfrage? Wieso
Zitat von: Amenophis86 am 07 Januar 2019, 15:09:00
und laufen die alle auf den gleichen Amazon Nutzer? Der bei deiner Freundin auch?
2019.01.07 20:43:30 3: MyAlexa: alexaFHEM starting
2019.01.07 20:43:30 3: MyAlexa: using logfile: ./log/alexa-2019-01-07.log
2019.01.07 20:43:30 2: MyAlexa: starting alexa-fhem: /opt/fhem/alexa-fhem/bin/alexa -c ./alexa-fhem.cfg -s
2019.01.07 20:43:30 3: MyAlexa: read: end of file reached while sysread
2019.01.07 20:43:30 3: MyAlexa: alexaFHEM stopped
[server] Fetching FHEM devices...
[FHEM] starting longpoll: https://localhost:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1546889856837
[server] Server emitted error: {"errno":"EADDRINUSE","code":"EADDRINUSE","syscall":"listen","address":"127.0.0.1","port":3000}
[server] Terminating - starting the listener not possible (another instance running?)
[server] Killing SSH on event process.exit
[server] this is alexa-fhem 0.5.2p6-FHEMlazy
[FHEM] Fetching FHEM devices...
[FHEM] fetching: https://localhost:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[FHEM] longpoll ended, reconnect in: 12200msec
[FHEM] There was a problem connecting to FHEM (https://localhost:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1).
[FHEM] 401: Authorization Required
[FHEM] There was a problem connecting to FHEM (https://localhost:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1).
[FHEM] 401: Authorization Required
[FHEM] There was a problem connecting to FHEM
[FHEM] 401: Authorization Required
Zitat von: gvzdus am 07 Januar 2019, 21:17:35
Wahrscheinlich lief Dein alter alexa-Prozess ewig weiter. Oder standen in der alten .alexa/config.json auch keine Zugangsdaten?
39_alexa liest die Zugangsdaten aus, wenn über Basic-Auth gearbeitet wird - bei SHA-verhashten Passwörtern hat er dazu keine Chance.
Hingegen merkt mein "alexa -A", dass Zugangsdaten nötig sind und fragt sie ab.
Ich stelle jetzt mal meine Version auch auf "~/alexa-fhem.cfg" um, mittelfristig wird ja ohnehin da die Config liegen.
fhem@raspberrypi:~/alexa-fhem$ git pull
remote: Enumerating objects: 18, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 11 (delta 6), reused 11 (delta 6), pack-reused 0
Unpacking objects: 100% (11/11), done.
From https://github.com/gvzdus/alexa-fhem
cb9b67f..8ac6136 master -> origin/master
Updating cb9b67f..8ac6136
Fast-forward
CHANGELOG.md | 15 +++++++++++++++
bin/alexa | 2 +-
lib/server.js | 40 +++++++++++++++++++++++++++++-----------
lib/user.js | 31 +++++++++++++++++++++++--------
package.json | 5 ++---
5 files changed, 70 insertions(+), 23 deletions(-)
create mode 100644 CHANGELOG.md
fhem@raspberrypi:~/alexa-fhem$ npm install
(node:1412) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
fhem@raspberrypi:~/alexa-fhem$ bin/alexa -A
FHEM-Connectivity fine, CSRF-Token: csrf_649834378345030
alexa-fhem.cfg to write:
{
"connections": [
{
"webname": "fhem",
"port": "8083",
"server": "localhost",
"name": "FHEM",
"filter": "alexaName=..*",
"base_url": "http://localhost:8083/fhem"
}
],
"description": "alexa-fhem default config",
"alexa": {
"name": "alexa-fhem default",
"bind-ip": "127.0.0.1",
"publicSkill": true,
"ssl": false,
"ssh": "/usr/bin/ssh",
"port": 3000,
"disableCustomSkill": true
}
}
Okay to write about file to /opt/fhem/alexa-fhem.cfg? [Hit Enter for okay, 'n' else]
SSH key seems to exist
Our SSH key is known at the reverse proxy, good!
[user] executing: http://localhost:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_649834378345030&XHR=1
Zitat von: justme1968 am 08 Januar 2019, 22:31:04
unterm strich: die 'normalen' installationen werden alle auf knopfdruck gehen.
Zitat von: gvzdus am 09 Januar 2019, 07:05:34
Wo ich gerade (heute Abend?) dran bin:
Wer hat (Heiz-)Thermostate in seiner Installation? Bei mir laufen die Mäxchen, aber es wäre schön, auch für andere Modelle Testergebnisse zu haben.
Den Modus finde ich wichtig, damit man von einem aktuellen Sonderwunsch wie "22 Grad" auch wieder auf "automatisch" zurückschalten kann.
Internals:
DEF 62718804
NAME WZ_Heizung_Clima
NOTIFYDEV global
NR 222
NTFY_ORDER 50-WZ_Heizung_Clima
STATE T: 18.1 desired: 18.0 valve: 3
TYPE CUL_HM
chanNo 04
device WZ_Heizung
Helper:
DBLOG:
ValvePosition:
logdb:
TIME 1547025315.87561
VALUE 3
desired-temp:
logdb:
TIME 1547025479.14019
VALUE 18.0
measured-temp:
logdb:
TIME 1547025315.87561
VALUE 18.1
state:
logdb:
TIME 1547025315.87561
VALUE T: 18.1 desired: 18.0 valve: 3
READINGS:
2019-01-05 11:53:39 CommandAccepted yes
2018-12-11 16:37:33 R-boostPos 80 %
2018-12-11 16:37:33 R-btnNoBckLight off
2018-12-11 16:37:33 R-dayTemp 21 C
2018-12-11 16:37:33 R-daylightSaveTime on
2018-12-11 16:37:33 R-modePrioManu all
2018-12-11 16:37:33 R-modePrioParty all
2018-12-11 16:37:33 R-nightTemp 17 C
2018-12-11 16:37:33 R-noMinMax4Manu off
2018-12-11 16:37:33 R-regAdaptive on
2018-12-11 16:37:33 R-showInfo time
2018-11-28 20:44:29 R-sign off
2018-12-11 16:37:33 R-tempOffset 0.0K
2018-12-11 16:37:33 R-valveOffsetRt 0 %
2018-12-11 16:37:33 R-winOpnBoost off
2018-12-18 20:13:56 R_0_tempListSat 05:00 15.0 08:00 19.0 16:00 23.0 23:00 22.5 24:00 22.0
2018-12-18 20:13:56 R_1_tempListSun 05:00 15.0 11:00 20.0 18:00 22.5 23:00 23.0 24:00 22.0
2018-12-18 20:13:56 R_2_tempListMon 05:00 15.0 08:00 15.0 15:00 18.0 22:00 23.0 24:00 15.0
2018-12-18 20:13:56 R_3_tempListTue 05:00 15.0 08:00 15.0 15:00 18.0 22:00 23.0 24:00 15.0
2018-12-18 20:13:56 R_4_tempListWed 05:00 15.0 08:00 15.0 15:00 18.0 23:55 22.0 24:00 22.0
2018-12-18 20:13:56 R_5_tempListThu 05:00 15.0 08:00 15.0 15:00 18.0 22:00 23.0 24:00 15.0
2018-12-18 20:13:56 R_6_tempListFri 05:00 15.0 08:00 15.0 15:00 19.0 23:00 23.0 24:00 22.0
2018-12-18 20:13:56 R_tempList_State verified
2018-12-18 20:13:53 RegL_01. 08:00 00:00
2019-01-09 10:17:59 ValvePosition 3
2019-01-09 10:17:59 boostTime -
2019-01-09 10:17:59 controlMode auto
2019-01-09 10:17:59 desired-temp 18.0
2019-01-09 10:17:59 measured-temp 18.1
2019-01-09 10:17:59 partyEnd -
2019-01-09 10:17:59 partyStart -
2019-01-09 10:17:59 partyTemp -
2019-01-05 11:53:39 recentStateType ack
2019-01-09 10:17:59 state T: 18.1 desired: 18.0 valve: 3
2019-01-05 10:59:34 tempTmplSet WZ_Heizung_Clima
helper:
regLst ,1,7
expert:
def 1
det 0
raw 1
tpl 0
role:
chn 1
shRegR:
07 00
tmpl:
Attributes:
DbLogExclude .*
DbLogInclude ValvePosition,desired-temp,measured-temp,state
alexaName Wohnzimmer Heizung
alexaRoom Wohnzimmer
alias Wohnzimmer Heizung
event-min-interval ValvePosition:300,desired-temp:300,measured-temp:300
event-on-change-reading .*
genericDeviceType thermostat
group Heizung
icon sani_heating_temp
model HM-CC-RT-DN
room 3_Wohnzimmer,alexa
tempListTmpl WZ_Heizung_Clima
userattr Heizungen Heizungen_map KU_Heizung_Clima KU_Heizung_Clima_map structexclude thermostat thermostat_map
verbose 0
+ // HM, settings from "mark79"
+ if( match = s.PossibleSets.match(/(^| )controlMode($| )/) ) {
+ this.mappings.TargetHeatingCoolingState = { reading: 'controlMode',
+ values: ['/^auto/:AUTO', '/^night/:ECO', '/.*/:HEAT'],
+ cmds: ['OFF:controlMode night', 'HEAT:controlMode day', 'COOL:mode manual', 'AUTO:controlMode auto', 'CUSTOM:controlMode boost'] };
+
+ }
Zitat von: gvzdus am 09 Januar 2019, 10:53:28
Im GitHub ist eine Version drin, die es mal versuchsweise supported:
ZitatHabe es eingebunden und der Dienst startet nun auch, nachdem ich die config unbenannt und verschoben habe.
bin/alexa -A
git clone https://github.com/gvzdus/alexa-fhem
runtergeladen.root@fhembanana:~ # ps -ef | egrep '(alexa|ssh)'
root 1654 1 0 13:58 ? 00:00:00 /usr/sbin/sshd
root 1727 1654 0 13:58 ? 00:00:00 sshd: root@notty
root 2413 1654 0 14:06 ? 00:00:00 sshd: root@pts/1
root 3275 1654 0 14:13 ? 00:00:00 sshd: root@notty
fhem 3587 1 0 14:22 ? 00:00:00 SCREEN bin/alexa
fhem 3588 3587 6 14:22 pts/3 00:00:04 node bin/alexa
fhem 3595 3588 0 14:22 pts/3 00:00:00 /usr/bin/ssh -C -R 1234:127.0.0.1:3000 -oServerAliveInterval=90 -p 58824 fhem-va.fhem.de
root 3637 2420 0 14:23 pts/1 00:00:00 grep -E (alexa|ssh)
fhem@fhembanana:~/alexa-fhem$ ps -ef | egrep '(alexa|ssh)'
root 1654 1 0 13:58 ? 00:00:00 /usr/sbin/sshd
root 1727 1654 0 13:58 ? 00:00:00 sshd: root@notty
root 2413 1654 0 14:06 ? 00:00:00 sshd: root@pts/1
root 3275 1654 0 14:13 ? 00:00:00 sshd: root@notty
root 4256 1654 0 14:42 ? 00:00:00 sshd: fhem [priv]
fhem 4262 4256 0 14:42 ? 00:00:00 sshd: fhem@pts/2
fhem 4282 1640 36 14:43 ? 00:00:03 node /opt/fhem/alexa-fhem/bin/alexa -c ./alexa-fhem.cfg -s
fhem 4301 4263 0 14:43 pts/2 00:00:00 grep -E (alexa|ssh)
fhem 3595 3588 0 14:22 pts/3 00:00:00 /usr/bin/ssh -C -R 1234:127.0.0.1:3000 -oServerAliveInterval=90 -p 58824 fhem-va.fhem.de
[server] this is alexa-fhem 0.5.3-FHEMlazy
[server] Fetching FHEM devices...
[FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547043267773
[cli] Server failed with Error: EACCES: permission denied, open '/alexa.pid'
[server] Killing SSH on event process.exit
[server] SSH: Welcome at the reverse proxy!
This pseudoshell does not react to any input - do not get irritated.
[server] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
alexaFHEM-params -U /opt/fhem
Zitat von: gvzdus am 09 Januar 2019, 12:02:14Code Auswählenbin/alexa -A
hätte es automatisch für Dich gemacht :-)
[server] <<<< {"directive":{"header":{"namespace":"Alexa.ThermostatController","name":"SetThermostatMode","payloadVersion":"3","messageId":"c7870b85-697a-4db3-b171-5203bfe8af3a","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"xxx"},"endpointId":"CUL_HM_5ACA0A04","cookie":{"device":"KU_Heizung_Clima"}},"payload":{"thermostatMode":{"value":"CUSTOM","customName":"BOOST"}}}}
[FHEM] KU_Heizung_Clima sending command undefined with value CUSTOM
[server] Exception in handling request: TypeError: Cannot read property 'characteristic_type' of undefined
at FHEMDevice.command (/opt/fhem/alexa-fhem/lib/fhem.js:1512:19)
at Server.handleThermostatController (/opt/fhem/alexa-fhem/lib/server.js:2436:12)
at Server.handler (/opt/fhem/alexa-fhem/lib/server.js:1450:57)
at Server.verifyToken (/opt/fhem/alexa-fhem/lib/server.js:815:23)
at Server.<anonymous> (/opt/fhem/alexa-fhem/lib/server.js:88:31)
at emitNone (events.js:106:13)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
[server] >>>> null
[server] <<<< {"directive":{"header":{"namespace":"Alexa.ThermostatController","name":"SetThermostatMode","payloadVersion":"3","messageId":"38b27621-10be-4368-9f44-68a08d78f118","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":""},"endpointId":"CUL_HM_5ACA0A04","cookie":{"device":"KU_Heizung_Clima"}},"payload":{"thermostatMode":{"value":"AUTO"}}}}
[FHEM] KU_Heizung_Clima sending command undefined with value AUTO
[server] Exception in handling request: TypeError: Cannot read property 'characteristic_type' of undefined
at FHEMDevice.command (/opt/fhem/alexa-fhem/lib/fhem.js:1512:19)
at Server.handleThermostatController (/opt/fhem/alexa-fhem/lib/server.js:2436:12)
at Server.handler (/opt/fhem/alexa-fhem/lib/server.js:1450:57)
at Server.verifyToken (/opt/fhem/alexa-fhem/lib/server.js:815:23)
at Server.<anonymous> (/opt/fhem/alexa-fhem/lib/server.js:88:31)
at emitNone (events.js:106:13)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
[server] >>>> null
[server] <<<< {"directive":{"header":{"namespace":"Alexa.ThermostatController","name":"SetTargetTemperature","payloadVersion":"3","messageId":"","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":""},"endpointId":"CUL_HM_5ACA0A04","cookie":{"device":"KU_Heizung_Clima"}},"payload":{"targetSetpoint":{"value":23,"scale":"CELSIUS"}}}}
[FHEM] KU_Heizung_Clima: executing set cmd for TargetTemperature with value 23
[FHEM] executing: http://127.0.0.1:8083/fhem?cmd=set%20KU_Heizung_Clima%20desired-temp%2023&XHR=1
[server] >>>> {"context":{"properties":[{"namespace":"Alexa.ThermostatController","name":"targetSetpoint","value":{"value":23,"scale":"CELSIUS"},"timeOfSample":"2019-01-09T15:12:47.573Z","uncertaintyInMilliseconds":500}]},"event":{"header":{"namespace":"Alexa","name":"Response","payloadVersion":"3","messageId":"34f76bef-f590-418a-a843-1ed390943d1d","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":""},"endpointId":"CUL_HM_5ACA0A04"},"payload":{}}}
Zitat von: gvzdus am 09 Januar 2019, 17:40:52Kenne ich, vielleicht eine Nacht drüber schlafen ;D
Ich habe jetzt länger auf den Code gestarrt, und bin noch zu keinem Verständnis gekommen :-)
Zitat von: gvzdus am 09 Januar 2019, 16:05:42
Hmm. Ist hässlich. Irgendwie wird Dein homedirectory mit "/" erkannt, und da darf natürlich nicht geschrieben werden.
Am einfachsten erscheint es mir, dem Web-IF ein AttributCode AuswählenalexaFHEM-params -U /opt/fhem
hinzuzufügen, das müsste klappen. Das PID-File-Schreiben fliegt eh' bald wieder raus, wenn 39_alexa.pm offiziell ist.
[2019-1-9 23:09:17] [FHEM] longpoll ended, reconnect in: 200msec
[2019-1-9 23:09:17] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547071757223
[2019-1-9 23:09:17] [FHEM] longpoll error: Error: connect ECONNREFUSED 127.0.0.1:8083, retry in: 10000msec
[2019-1-9 23:09:26] [server] this is alexa-fhem 0.5.3-FHEMlazy
[2019-1-9 23:09:26] [server] Fetching FHEM devices...
[2019-1-9 23:09:27] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547071767239
[2019-1-9 23:09:27] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547071767364
[2019-1-9 23:09:27] [server] Server emitted error: {"errno":"EADDRINUSE","code":"EADDRINUSE","syscall":"listen","address":"127.0.0.1","port":3000}
[2019-1-9 23:09:27] [server] Terminating - starting the listener not possible (another instance running?)
[2019-1-9 23:09:27] [server] Killing SSH on event process.exit
ZitatLade die Geräte neu in die Software, indem Du bei "FHEM.Alexa" auf "Reload" klickst!
[2019-1-10 00:07:48] [server] Killing SSH on event process.exit
[2019-1-10 00:08:09] [server] this is alexa-fhem 0.5.3-FHEMlazy
[2019-1-10 00:08:09] [server] Fetching FHEM devices...
[2019-1-10 00:08:10] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547075290637
[2019-1-10 00:08:10] [server] Server listening on: http://127.0.0.1:3000
[2019-1-10 00:08:10] [server] SSH: Welcome at the reverse proxy!
This pseudoshell does not react to any input - do not get irritated.
[2019-1-10 00:08:10] [server] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
[2019-1-10 00:08:19] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&fwcsrf=csrf_648167355625156&XHR=1
[2019-1-10 00:08:19] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&fwcsrf=csrf_648167355625156&XHR=1
[2019-1-10 00:08:19] [FHEM] Executing cmd 'jsonlist2 TYPE=alexa from startup command list
[2019-1-10 00:08:19] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&fwcsrf=csrf_648167355625156&XHR=1
[2019-1-10 00:08:19] [FHEM] Executing cmd 'jsonlist2 FHEM.Alexa from startup command list
[2019-1-10 00:08:19] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20FHEM.Alexa&fwcsrf=csrf_648167355625156&XHR=1
[2019-1-10 00:08:19] [FHEM] Fetching FHEM devices...
[2019-1-10 00:08:19] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=...*&fwcsrf=csrf_648167355625156&XHR=1
[2019-1-10 00:08:29] [FHEM] alexa device is MyAlexa
[2019-1-10 00:08:29] [FHEM] MyAlexa is switch
ZitatNur reload und skilled
attr alexa stateFormat alexaFHEM
attr alexa devStateIcon stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop
attr MyAlexa stateFormat FHEM.Alexa
attr MyAlexa devStateIcon stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop
fhem@raspberrypi3:~/alexa-fhem$ bin/alexa -A
internal/modules/cjs/loader.js:550
throw err;
^
Error: Cannot find module 'commander'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
at Function.Module._load (internal/modules/cjs/loader.js:475:25)
at Module.require (internal/modules/cjs/loader.js:598:17)
at require (internal/modules/cjs/helpers.js:11:18)
at Object.<anonymous> (/opt/fhem/alexa-fhem/lib/cli.js:1:79)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
Zitat--> Stelle die Heizung im Büro auf Auto! --> Heizung Büro reagiert leider nichtda ist gvzdus noch dran.
Zitat--> Stelle die Heizung im Büro aus! --> Heizung Büro unterstützt das nicht! (hier wäre es schön, wenn automatisch die minimumTemperature gesetzt werden würdedas ist im smart home api nicht vorgesehen. ersteres müsste aber mit einer routine in der alexa app gehen. letzteres auch sobald der mode geht.
--> Stelle die Heizung im Büro ein! --> Heizung Büro unterstützt das nicht! (hier wäre es schön, wenn automatisch die comfortTemperature gesetzt werden würde
Zitat--> Wie ist der Fensterstatus im Büro? --> Das weiß ich leider nicht (hier muss man sicher den Fensterkontakt in Alexa einbinden?!)contact sensoren sind aktuell nur in amerika verfügbar. geht bei uns bis dahin nur über den custom skill.
[1/11/2019, 5:32:23 PM] using ./alexa-fhem.cfg
Startup rejected. Reason: TypeError: Cannot set property 'alexa' of undefined
[1/11/2019, 5:34:49 PM] Server listening on: http://127.0.0.1:3000
(node:1580) UnhandledPromiseRejectionWarning: ReferenceError: reject is not defined
at runAutoconfig (/usr/local/lib/node_modules/alexa-fhem/lib/user.js:295:7)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
(node:1580) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1580) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[1/11/2019, 5:34:49 PM] [FHEM] Checking devices and attributes...
[1/11/2019, 5:34:49 PM] [FHEM] executing: http://localhost:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&fwcsrf=csrf_459711178349116&XHR=1
[1/11/2019, 5:34:49 PM] [FHEM] executing: http://localhost:8083/fhem?cmd=jsonlist2%20TYPE=alexa&fwcsrf=csrf_459711178349116&XHR=1
[1/11/2019, 5:34:49 PM] [FHEM] Executing cmd 'jsonlist2 TYPE=alexa from startup command list
[1/11/2019, 5:34:49 PM] [FHEM] executing: http://localhost:8083/fhem?cmd=jsonlist2%20TYPE=alexa&fwcsrf=csrf_459711178349116&XHR=1
[1/11/2019, 5:34:49 PM] [FHEM] Fetching FHEM devices...
[1/11/2019, 5:34:49 PM] [FHEM] fetching: http://localhost:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=csrf_459711178349116&XHR=1
[1/11/2019, 5:34:49 PM] [FHEM] longpoll ended, reconnect in: 200msec
[1/11/2019, 5:34:49 PM] [FHEM] There was a problem connecting to FHEM (http://localhost:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&fwcsrf=csrf_459711178349116&XHR=1).
[1/11/2019, 5:34:49 PM] [FHEM] 401: Authorization Required
[1/11/2019, 5:59:05 PM] client not authorized: {"error_index":"xxxxxxxxxxxxxxxxxxxGA==","error_description":"The request has an invalid parameter : access_token","error":"invalid_token"}
[1/11/2019, 5:59:05 PM] ERROR: InvalidAccessTokenError from 127.0.0.1
response :{"header":{"namespace":"Alexa.ConnectedHome.Control","name":"InvalidAccessTokenError","payloadVersion":"2","messageId":"c9exxxxxxxxxxxxxxxxxxx9e"},"payload":{}}
[1/11/2019, 5:59:05 PM] client not authorized: {"error_index":"6bJxxxxxxxxxxxxxxxxxxxxxxxxxrUB-A==","error_description":"The request has an invalid parameter : access_token","error":"invalid_token"}
[1/11/2019, 5:59:05 PM] ERROR: InvalidAccessTokenError from 127.0.0.1
401: Authorization Required
[1/11/2019, 7:05:57 PM] [FHEM] There was a problem connecting to FHEM (http://localhost:8083/fhem?cmd=jsonlist2%20TYPE=alexa&fwcsrf=csrf_303676723648976&XHR=1).
[1/11/2019, 7:10:04 PM] [FHEM] starting longpoll: http://localhost:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547230204995
[1/11/2019, 7:10:05 PM] Server emitted error: {"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"127.0.0.1","port":3000}
Zitat von: raimundl am 11 Januar 2019, 19:42:30
Hallo!
Installation lt. Wiki ohne ein Problem durchgelaufen (5 Minuten)!
Skill-Verknüpfung noch offen - nach Erhalt der Einladung werde ich weiter berichten.
Dank an die Entwickler - Ich glaube, dass dieses Modul für die Zukunft von FHEM sehr wichtig war!
LG
/opt/fhem/alexa-fhem/lib/server.js:206
setTimeout(()=>{ open_ssh(alexaConfig) }, delay);
^
ReferenceError: open_ssh is not defined
at Timeout.setTimeout [as _onTimeout] (/opt/fhem/alexa-fhem/lib/server.js:206:24)
at ontimeout (timers.js:482:11)
at tryOnTimeout (timers.js:317:5)
at Timer.listOnTimeout (timers.js:277:5)
[12.1.2019, 03:46:05] [server] SSH: packet_write_wait: Connection to 88.99.31.202 port 58824: Broken pipe
[12.1.2019, 03:46:05] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20MyAlexa%20alexaFHEM.ProxyConnection%20status:running,txt:stderr=packet_write_wait:%20Connection%20to%2088.99.31.202%20port%2058824:%20Broken%20pipe%0D%0A;%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&fwcsrf=csrf_327390085030335&XHR=1
[12.1.2019, 03:46:05] [server] SSH: exited with 255 - will restart in 29.0703417759378 seconds
[12.1.2019, 03:46:05] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20MyAlexa%20alexaFHEM.ProxyConnection%20status:stopped,txt:Terminated%20with%20255,%20ssh%20will%20restart%20at%203:46:34;%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&fwcsrf=csrf_327390085030335&XHR=1
[12.1.2019, 03:46:34] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20MyAlexa%20alexaFHEM.ProxyConnection%20status:stopping,txt:alexa-fhem%20terminating;%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&fwcsrf=csrf_327390085030335&XHR=1
[12.1.2019, 03:46:34] [server] Killing SSH on event process.exit
sudo npm install -g alexa-fhem
sudo -u fhem bash
ssh -p 58824 fhem-va.fhem.de unregister
sudo -u fhem bash
ssh -p 58824 fhem-va.fhem.de unregister
/usr/bin/alexa-fhem -A
mv ~/.alexa/config.json ~/alexa-fhem.cfg
update
shutdown restart
sudo -u fhem bash
ssh -p 58824 fhem-va.fhem.de unregister
Zitat2019.01.13 11:13:25 2: alexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg
2019.01.13 11:13:25 3: alexa: using logfile: ./log/alexa-2019-01-13.log
2019.01.13 11:13:25 1: Including ./log/fhem.save
define alexa alexa
{
"connections" : [
{
"webname" : "fhem",
"uid" : 999,
"server" : "127.0.0.1",
"filter" : "alexaName=..*",
"port" : "8083",
"name" : "FHEM"
}
],
"sshproxy" : {
"description" : "FHEM Connector",
"ssh" : "/usr/bin/ssh"
}
}
alexa: found old config at alexa-fhem.cfg
sudo reboot
ZitatconfigDB
2019.01.13 13:00:23 5: Cmd: >define Test dummy<
2019.01.13 13:00:23 5: Loading ./FHEM/98_dummy.pm
2019.01.13 13:00:23 5: Starting notify loop for global, 1 event(s), first is DEFINED Test
2019.01.13 13:00:23 5: createNotifyHash
2019.01.13 13:00:23 5: End notify loop for global
2019.01.13 13:00:23 4: WEB_10.10.20.33_55892 GET /fhem?detail=Test&fw_id=19; BUFLEN:0
2019.01.13 13:00:23 4: WEB: /fhem?detail=Test&fw_id=19 / RL:2460 / text/html; charset=UTF-8 / Content-Encoding: gzip
/ Cache-Control: no-cache, no-store, must-revalidate
2019.01.13 13:00:23 4: Connection closed for WEB_10.10.20.33_55895: EOF
2019.01.13 13:00:23 4: WEB_10.10.20.33_55892 GET /fhem/pgm2/jquery-ui.min.css; BUFLEN:0
2019.01.13 13:00:23 4: WEB_10.10.20.33_55892 => 304 Not Modified
2019.01.13 13:00:23 4: WEB_10.10.20.33_55887 GET /fhem/pgm2/jquery-ui.min.js; BUFLEN:0
2019.01.13 13:00:23 4: WEB_10.10.20.33_55887 => 304 Not Modified
2019.01.13 13:00:23 4: WEB_10.10.20.33_55891 GET /fhem/pgm2/jquery.min.js; BUFLEN:0
2019.01.13 13:00:23 4: WEB_10.10.20.33_55891 => 304 Not Modified
2019.01.13 13:00:23 4: WEB_10.10.20.33_55890 GET /fhem/pgm2/fhemweb.js; BUFLEN:0
2019.01.13 13:00:23 4: WEB_10.10.20.33_55890 => 304 Not Modified
2019.01.13 13:00:23 4: WEB_10.10.20.33_55889 GET /fhem/images/default/icoEverything.png; BUFLEN:0
2019.01.13 13:00:23 4: WEB_10.10.20.33_55889 => 304 Not Modified
2019.01.13 13:00:23 4: WEB_10.10.20.33_55889 GET /fhem/pgm2/ios7Common.css; BUFLEN:0
2019.01.13 13:00:23 4: WEB_10.10.20.33_55889 => 304 Not Modified
2019.01.13 13:00:23 4: WEB_10.10.20.33_55889 GET /fhem/pgm2/dashboard_ios7.css; BUFLEN:0
2019.01.13 13:00:23 4: WEB_10.10.20.33_55889 => 304 Not Modified
2019.01.13 13:00:23 4: WEB_10.10.20.33_55889 GET /fhem?cmd=%7BAttrVal(%22Test%22%2C%22room%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_175124105642453; BUFLEN:0
2019.01.13 13:00:23 5: Cmd: >{AttrVal("Test","room","")}<
2019.01.13 13:00:23 4: WEB: /fhem?cmd=%7BAttrVal(%22Test%22%2C%22room%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_175124105642453 / RL:21 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/ Cache-Control: no-cache, no-store, must-revalidate
set MAX_04711 desiredTemperature auto 20
Zitat von: rippi46 am 13 Januar 2019, 14:53:21
Das zweite Problem das ich habe, dass ich mir nicht für jede Heizung einen eigenen Namen ausdenken will, und eigentlich jeden Thermostat gerne Heizung nennen würde.
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
error: auth format wrong. must be user:password
[2019-1-13 19:30:01] Reading alexaFHEM.ProxyConnection set to stopping, alexa-fhem terminating
[2019-1-13 19:30:01] Got SIGTERM, shutting down alexa-fhem...
[2019-1-13 19:30:01] [FHEM] 401: Authorization Required
[2019-1-13 19:30:01] [FHEM] There was a problem connecting to FHEM
[2019-1-13 19:30:01] [FHEM] 401: Authorization Required
[2019-1-13 19:30:01] [FHEM] There was a problem connecting to FHEM (http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1).
[2019-1-13 19:30:01] [FHEM] 401: Authorization Required
[2019-1-13 19:30:01] [FHEM] There was a problem connecting to FHEM (http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1).
[2019-1-13 19:30:01] [FHEM] longpoll ended, reconnect in: 4700msec
[2019-1-13 19:30:01] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-1-13 19:30:01] [FHEM] Fetching FHEM devices...
[2019-1-13 19:30:01] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1
[2019-1-13 19:30:01] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[2019-1-13 19:30:01] [FHEM] Checking devices and attributes...
[2019-1-13 19:30:01] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547404201070
[2019-1-13 19:29:56] [FHEM] 401: Authorization Required
[2019-1-13 19:54:33] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20stopped,%20Terminated%20with%20255,%20ssh%20will%20restart%20at%2019:56:02;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-13 19:54:33] Reading alexaFHEM.ProxyConnection set to stopped, Terminated with 255, ssh will restart at 19:56:02
[2019-1-13 19:54:33] SSH: exited with 255 - will restart in 89.01696621713481 seconds
[2019-1-13 19:54:33] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20running,%20stderr=Permission%20denied%20(keyboard-interactive,publickey).%0D%0A;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-13 19:54:33] Reading alexaFHEM.ProxyConnection set to running, stderr=Permission denied (keyboard-interactive,publickey).
[2019-1-13 19:54:33] SSH: Permission denied (keyboard-interactive,publickey).
[2019-1-13 19:54:33] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
[2019-1-13 19:54:33] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20starting,%20starting%20SSH;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-13 19:54:33] Reading alexaFHEM.ProxyConnection set to starting, starting SSH
[2019-1-13 19:54:16] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-1-13 19:54:16] BearerToken '' read from alexa
[2019-1-13 19:54:16] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20stopped,%20Terminated%20with%20255,%20ssh%20will%20restart%20at%2019:54:33;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-13 19:54:16] Reading alexaFHEM.ProxyConnection set to stopped, Terminated with 255, ssh will restart at 19:54:33
[2019-1-13 19:54:16] SSH: exited with 255 - will restart in 16.498258744381793 seconds
[2019-1-13 19:54:16] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20running,%20stderr=Permission%20denied%20(keyboard-interactive,publickey).%0D%0A;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-13 19:54:16] Reading alexaFHEM.ProxyConnection set to running, stderr=Permission denied (keyboard-interactive,publickey).
[2019-1-13 19:54:16] SSH: Permission denied (keyboard-interactive,publickey).
[2019-1-13 19:54:16] [FHEM] got: 0 results
[2019-1-13 19:54:16] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;list%20alexa%20.eventToken;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-13 19:54:16] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;get%20alexa%20proxyToken;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-13 19:54:16] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;%7B$defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20=%20%220.5.6%22%7D;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
#Weckzeit=verb=stelle,valuePrefix=auf;für,values=AMAZON.TIME,valueSuffix=uhr
Volume:verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent
TargetTemperature=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=grad
TargetPosition=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent
TargetPosition=verb=mach,articles=den;die,values=auf:100;zu:0
Saturation=verb=sättige,values=AMAZON.NUMBER
Saturation=verb=stelle,property=sättigung,valuePrefix=auf,values=AMAZON.NUMBER
Hue=verb=färbe,values=rot:0;grün:120;blau:220
Hue=verb=stelle,valuePrefix=auf,values=rot:0;grün:128;blau:200
Brightness=verb=stelle,property=helligkeit,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent
On=verb=schalte,valueOn=an;ein,valueOff=aus,valueToggle=um
[2019-1-13 19:54:16] [FHEM] homebridgeMapping: #Characteristic=<name>=<value>,...
[2019-1-13 19:54:16] [FHEM] alexa device is alexa
[2019-1-13 19:54:16] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-1-13 19:54:16] [FHEM] Fetching FHEM devices...
[2019-1-13 19:54:16] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1
[2019-1-13 19:54:16] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[2019-1-13 19:54:16] [FHEM] Checking devices and attributes...
[2019-1-13 19:54:16] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
[2019-1-13 19:54:16] Reading alexaFHEM.ProxyConnection set to starting, starting SSH
[2019-1-13 19:54:16] SSH proxy configuration set up done
[2019-1-13 19:54:15] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","bind-ip":"127.0.0.1","port":38301},"connections":[{"server":"127.0.0.1","webname":"fhem","uid":999,"port":"8083","filter":"alexaName=..*","name":"FHEM"}]}
[2019-1-13 19:54:15] Server listening on: http://127.0.0.1:38301 for proxy connections
[2019-1-13 19:54:15] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547405655572
[2019-1-13 19:54:13] Fetching FHEM devices...
[2019-1-13 19:54:13] this is alexa-fhem 0.5.6
[2019-1-13 19:54:13] _loadConfig: Config parsed completely.
[2019-1-13 19:54:13] using ./alexa-fhem.cfg
[2019-1-13 19:54:11] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20stopping,%20alexa-fhem%20terminating;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-13 19:54:11] Reading alexaFHEM.ProxyConnection set to stopping, alexa-fhem terminating
[2019-1-13 19:54:11] Got SIGTERM, shutting down alexa-fhem...
Passed config: ..
zuSSH proxy configuration set up done
/usr/bin/alexa-fhem -c ~/alexa-fhem.cfg -A
[2019-1-14 17:13:00] using ./alexa-fhem.cfg
[2019-1-14 17:13:00] _loadConfig: Config parsed completely.
[2019-1-14 17:13:00] this is alexa-fhem 0.5.7
[2019-1-14 17:13:00] Fetching FHEM devices...
[2019-1-14 17:13:01] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547482381404
[2019-1-14 17:13:01] Server listening on: http://127.0.0.1:46817 for proxy connections
Creating directory /root/.alexa
[2019-1-14 17:13:01] SSH proxy configuration set up done
[2019-1-14 17:13:01] Reading alexaFHEM.ProxyConnection set to starting, starting SSH
[2019-1-14 17:13:01] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
[2019-1-14 17:13:01] [FHEM] Checking devices and attributes...
[2019-1-14 17:13:01] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&fwcsrf=csrf_133340614509972&XHR=1
[2019-1-14 17:13:01] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&fwcsrf=csrf_133340614509972&XHR=1
[2019-1-14 17:13:01] [FHEM] Fetching FHEM devices...
[2019-1-14 17:13:01] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=csrf_133340614509972&XHR=1
[2019-1-14 17:13:01] [FHEM] longpoll ended, reconnect in: 200msec
[2019-1-14 17:13:01] [FHEM] There was a problem connecting to FHEM (http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&fwcsrf=csrf_133340614509972&XHR=1).
[2019-1-14 17:13:01] [FHEM] 401: Authorization Required
[2019-1-14 17:13:01] [FHEM] There was a problem connecting to FHEM
[2019-1-14 17:13:01] [FHEM] 401: Authorization Required
[2019-1-14 17:13:01] [FHEM] There was a problem connecting to FHEM (http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&fwcsrf=csrf_133340614509972&XHR=1).
[2019-1-14 17:13:01] [FHEM] 401: Authorization Required
[2019-1-14 17:13:01] SSH: Host key verification failed.
[2019-1-14 18:53:55] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
[2019-1-14 18:53:45] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;%7B$defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20=%20%220.5.7%22%7D;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&fwcsrf=csrf_631420902371221&XHR=1
[2019-1-14 18:53:45] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;get%20alexa%20proxyToken;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&fwcsrf=csrf_631420902371221&XHR=1
[2019-1-14 18:53:45] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;list%20alexa%20.eventToken;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&fwcsrf=csrf_631420902371221&XHR=1
[2019-1-14 18:53:45] [FHEM] got: 0 results
[2019-1-14 18:53:46] BearerToken '' read from alexa
[2019-1-14 18:53:46] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-1-14 18:53:55] Reading alexaFHEM.ProxyConnection set to starting, starting SSH
[2019-1-14 18:53:55] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20starting,%20starting%20SSH;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&fwcsrf=csrf_631420902371221&XHR=1
[2019-1-14 18:53:55] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
[2019-1-14 18:53:55] SSH: Permission denied (keyboard-interactive,publickey).
[2019-1-14 18:53:55] Reading alexaFHEM.ProxyConnection set to running, stderr=Permission denied (keyboard-interactive,publickey).
[2019-1-14 18:53:55] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20running,%20stderr=Permission%20denied%20(keyboard-interactive,publickey).%0D%0A;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&fwcsrf=csrf_631420902371221&XHR=1
[2019-1-14 18:53:55] SSH: exited with 255 - will restart in 58.99866314232725 seconds
[2019-1-14 18:53:55] Reading alexaFHEM.ProxyConnection set to stopped, Terminated with 255, ssh will restart at 18:54:54
[2019-1-14 18:53:55] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20stopped,%20Terminated%20with%20255,%20ssh%20will%20restart%20at%2018:54:54;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&fwcsrf=csrf_631420902371221&XHR=1
Zitat von: justme1968 am 14 Januar 2019, 12:04:40
- du mussst nicht umstellen wenn du nicht willst
Zitat von: justme1968 am 14 Januar 2019, 12:04:40
neue features die mit smart home möglich sind landen nur in der neuen alexa-fhem version
Zitat von: justme1968 am 14 Januar 2019, 12:04:40
- du kannst weiterhin private skills parallel laufen lassen. du musst nur die config von hand anpassen
...
- es sollte nur eine (oder keine) alexa-fhem instanz dür den FHEM Connector skill automatisch gestartet werden. beliebig viele zusätzliche sind für eigene private skills mit port forwarding möglich. aber nicht nötig
Zitat von: gvzdus am 14 Januar 2019, 19:37:31Ok, danke, sowas dachte ich mir schon. Da ich aber zugegebenrmaßen faul bin, würde ich natürlich auch gerne in Zukunft an Erweiterungen des SmartHome-Skills teilhaben. Es soll ja ab und zu vorkommen, dass Amazon da was an den Möglichkeiten bastelt oder irgenwann mal eine API Version V4 oder sowas rausbringt... ;)
@OliWee: Der offizielle Skill verwendet eine nur geringfügig angepasste lambda-Funktion (hauptsächlich, um das Bearer-Token herauszufischen und in einen Header zu schreiben, damit der Vereinsserver nicht erst Json Parsen muss und dumm wie Brot sein kann). Und weniger Logging, wegen Datenschutz. Am Ende, auf alexa-fhem, kommt das Gleiche an.
sudo -u fhem ssh -p 58824 fhem-va.fhem.de unregister
meine Registrierung auf Vereinsseite gelöscht. Jetzt will ich Alexa-FHEM auf dem Test-Rechner wieder loswerden. Ich denke ein "delete alexa" in FHEM, "sudo npm uninstall alexa-fhem" und "sudo apt-get remove nodejs npm" reicht nicht ganz. Gibt es irgendwo ein Hinweis wie ich Alexa-FHEM deinstallieren kann. Hab leider nichts gefunden.
2019-01-15 08:26:04 alexa alexa alexaFHEM.ProxyConnection: starting, starting SSH
2019-01-15 08:26:05 alexa alexa alexaFHEM.ProxyConnection: running, stderr=Host key verification failed.
2019-01-15 08:26:05 alexa alexa alexaFHEM.ProxyConnection: stopped, Terminated with 255, ssh will restart at 08:28:03
Readings
alexaFHEM running /usr/bin/alexa-fhem 2019-01-15 08:34:09
alexaFHEM.ProxyConnection stopped, Terminated with 255, ssh will restart at 08:41:33 2019-01-15 08:39:21
Zitat von: justme1968 am 14 Januar 2019, 19:27:26
du kannst wie bisher auch ohne den eingebauten proxy arbeiten.
musst nur die config entsprechend von hand anpassen
Zitat von: Loredo am 15 Januar 2019, 09:52:02
Das FHEM Docker Image hat alexa-fhem inzwischen im Dev-Image bereits eingebaut.
Zitat von: WumpE am 15 Januar 2019, 10:50:59
Dank dir Loredo , welche nodejs version ist drauf?
Zitat von: gvzdus am 07 Januar 2019, 13:02:36
Ein Unterschied z.B.: "Bei mir" kommen die alexaName-Namen mit Groß- / Kleinschreibung nach Alexa.
Zitat von: gvzdus am 15 Januar 2019, 08:55:19Wie es scheint hatte der Ordner .ssh zu viele Rechte ...
@Charly166:
Wenn Deine Uhr um 30 Sekunden falsch geht, sehe ich im Server-Log "unknown key". Sprich: Die Registrierung hat nicht geklappt.
Spannend ist Dein Logfile unter /opt/fhem/logs/alexa... im Abschnitt von
*** SSH: checking proxy configuration
bis
*** SSH: proxy configuration set up done
oder
*** SSH: proxy configuration failed
Der Anspruch wäre, dass man nun - mit 0.5.8 - daraus Ursachen erkennen kann :-)
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0755 for '/opt/fhem/.ssh/id_rsa' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
key_load_private_type: bad permissions
Permission denied (keyboard-interactive,publickey).
Zitat
root@raspberrypi:/# sudo npm install -g alexa-fhem
[2019-1-18 22:26:38] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20stopped,%20Terminated%20with%20255,%20ssh%20will%20restart%20at%2022:27:59;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:26:38] Reading alexaFHEM.ProxyConnection set to stopped, Terminated with 255, ssh will restart at 22:27:59
[2019-1-18 22:26:38] SSH: exited with 255 - will restart in 81.64463604251974 seconds
[2019-1-18 22:26:38] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20running,%20stderr=Permission%20denied%20(keyboard-interactive,publickey).%0D%0A;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:26:38] Reading alexaFHEM.ProxyConnection set to running, stderr=Permission denied (keyboard-interactive,publickey).
[2019-1-18 22:26:38] SSH: Permission denied (keyboard-interactive,publickey).
[2019-1-18 22:26:37] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
[2019-1-18 22:26:37] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20starting,%20starting%20SSH;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:26:37] Reading alexaFHEM.ProxyConnection set to starting, starting SSH
Internals:
FD 60
LAST_START 2019-01-18 22:35:33
NAME alexa
NOTIFYDEV global
NR 443
NTFY_ORDER 50-alexa
PID 19827
STARTS 1
STATE running /usr/bin/alexa-fhem
TYPE alexa
active 0
alexa-fhem version 0.5.11
currentlogfile ./log/alexa-2019-01-18.log
logfile ./log/alexa-%Y-%m-%d.log
READINGS:
2019-01-18 22:35:33 alexaFHEM running /usr/bin/alexa-fhem
2019-01-18 22:36:32 alexaFHEM.ProxyConnection running; SSH connected
2019-01-18 22:36:30 alexaFHEM.bearerToken crypt:5xxxxxxxx
2019-01-18 22:36:30 alexaFHEM.skillRegKey crypt:51xxxxx
Attributes:
alexaFHEM-auth crypt:165xxxxx
alexaFHEM-config ./alexa-fhem.cfg
alexaFHEM-log ./log/alexa-%Y-%m-%d.log
alexaMapping #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
[2019-1-19 03:48:51] Reading alexaFHEM.ProxyConnection set to running;; stderr=Timeout, server fhem-va.fhem.de not responding.
[2019-1-19 03:48:51] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20stderr%3DTimeout%2C%20server%20fhem-va.fhem.de%20not%20responding.%20%20%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 03:48:51] *** SSH: stderr: Timeout, server fhem-va.fhem.de not responding.
[2019-1-19 03:48:51] SSH: exited with 255 - will restart in 111.62871208701159 seconds
[2019-1-19 03:48:51] Reading alexaFHEM.ProxyConnection set to stopped;; Terminated with Timeout, server fhem-va.fhem.de not responding. , ssh will restart at 03:50:43
[2019-1-19 03:48:51] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopped%3B%3B%20Terminated%20with%20Timeout%2C%20server%20fhem-va.fhem.de%20not%20responding.%20%20%2C%20ssh%20will%20restart%20at%2003%3A50%3A43%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 03:50:43] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-1-19 03:50:43] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 03:50:43] Reading alexaFHEM.ProxyConnection set to running;; stderr=Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
[2019-1-19 03:50:43] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20stderr%3DWarning%3A%20Identity%20file%20~%2F.ssh%2Fid_rsa%20not%20accessible%3A%20No%20such%20file%20or%20directory.%20%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 03:50:43] *** SSH: stderr: Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
[2019-1-19 03:50:44] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-1-19 03:50:44] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 03:50:44] *** SSH: proxy connection established
[2019-1-19 03:50:44] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[2019-1-18 22:30:16] Reading alexaFHEM.ProxyConnection set to starting, starting SSH
[2019-1-18 22:30:16] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20starting,%20starting%20SSH;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:30:16] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
[2019-1-18 22:30:16] SSH: Permission denied (keyboard-interactive,publickey).
[2019-1-18 22:30:16] Reading alexaFHEM.ProxyConnection set to running, stderr=Permission denied (keyboard-interactive,publickey).
[2019-1-18 22:30:16] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20running,%20stderr=Permission%20denied%20(keyboard-interactive,publickey).%0D%0A;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:30:16] SSH: exited with 255 - will restart in 91.05685736523724 seconds
[2019-1-18 22:30:16] Reading alexaFHEM.ProxyConnection set to stopped, Terminated with 255, ssh will restart at 22:31:47
[2019-1-18 22:30:16] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20stopped,%20Terminated%20with%20255,%20ssh%20will%20restart%20at%2022:31:47;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:31:47] Reading alexaFHEM.ProxyConnection set to starting, starting SSH
[2019-1-18 22:31:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20starting,%20starting%20SSH;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:31:47] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
[2019-1-18 22:31:48] SSH: Permission denied (keyboard-interactive,publickey).
[2019-1-18 22:31:48] Reading alexaFHEM.ProxyConnection set to running, stderr=Permission denied (keyboard-interactive,publickey).
[2019-1-18 22:31:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20running,%20stderr=Permission%20denied%20(keyboard-interactive,publickey).%0D%0A;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:31:48] SSH: exited with 255 - will restart in 65.56113319457297 seconds
[2019-1-18 22:31:48] Reading alexaFHEM.ProxyConnection set to stopped, Terminated with 255, ssh will restart at 22:32:53
[2019-1-18 22:31:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20stopped,%20Terminated%20with%20255,%20ssh%20will%20restart%20at%2022:32:53;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:32:53] Reading alexaFHEM.ProxyConnection set to starting, starting SSH
[2019-1-18 22:32:53] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20starting,%20starting%20SSH;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:32:53] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
[2019-1-18 22:32:54] SSH: Permission denied (keyboard-interactive,publickey).
[2019-1-18 22:32:54] Reading alexaFHEM.ProxyConnection set to running, stderr=Permission denied (keyboard-interactive,publickey).
[2019-1-18 22:32:54] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20running,%20stderr=Permission%20denied%20(keyboard-interactive,publickey).%0D%0A;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:32:54] SSH: exited with 255 - will restart in 51.888092616402396 seconds
[2019-1-18 22:32:54] Reading alexaFHEM.ProxyConnection set to stopped, Terminated with 255, ssh will restart at 22:33:46
[2019-1-18 22:32:54] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20stopped,%20Terminated%20with%20255,%20ssh%20will%20restart%20at%2022:33:46;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:33:46] Reading alexaFHEM.ProxyConnection set to starting, starting SSH
[2019-1-18 22:33:46] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20starting,%20starting%20SSH;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:33:46] SSH: Pseudo-terminal will not be allocated because stdin is not a terminal.
[2019-1-18 22:33:46] SSH: Permission denied (keyboard-interactive,publickey).
[2019-1-18 22:33:46] Reading alexaFHEM.ProxyConnection set to running, stderr=Permission denied (keyboard-interactive,publickey).
[2019-1-18 22:33:46] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20running,%20stderr=Permission%20denied%20(keyboard-interactive,publickey).%0D%0A;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:33:46] SSH: exited with 255 - will restart in 103.57560560181304 seconds
[2019-1-18 22:33:46] Reading alexaFHEM.ProxyConnection set to stopped, Terminated with 255, ssh will restart at 22:35:30
[2019-1-18 22:33:46] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20stopped,%20Terminated%20with%20255,%20ssh%20will%20restart%20at%2022:35:30;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:34:44] Got SIGTERM, shutting down alexa-fhem...
[2019-1-18 22:34:44] Reading alexaFHEM.ProxyConnection set to stopping, alexa-fhem terminating
[2019-1-18 22:34:44] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;setreading%20alexa%20alexaFHEM.ProxyConnection%20stopping,%20alexa-fhem%20terminating;%7B$defs%7Balexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2019-1-18 22:35:34] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-1-18 22:35:34] this is alexa-fhem 0.5.11
[2019-1-18 22:35:34] connecting to FHEM ...
[2019-1-18 22:35:36] [FHEM] trying longpoll to listen for fhem events
[2019-1-18 22:35:36] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547847336448
[2019-1-18 22:35:55] [FHEM] got csrfToken:
[2019-1-18 22:35:55] [FHEM] Checking devices and attributes...
[2019-1-18 22:35:55] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-1-18 22:35:55] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-1-18 22:35:55] [FHEM] waiting for events ...
[2019-1-18 22:35:55] [FHEM] Fetching FHEM devices...
[2019-1-18 22:35:55] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-1-18 22:35:58] [FHEM] alexa device is alexa
[2019-1-18 22:35:58] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.11%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-18 22:35:58] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-18 22:35:58] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-18 22:35:58] Server listening on: http://127.0.0.1:43549 for proxy connections
[2019-1-18 22:35:58] *** SSH: checking proxy configuration
[2019-1-18 22:35:58] os.homedir()=/root
[2019-1-18 22:35:58] os.homedir() set to /root, but this is not writable
[2019-1-18 22:35:58] process.env.HOME=/root
[2019-1-18 22:35:58] process.env.HOME set to /root, but this is not writable
[2019-1-18 22:35:58] process.env.HOMEPATH=undefined
[2019-1-18 22:35:58] process.env.USERPROFILE=undefined
[2019-1-18 22:35:58] process.env.PWD=/opt/fhem
[2019-1-18 22:35:58] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","bind-ip":"127.0.0.1","port":43549},"connections":[{"uid":999,"filter":"alexaName=..*","name":"FHEM","port":"8083","webname":"fhem","server":"127.0.0.1"}]}
[2019-1-18 22:35:58] sshautoconf: No SSH public key found, we have to generate one.
[2019-1-18 22:36:15] sshautoconf: Generating public/private rsa key pair.
Your identification has been saved in /opt/fhem/.ssh/id_rsa.
Your public key has been saved in /opt/fhem/.ssh/id_rsa.pub.
The key fingerprint is:
00:50:e1:4e:1f:51:d8:16:df:ad:35:7b:ff:2d:9f:c9 fhem@raspi
The key's randomart image is:
+---[RSA 2048]----+
| .o+..+o. |
| . ...o. . . |
| o o. . . + |
| o . o o o |
| . . S . . .|
| ..|
| .|
| o =|
| E+|
+-----------------+
[2019-1-18 22:36:15] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
*** FHEM: connected
[2019-1-18 22:36:15] [FHEM] got: 0 results
[2019-1-18 22:36:16] BearerToken '...21967' read from alexa
[2019-1-18 22:36:16] 39_alexa.pm is new version: true
[2019-1-18 22:36:17] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bset%20alexa%20proxyToken%206EF7E721E643B470%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-18 22:36:30] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bset%20alexa%20proxyKey%204B3345FC-4B74DCC34503010C-6EF7E721E643B470%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-18 22:36:31] sshautoconf: completed successfully
[2019-1-18 22:36:31] *** SSH: proxy configuration set up done
[2019-1-18 22:36:31] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-1-18 22:36:31] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-18 22:36:31] SSH setup completed with new bearer token
[2019-1-18 22:36:32] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-1-18 22:36:32] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-18 22:36:32] *** SSH: proxy connection established
[2019-1-18 22:36:32] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[2019-1-18 22:36:33] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%20FW_directNotify(%22%23FHEMWEB%3AWEB%22%2C%20%22location.reload('true')%22%2C%20%22%22)%20%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
/usr/bin/alexa-fhem -c ~/alexa-fhem.cfg -A
Trying fhem
[2019-1-19 08:06:12] [test] executing: http://127.0.0.1:8083/fhem?cmd=help&XHR=1
FHEM-Connectivity fine
existing config.json seems fine
SSH key seems to exist
Our SSH key is known at the reverse proxy, good!
[2019-1-19 08:06:18] [test] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-1-19 08:06:19] 39_alexa.pm is new version: true
We are done - start the server from commandline?
(Better way would be to continue via FHEM-WEB, unless you are debugging) [y/N] N
We are done - start the server from commandline?
(Better way would be to continue via FHEM-WEB, unless you are debugging) [y/N] y
[2019-1-19 08:06:48] sshautoconf: completed successfully
[2019-1-19 08:06:48] using config from /home/pi/alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-1-19 08:06:48] this is alexa-fhem 0.5.11
[2019-1-19 08:06:48] connecting to FHEM ...
[2019-1-19 08:06:48] [FHEM] trying longpoll to listen for fhem events
[2019-1-19 08:06:48] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547881608300
[2019-1-19 08:06:48] [FHEM] got csrfToken:
[2019-1-19 08:06:48] [FHEM] Checking devices and attributes...
[2019-1-19 08:06:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-1-19 08:06:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-1-19 08:06:48] [FHEM] waiting for events ...
[2019-1-19 08:06:48] [FHEM] Fetching FHEM devices...
[2019-1-19 08:06:48] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=...*&XHR=1
[2019-1-19 08:06:48] [FHEM] alexa device is alexa
[2019-1-19 08:06:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.11%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 08:06:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 08:06:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 08:06:48] Server listening on: http://127.0.0.1:40845 for proxy connections
[2019-1-19 08:06:48] *** SSH: checking proxy configuration
[2019-1-19 08:06:48] Passed config: {"sshproxy":{"name":"sshproxy","bind-ip":"127.0.0.1","ssl":false,"ssh":"/usr/bin/ssh","port":40845},"connections":[{"server":"127.0.0.1","port":8083,"name":"FHEM","filter":"alexaName=...*","ssl":false,"base_url":"http://127.0.0.1:8083/fhem","auth":{"user":"sash","pass":"xs329111","sendImmediately":false}}]}
[2019-1-19 08:06:48] sshautoconf: SSH key seems to exist
[2019-1-19 08:06:49] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-1-19 08:06:49] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
*** FHEM: connected
[2019-1-19 08:06:49] [FHEM] got: 0 results
[2019-1-19 08:06:49] 39_alexa.pm is new version: true
[2019-1-19 08:06:49] sshautoconf: completed successfully
[2019-1-19 08:06:49] *** SSH: proxy configuration set up done
[2019-1-19 08:06:49] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-1-19 08:06:49] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 08:06:49] BearerToken '...3B470' read from alexa
[2019-1-19 08:06:49] Reading alexaFHEM.ProxyConnection set to running;; stderr=Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
[2019-1-19 08:06:49] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20stderr%3DWarning%3A%20Identity%20file%20~%2F.ssh%2Fid_rsa%20not%20accessible%3A%20No%20such%20file%20or%20directory.%20%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 08:06:49] *** SSH: stderr: Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
[2019-1-19 08:06:50] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-1-19 08:06:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 08:06:50] *** SSH: proxy connection established
[2019-1-19 08:06:50] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[2019-1-19 08:07:53] >>>> [ssh] {"directive":{"header":{"namespace":"Alexa.Discovery","name":"Discover","payloadVersion":"3","messageId":"0815"},"payload":{"scope": {"type":"BearerToken","token":"12F510-C597DC0DB4121967"}}}}
[2019-1-19 08:07:53] client not authorized: {"error_index":"vgcEs1VDMbis4e0fdn7eqQAAAAAAAAABbgjhVODDOZd0lMo6To_mbxuw2Pa1QAsk-AkOIa8NwUDG0Qwrh6i5OcOUT7kVksSr2mPH-2-4BIldGagrwWdtWtzzbc5AOwzk3o6-imN7_oNoQKuO_vZY6NtTS89YWVVb51e4g9Y7t_0OMf5MvxexDtN2JjWn17SGu_qOD_ziAvlvdNg969IdNXURI00jnY6jaKezKXDT1pDGw5b69QGarA==","error_description":"The request has an invalid parameter : access_token","error":"invalid_token"}
[2019-1-19 08:07:53] ERROR: InvalidAccessTokenError from 127.0.0.1
[2019-1-19 08:07:53] <<<< [ssh] {"header":{"namespace":"Alexa.ConnectedHome.Control","name":"InvalidAccessTokenError","payloadVersion":"2","messageId":"276458e8-1f01-4ae9-87d2-336f7d6dbc73"},"payload":{}}
[2019-1-19 08:08:23] >>>> [ssh] {"directive":{"header":{"namespace":"Alexa.Discovery","name":"Discover","payloadVersion":"3","messageId":"0815"},"payload":{"scope": {"type":"BearerToken","token":"12F510-C597DC0DB4121967"}}}}
[2019-1-19 08:08:23] client not authorized: {"error_index":"v23Jt5kne6WI4aMw7hyHFgAAAAAAAAABeJjXpWAhRsRgO35ylGTOchGwfynDqi0P96jcXtE-5jJuVnxAW5nZbbfHPX7jXv6mlAgSc7YtCmIPJXXkjZ10u-pvIU96jSDB8zhnmdc1BDvg9tDStHT1QHpwHOV98Y8iQgsD37D65-RnX6J-k6xFKsKxXC0fqouRF58jx68ZBElu-nSd1xtbbiqbC_Ies4D27rk4j33ShB_XIA-I6DN-EQ==","error_description":"The request has an invalid parameter : access_token","error":"invalid_token"}
[2019-1-19 08:08:23] ERROR: InvalidAccessTokenError from 127.0.0.1
[2019-1-19 08:08:23] <<<< [ssh] {"header":{"namespace":"Alexa.ConnectedHome.Control","name":"InvalidAccessTokenError","payloadVersion":"2","messageId":"ac08dee7-a378-470b-b464-f4c86c535134"},"payload":{}}
^C[2019-1-19 08:11:54] Got SIGINT, shutting down alexa-fhem...
[2019-1-19 08:11:54] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-1-19 08:11:54] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 08:11:54] Stopping SSH ...
[2019-1-19 08:11:54] Reading alexaFHEM.ProxyConnection set to stopped;; Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
[2019-1-19 08:11:54] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopped%3B%3B%20Warning%3A%20Identity%20file%20~%2F.ssh%2Fid_rsa%20not%20accessible%3A%20No%20such%20file%20or%20directory.%20%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 08:11:54] *** SSH: exited with Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
christian@fhem:~$ ps -ef | egrep '(alexa|ssh)'
root 1206 1 0 Jan16 ? 00:00:00 /usr/sbin/sshd -D
fhem 2264 1879 0 Jan16 ? 00:00:02 /usr/bin/node ./cache/alexa-cook ie/458create-cookie.js
fhem 9712 9419 1 08:37 ? 00:00:02 node /usr/local/bin/alexa-fhem - c ./alexa-fhem.cfg -a xx:xx
root 9879 1206 3 08:39 ? 00:00:00 sshd: christian [priv]
christi+ 9964 9879 0 08:39 ? 00:00:00 sshd: christian@pts/0
christi+ 9976 9965 0 08:39 pts/0 00:00:00 grep -E --color=auto (alexa|ssh)
egrep '(fhem|pi)' /etc/passwd
pi:x:1000:1000:,,,:/home/pi:/bin/bash
fhem:x:999:20::/opt/fhem:/bin/false
Zitat von: gvzdus am 19 Januar 2019, 08:56:15
Die Antwort bezieht sich auf sash.sc
Im Prinzip ist Dein Vorgehen gut, es mal mit "alexa -A" zu versuchen. Das hast Du aber als User pi scheinbar gemacht. Suggeriert zumindest diese Zeile:
[2019-1-19 08:06:48] using config from /home/pi/alexa-fhem.cfg
Zitat von: gvzdus am 19 Januar 2019, 08:56:15
Die andere Zeile, die zentral ist, auf die ich mir aber noch keinen Reim machen kann:
Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
Wenn ich davon ausgehe, dass FHEM unter fhem läuft, und dass das Homedir /opt/fhem ist, dann wäre spannend:
sudo -u fhem ls -ld /opt/fhem/.ssh
sudo -u fhem ls -ld ~/.ssh
sudo -u fhem ls -l /opt/fhem/.ssh
sudo -u fhem ls -l ~/.ssh
sudo -u fhem ls -ld ~/
Deine Situation mit laufendem SSH-Tunnel ist immer, dass Du zwar SSH oben hast, aber mit dem falschen Schlüssel (vermutlich vom User pi), während der hinterlegte Registrieriungskey wohl vom User "fhem" ist.
pi@raspi:~ $ sudo -u fhem ls -ld /opt/fhem/.ssh
drwx------ 2 fhem dialout 4096 Jan 18 22:36 /opt/fhem/.ssh
pi@raspi:~ $ sudo -u fhem ls -ld ~/.ssh
drwx------ 2 pi pi 4096 Jan 13 21:37 /home/pi/.ssh
pi@raspi:~ $ sudo -u fhem ls -l /opt/fhem/.ssh
insgesamt 12
-rw------- 1 fhem dialout 1679 Jan 18 22:36 id_rsa
-rw-r--r-- 1 fhem dialout 392 Jan 18 22:36 id_rsa.pub
-rw-r--r-- 1 fhem dialout 1768 Jan 13 11:23 known_hosts
pi@raspi:~ $ sudo -u fhem ls -l ~/.ssh
ls: Öffnen von Verzeichnis /home/pi/.ssh nicht möglich: Keine Berechtigung
pi@raspi:~ $ sudo -u fhem ls -ld ~/
drwxr-xr-x 27 pi pi 4096 Jan 13 21:37 /home/pi/
pi@raspi:~ $ egrep '(fhem|pi)' /etc/passwd
fhem:x:999:20::/opt/fhem:/bin/bash
pi:x:1000:1000:,,,:/home/pi:/bin/bash
fhem:x:999:20::/opt/fhem:/bin/false
ls -ld /opt/fhem
sudo rm -rf /opt/fhem/.ssh
pi@raspi:~ $ ls -ld /opt/fhem
drwxrwxrwx 12 fhem dialout 4096 Jan 15 22:42 /opt/fhem
sudo chmod 755 /opt/fhem
sudo rm -rf /opt/fhem/.ssh/*
Internals:
FD 4
LAST_START 2019-01-19 14:52:54
NAME alexa
NOTIFYDEV global
NR 97
NTFY_ORDER 50-alexa
PID 1118
STARTS 1
STATE running /usr/local/bin/alexa-fhem
TYPE alexa
active 0
alexa-fhem version 0.5.11
currentlogfile /media/usbstick/fhemlog/alexa-2019-01-19.log
logfile %L/alexa-%Y-%m-%d.log
READINGS:
2019-01-19 14:52:54 alexaFHEM running /usr/local/bin/alexa-fhem
2019-01-19 14:52:57 alexaFHEM.ProxyConnection running; SSH connected
2019-01-19 14:45:53 alexaFHEM.bearerToken crypt:570xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Attributes:
alexaFHEM-config ./alexa-fhem.cfg
alexaFHEM-log %L/alexa-%Y-%m-%d.log
alexaMapping #Characteristic=<name>=<value>,...
*** SSH: stderr: Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
[2019-1-19 15:20:06] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-1-19 15:20:06] this is alexa-fhem 0.5.11
[2019-1-19 15:20:06] connecting to FHEM ...
[2019-1-19 15:20:07] [FHEM] trying longpoll to listen for fhem events
[2019-1-19 15:20:07] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547907607621
[2019-1-19 15:20:07] [FHEM] got csrfToken:
[2019-1-19 15:20:07] [FHEM] Checking devices and attributes...
[2019-1-19 15:20:07] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-1-19 15:20:07] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-1-19 15:20:07] [FHEM] waiting for events ...
[2019-1-19 15:20:07] [FHEM] Fetching FHEM devices...
[2019-1-19 15:20:07] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
*** FHEM: connected
[2019-1-19 15:20:07] [FHEM] got: 0 results
[2019-1-19 15:20:07] [FHEM] alexa device is alexa
[2019-1-19 15:20:07] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.11%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 15:20:07] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 15:20:07] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 15:20:07] Server listening on: http://127.0.0.1:43621 for proxy connections
[2019-1-19 15:20:07] *** SSH: checking proxy configuration
[2019-1-19 15:20:07] os.homedir()=/opt/fhem
[2019-1-19 15:20:07] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","bind-ip":"127.0.0.1","port":43621},"connections":[{"filter":"alexaName=..*","uid":999,"server":"127.0.0.1","webname":"fhem","name":"FHEM","port":"8083"}]}
[2019-1-19 15:20:07] sshautoconf: SSH key seems to exist
[2019-1-19 15:20:08] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-1-19 15:20:08] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 15:20:08] BearerToken '...E5367' read from alexa
[2019-1-19 15:20:08] 39_alexa.pm is new version: true
[2019-1-19 15:20:08] sshautoconf: completed successfully
[2019-1-19 15:20:08] *** SSH: proxy configuration set up done
[2019-1-19 15:20:08] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-1-19 15:20:08] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 15:20:08] Reading alexaFHEM.ProxyConnection set to running;; stderr=Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
[2019-1-19 15:20:08] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20stderr%3DWarning%3A%20Identity%20file%20~%2F.ssh%2Fid_rsa%20not%20accessible%3A%20No%20such%20file%20or%20directory.%20%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 15:20:08] *** SSH: stderr: Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
[2019-1-19 15:20:09] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-1-19 15:20:09] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 15:20:09] *** SSH: proxy connection established
[2019-1-19 15:20:09] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[2019-1-19 20:35:38] Got SIGTERM, shutting down alexa-fhem...
[2019-1-19 20:35:38] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-1-19 20:35:38] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 20:35:38] Stopping SSH ...
[2019-1-19 20:35:38] Reading alexaFHEM.ProxyConnection set to stopped;; Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
[2019-1-19 20:35:38] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopped%3B%3B%20Warning%3A%20Identity%20file%20~%2F.ssh%2Fid_rsa%20not%20accessible%3A%20No%20such%20file%20or%20directory.%20%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 20:35:38] *** SSH: exited with Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
[2019-1-19 20:35:46] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-1-19 20:35:46] this is alexa-fhem 0.5.11
[2019-1-19 20:35:46] connecting to FHEM ...
[2019-1-19 20:35:47] [FHEM] trying longpoll to listen for fhem events
[2019-1-19 20:35:47] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547926547072
[2019-1-19 20:35:47] [FHEM] got csrfToken:
[2019-1-19 20:35:47] [FHEM] Checking devices and attributes...
[2019-1-19 20:35:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-1-19 20:35:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-1-19 20:35:47] [FHEM] waiting for events ...
[2019-1-19 20:35:47] [FHEM] Fetching FHEM devices...
[2019-1-19 20:35:47] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
*** FHEM: connected
[2019-1-19 20:35:47] [FHEM] got: 0 results
[2019-1-19 20:35:47] [FHEM] alexa device is alexa
[2019-1-19 20:35:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.11%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 20:35:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 20:35:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 20:35:47] Server listening on: http://127.0.0.1:37313 for proxy connections
[2019-1-19 20:35:47] *** SSH: checking proxy configuration
[2019-1-19 20:35:47] os.homedir()=/opt/fhem
[2019-1-19 20:35:47] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","bind-ip":"127.0.0.1","port":37313},"connections":[{"filter":"alexaName=..*","uid":999,"server":"127.0.0.1","webname":"fhem","name":"FHEM","port":"8083"}]}
[2019-1-19 20:35:47] sshautoconf: SSH key seems to exist
[2019-1-19 20:35:48] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-1-19 20:35:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 20:35:48] BearerToken '...E5367' read from alexa
[2019-1-19 20:35:48] 39_alexa.pm is new version: true
[2019-1-19 20:35:48] sshautoconf: completed successfully
[2019-1-19 20:35:48] *** SSH: proxy configuration set up done
[2019-1-19 20:35:48] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-1-19 20:35:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 20:35:48] Reading alexaFHEM.ProxyConnection set to running;; stderr=Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
[2019-1-19 20:35:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20stderr%3DWarning%3A%20Identity%20file%20~%2F.ssh%2Fid_rsa%20not%20accessible%3A%20No%20such%20file%20or%20directory.%20%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 20:35:48] *** SSH: stderr: Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory.
[2019-1-19 20:35:48] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-1-19 20:35:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 20:35:48] *** SSH: proxy connection established
[2019-1-19 20:35:48] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[2019-1-19 20:35:46] this is alexa-fhem 0.5.11
$Id: 39_alexa.pm 18283 2019-01-16 16:58:23Z justme1968
sudo npm install -g alexa-fhem
gemacht?
[2019-1-19 21:06:09] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-1-19 21:06:09] os.homedir()=/opt/fhem
[2019-1-19 21:06:09] this is alexa-fhem 0.5.12
[2019-1-19 21:06:09] connecting to FHEM ...
[2019-1-19 21:06:11] [FHEM] trying longpoll to listen for fhem events
[2019-1-19 21:06:11] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1547928371343
[2019-1-19 21:06:11] [FHEM] got csrfToken:
[2019-1-19 21:06:11] [FHEM] Checking devices and attributes...
[2019-1-19 21:06:11] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-1-19 21:06:11] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-1-19 21:06:11] [FHEM] waiting for events ...
[2019-1-19 21:06:11] [FHEM] Fetching FHEM devices...
[2019-1-19 21:06:11] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-1-19 21:06:11] [FHEM] alexa device is alexa
[2019-1-19 21:06:11] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.12%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 21:06:11] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 21:06:11] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 21:06:11] Server listening on: http://127.0.0.1:40875 for proxy connections
[2019-1-19 21:06:11] *** SSH: checking proxy configuration
[2019-1-19 21:06:11] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-1-19 21:06:11] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":40875},"connections":[{"filter":"alexaName=..*","uid":999,"server":"127.0.0.1","webname":"fhem","name":"FHEM","port":"8083"}]}
[2019-1-19 21:06:11] sshautoconf: SSH key seems to exist
[2019-1-19 21:06:12] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-1-19 21:06:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
*** FHEM: connected
[2019-1-19 21:06:12] [FHEM] got: 0 results
[2019-1-19 21:06:12] BearerToken '...E5367' read from alexa
[2019-1-19 21:06:12] 39_alexa.pm is new version: true
[2019-1-19 21:06:12] sshautoconf: completed successfully
[2019-1-19 21:06:12] *** SSH: proxy configuration set up done
[2019-1-19 21:06:12] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-1-19 21:06:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 21:06:12] Starting SSH with -R 1234:127.0.0.1:40875 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[2019-1-19 21:06:13] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-1-19 21:06:13] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-19 21:06:13] *** SSH: proxy connection established
[2019-1-19 21:06:13] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
jump to the top
set alexa unregister
set alexa restart
get alexa proxyKey
Hier kopierst Du Deinen Anmeldeschlüssel (im Klartext!) hinein und klickst auf Check. Als glücklicher Mensch ist auf der folgenden Statusseite alles grün:
Zitat von: AlterMann am 19 Januar 2019, 23:38:37
Hi und sorry wenn ich doof frage. Geht das Ganze auch mit nem eigenen SSH Schlüssel, den Crome ablehnt. Den habe ich selbst generiert! Da das Zertifikat aber nicht anerkannt wird mag Crome das nicht und meint das sei unsicher....? Hat mich bisher nicht gestört aber ICTTT geht damit nicht.....
AM
Zitat von: gvzdus am 19 Januar 2019, 10:01:50
Möglicherweise ähnliche Gründe. Kannst Du bitte die 5 "ls"-Kommandos durchführen?
christian@fhem:~$ sudo -u fhem ls -ld /opt/fhem/.ssh
drwx-w--w- 2 fhem dialout 4096 Jan 19 08:30 /opt/fhem/.ssh
christian@fhem:~$ sudo -u fhem ls -ld ~/.ssh
drwx------ 2 christian christian 4096 Jun 6 2018 /home/christian/.ssh
christian@fhem:~$ sudo -u fhem ls -l /opt/fhem/.ssh
total 12
-rw------- 1 fhem dialout 1675 Jan 19 08:30 id_rsa
-rw-r--r-- 1 fhem dialout 391 Jan 19 08:30 id_rsa.pub
-rw-r--r-- 1 root root 274 Jun 6 2018 known_hosts
christian@fhem:~$ sudo -u fhem ls -l ~/.ssh
ls: cannot open directory '/home/christian/.ssh': Permission denied
christian@fhem:~$ sudo -u fhem ls -ld ~/
drwxr-xr-x 13 christian christian 4096 Jan 19 08:27 /home/christian/
sudo npm install -g alexa-fhem
Zitat von: gvzdus am 20 Januar 2019, 09:11:08Update gemacht, sogar den Server neu gestartet, ich bekomme immer noch keine SSH Verbindung hin.
dann bitte einmal ein Update auf 0.5.12 durchführen:
sudo -u fhem ls -l ~/.ssh
[2019-1-22 00:01:33] *** SSH: stderr: Host key verification failed.
[2019-1-22 00:01:33] SSH: exited with 255 - will restart in 47.34429769933359 seconds
[2019-1-22 00:01:33] Reading alexaFHEM.ProxyConnection set to stopped;; Terminated with Host key verification failed. , ssh will restart at 00:02:20
2019.01.23 10:09:08 3: Login denied for user >Entwicklung< via WEBhook_127.0.0.1_36302
2019.01.23 10:09:08 3: Login denied for user >Entwicklung< via WEBhook_127.0.0.1_36310
2019.01.23 10:09:08 3: Login denied for user >Entwicklung< via WEBhook_127.0.0.1_36312
2019.01.23 10:09:08 3: Login denied for user >Entwicklung< via WEBhook_127.0.0.1_36314
Ist dies korrekt. Nachdem ich entsprechend User/Passwort für Webhook eingegeben hatte, war diese Fehlermeldung weg. Im Logfile habe ich leider jetzt:2019.01.23 10:16:57 2: alexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg -a xx:xx
2019.01.23 10:16:57 3: alexa: using logfile: ./log/alexa-2019-01-23.log
2019.01.23 10:17:01 3: alexa: read: end of file reached while sysread
2019.01.23 10:17:01 3: alexa: alexaFHEM stopped
sudo -u fhem /usr/local/bin/alexa-fhem -c /opt/fhem/alexa-fhem.cfg -A
ZitatalexaFHEM.bearerTokenich kann aber nicht beurteilen, ob in meinen Prozessen die richtigen beinhaltet sind:
alexaFHEM.skillRegKey
@raspberrypi:~ $ ps -ef | egrep '(alexa|ssh)'
root 587 1 0 Jan20 ? 00:00:00 /usr/sbin/sshd -D
root 23072 587 0 08:20 ? 00:00:00 sshd: pi [priv]
pi 23087 23072 0 08:20 ? 00:00:01 sshd: pi@pts/0
fhem 32313 23867 0 14:25 ? 00:00:03 node /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg -a xx:xx
fhem 32326 32313 0 14:25 ? 00:00:00 /usr/bin/ssh -R 1234:127.0.0.1:45545 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
pi 32403 23090 0 14:35 pts/0 00:00:00 grep -E --color=auto (alexa|ssh)
Bin eher skeptisch.
FHEM Connector wurde erfolgreich verknüpft.
Was als Nächstes zu tun ist:
Bitte schließen Sie dieses Fenster, um die Smart-Home-Geräte zu suchen, die Sie mit Alexa steuern können.
Zitat von: justme1968 am 23 Januar 2019, 10:40:40
oder man geht über das edit files in fhem
Zitat von: gvzdus am 23 Januar 2019, 08:13:27
Die von mir genannten Meldungen kommen nur bei einem Restart.
[2019-1-23 17:13:53] *** SSH: proxy configuration set up done
[2019-1-23 17:13:53] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-1-23 17:13:53] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active$
[2019-1-23 17:13:53] Reading alexaFHEM.ProxyConnection set to running;; stderr=Host key verification failed.
[2019-1-23 17:13:53] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active$
[2019-1-23 17:13:53] *** SSH: stderr: Host key verification failed.
ZitatJetzt wäre der Logfile-Auszugunter /opt/fhem/logs/alexa... im Abschnitt von
*** SSH: checking proxy configuration
bis
*** SSH: proxy configuration set up done
oder
*** SSH: proxy configuration failed
Zitat von: gvzdus am 23 Januar 2019, 17:47:28
[2019-1-23 17:13:52] *** SSH: checking proxy configuration
[2019-1-23 17:13:52] os.homedir()=/opt/fhem
[2019-1-23 17:13:52] Passed config: {"sshproxy":{"description":"FHEM Connector"$
[2019-1-23 17:13:52] sshautoconf: SSH key seems to exist
[2019-1-23 17:13:53] sshautoconf: Our SSH key is known at the reverse proxy, go$
[2019-1-23 17:13:53] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24d$
*** FHEM: connected
[2019-1-23 17:13:53] [FHEM] got: 2 results
...
[2019-1-23 17:13:53] BearerToken '...24DB7' read from alexa
[2019-1-23 17:13:53] 39_alexa.pm is new version: true
[2019-1-23 17:13:53] sshautoconf: completed successfully
[2019-1-23 17:13:53] *** SSH: proxy configuration set up done
sudo npm install -g alexa-fhem
sudo ls -ld /opt/fhem/.ssh
sudo ls -l /opt/fhem/.ssh
Zitat@UweUwe: aber genau das steht doch schon im wiki...Ache auf mein Haupt.
Zitat von: gvzdus am 23 Januar 2019, 19:36:09Update erledigt.
Du verwendest Version 0.5.11, besser wäre die aktuelle Version, weil sie ein Problem behebt, was danach auftreten könnte. Bitte einmal aktualisieren mit
christian@fhem:~$ sudo ls -ld /opt/fhem/.ssh
drwx-w--w- 2 fhem dialout 4096 Jan 19 08:30 /opt/fhem/.ssh
christian@fhem:~$ sudo ls -l /opt/fhem/.ssh
total 12
-rw------- 1 fhem dialout 1675 Jan 19 08:30 id_rsa
-rw-r--r-- 1 fhem dialout 391 Jan 19 08:30 id_rsa.pub
-rw-r--r-- 1 root root 274 Jun 6 2018 known_hosts
sudo chown fhem:dialout /opt/fhem/.ssh/known_hosts
sudo chmod 700 /opt/fhem/.ssh
Zitat von: gvzdus am 23 Januar 2019, 21:24:25
P.S.: Falls es danach noch Gezicke gibt: Die Rechte für den Ordner /opt/fhem/.ssh sind auch "unkonventionell". Falls es nach den o.a. Schritten noch nicht klappt:Code Auswählensudo chmod 700 /opt/fhem/.ssh
Zitat von: MadMax-FHEM am 26 Januar 2019, 10:10:46Node: v11.8.0
Welche node Version hast du?
Zitat von: MadMax-FHEM am 26 Januar 2019, 10:10:46Das beruhigt mich schon mal, d.h. die fhem-seite kümmert sich komplett um den Start/Stop?
etc/init.d/alexa-fhem gibt es mit der neuen Version/Variante nicht (mehr)...
Zitat von: MadMax-FHEM am 26 Januar 2019, 10:10:46Zumindest keinerlei console messages ;)
Wenn (wie du dchreibst) bei "sudo npm install -g alexa-fhem" alles gut ging/keine Fehler gab ist "does not exist" eigenartig...
Zitat von: MadMax-FHEM am 26 Januar 2019, 10:10:46
Gibt es unter /opt/fhem ein .alexa bzw. ein alexa-fhem ?
find /opt -name alexa*
/opt/fhem/alexa-fhem.cfg
/opt/fhem/www/images/fhemSVG/alexa.svg
/opt/fhem/www/images/fhemSVG/alexa2.svg
/opt/fhem/FHEM/alexa-fhem.cfg
/opt/fhem/alexa-fhem.cfg.previous
/opt/fhem/log/alexa-2019-01-25.log
/opt/fhem/log/alexa-2019-01-26.log
find: `/opt/fhem/.ssh': Permission denied
find: `/opt/fhem/.alexa': Permission denied
/usr/local/bin/alexa-fhem
/usr/local/lib/node_modules/.bin/alexa-fhem
/usr/local/lib/node_modules/alexa-fhem
/usr/local/lib/node_modules/alexa-fhem/bin/alexa
sudo -u fhem /usr/local/bin/alexa-fhem -c /opt/fhem/alexa-fhem.cfg -A
Zitat von: justme1968 am 26 Januar 2019, 11:38:57Kann es an Rechten liegen, bzw. wo wird das exec gesucht?
entweder findest du raus warum das so ist, oder du setzt alexaFHEM-cmd.
Zitat von: snx am 26 Januar 2019, 11:53:03
Kann es an Rechten liegen, bzw. wo wird das exec gesucht?
Vorhanden ist es ja, wir man oben in meiner Liste sieht.
Und sorry, aber was heißt "setzt alexaFHEM-cmd"?
Zitat von: device specific help
alexaFHEM-cmd
The command to use as alexa-fhem.
/usr/bin/env: node: No such file or directory
find /usr -name node
/usr/local/bin/node
/usr/local/n/versions/node
/usr/local/n/versions/node/11.8.0/bin/node
/usr/local/n/versions/node/11.8.0/share/doc/node
/usr/local/n/versions/node/11.8.0/include/node
/usr/local/share/doc/node
/usr/local/include/node
ls -la /opt/fhem
total 1144
drwxr-xr-x 14 fhem fhem 4096 Jan 26 09:33 .
drwxr-xr-x 6 root root 4096 Mar 22 2015 ..
drwx------ 2 fhem dialout 4096 Jan 26 09:30 .alexa
-rw-r--r-- 1 fhem dialout 341 Jan 26 09:56 alexa-fhem.cfg
-rw-r--r-- 1 fhem dialout 311 Jan 26 00:21 alexa-fhem.cfg.previous
drwxr-xr-x 2 fhem dialout 4096 Jan 25 20:31 backup
-rw-r--r-- 1 fhem dialout 275958 Jan 25 20:33 CHANGED
-rw-r--r-- 1 fhem fhem 39621 Jan 25 20:33 configDB.pm
drwxrwxr-x 32 fhem fhem 4096 Sep 19 2016 contrib
drwxr-xr-x 2 fhem dialout 4096 May 5 2015 demolog
drwxrwxr-x 4 fhem fhem 4096 Feb 11 2018 docs
drwxrwxr-x 6 fhem fhem 20480 Jan 26 09:11 FHEM
-rwxrwxrwx 1 fhem fhem 135051 Jan 25 20:30 fhem.cfg
-rw-r--r-- 1 fhem dialout 19987 Jan 25 20:33 fhem.cfg.demo
-rw-rw-r-- 1 fhem fhem 0 Jan 26 12:44 fhem.heartbeat
-rw-r--r-- 1 fhem dialout 155626 Jan 25 20:33 fhem.pl
-rwxr--r-- 1 fhem fhem 284273 Jan 26 12:15 fhem.save
-rw-rw-r-- 1 fhem fhem 5231 Apr 3 2015 functions.sh
drwxr-xr-x 2 fhem fhem 4096 Apr 2 2015 hm
drwxrwxr-x 3 fhem fhem 4096 Jan 26 00:39 log
-rw-r--r-- 1 fhem dialout 39072 Jan 25 20:33 MAINTAINER.txt
-rw-r--r-- 1 fhem dialout 112159 Mar 9 2018 regSave.cfg
drwxrwxr-x 7 fhem fhem 4096 Jan 25 20:33 restoreDir
drwx------ 2 fhem dialout 4096 Jan 26 09:33 .ssh
drwxrwxr-x 2 fhem fhem 4096 Apr 8 2016 unused
-rwxrwxr-x 1 fhem fhem 448 Mar 27 2015 watchdog.sh
drwxrwxr-x 10 fhem fhem 4096 Nov 23 2016 www
ls -la /usr/local/bin/alex*
lrwxrwxrwx 1 root staff 40 Jan 26 09:18 /usr/local/bin/alexa-fhem -> ../lib/node_modules/alexa-fhem/bin/alexa
ls -la /usr/local/lib/node_modules/alexa-fhem/bin
total 12
drwxr-sr-x 2 snx pi 4096 Jan 26 09:18 .
drwxr-sr-x 5 root root 4096 Jan 26 09:18 ..
-rwxr-xr-x 1 snx pi 564 Oct 26 1985 alexa
sudo ln -s /usr/local/bin/node /usr/bin/node
Zitat2019.01.27 00:01:34 1: PERL WARNING: Use of uninitialized value $logfile in string ne at ./FHEM/39_alexa.pm line 296.Muss ich hier etwas ändern oder ist hier eine Modulanpassung notwendig? Viele Grüße Jürgen |
Zitat von: juemuc am 27 Januar 2019, 11:25:46
Hallo,
ich verwende 2 raspberrys zur Steuerung meiner Geräte. Ich möchte nun beide über Alexa ansprechen. Alexa-fhem ist auf beiden eingerichtet. Allerdings haben die Geräte unterschiedliche Schlüssel. Wie kann ich dies vereinheitlichen?
Viele Grüße
Jürgen
Zitat von: UweUwe am 28 Januar 2019, 07:56:17
Hallo,
Alexa klappt ja prima als Eingabemedium, Verarbeitung und Steuerung für FHEM. Gibt es Ideen, wie man Alexa als Ausgabemedium für z.B. FHEM Statusinformationen verwenden kann?
Zitat von: justme1968 am 28 Januar 2019, 13:50:30
mal ganz abgesehen davon das ich nicht verstehe warum:
ja. natürlich geht das. genau so wie das bisher auch ging.
aber du musst es selber einrichten.
ZitatDas macht es irgendwie einfacher beim Administrieren.
Zitat von: justme1968 am 28 Januar 2019, 14:08:51
nein. das macht es das in diesem fall nicht. du musst dich doch dann selber um das starten und stoppen kümmern. du siehst in fhem erst mal nicht oben alexa-fhem läuft. du musst dich selber mit installation und rechten herumschlagen.
bitte nicht falsch verstehen.
nichts gegen das selber machen. und so viele gründe es auch gibt. aber einfacher ist es nicht und zumindest wenn man nicht weiss was man tut ist es auch mit dem support schwieriger.
Zitat von: accessburn am 28 Januar 2019, 16:00:50
Hallo,
ich hab das wohl nicht ganz verstanden. Ich habe alles nach Anleitung ausgeführt. Aber wie weiße ich Geräte zu? Alles was die Amazonseite an Geräten findet sind die aus der HA-Bridge.
Beispielanfragen nach der der Temperatur im Büro beantwortet Alexa mit dem Standardsatz: "Ich kann keine Geräte mit dem Namen Temperatur Büro finden!". Habe ich etwas übersehen?
Internals:
CHANGED
DEF 16
FUUID 5c4d5efc-f33f-8d06-7618-a3ffd6d183785082
IODev myJeeLink
LASTInputDev myJeeLink
LaCrosse_lastRcv 2019-01-28 16:20:02
MSGCNT 14278
NAME aussen_s1
NR 57
STATE T: 4 H: 89
TYPE LaCrosse
addr 16
battery_new 0
bufferedH
bufferedT
corr1 0
corr2 0
myJeeLink_MSGCNT 14329
myJeeLink_RAWMSG OK 9 22 1 4 16 89
myJeeLink_TIME 2019-01-28 16:20:02
previousH 89
previousT 4
sensorType 0=T(H)
READINGS:
2019-01-28 16:20:02 battery ok
2019-01-28 16:20:02 humidity 89
2017-08-19 11:45:22 humidity0 79
2017-12-26 23:58:24 rain 1029.5
2019-01-28 16:19:37 state T: 4 H: 89
2019-01-28 16:20:02 temperature 4
2017-08-19 11:45:22 temperature0 17.2
2017-12-26 23:58:24 windDirectionDegree 202.5
2017-12-26 23:58:24 windDirectionText SSW
2017-12-26 23:58:24 windGust 50.3
2017-12-26 23:58:24 windSpeed 14.2
Attributes:
IODev myJeeLink
alexaName außen
event-min-interval temperature:600,T:600,humidity:600,battery:3600
room LaCrosse
Wähle die Geräte aus, rufe sie auf und setze das Attribut "alexaName". Hierbei in Kürze nur der Hinweis
Zitat von: accessburn am 28 Januar 2019, 16:23:57
Ahhh, okay:Code AuswählenWähle die Geräte aus, rufe sie auf und setze das Attribut "alexaName". Hierbei in Kürze nur der Hinweis
Könnte man das evtl. für Doofe erklären? Bin mir nicht sicher was ich machen soll. ein "get LaCrosse_xx alexaName ..." nimmt fhem nicht an
Zitat von: accessburn am 28 Januar 2019, 16:33:16
Du warst wohl schon am Tippen. Hatte es zwischenzeitlich gefunden das ein "attr" gemeint war. Manchmal ist man einfach blind! Danke für die Erklärung Joachim :-)
Zitat von: accessburn am 28 Januar 2019, 17:18:05Durchschnittlich ist es immer, wenn mehr als eine Temperatur im Raum ist
Weitere Frage: "Alexa, wie ist die Temperatur im Schlafzimmer?" - "Die durchschnittliche Temperatur im Schlafzimmer beträgt 18.5°!"
Wieso durchschnittlich? Kein anderer Raum bekommt ein "durchschnittlich" ;D
Zitat von: RoBra81 am 28 Januar 2019, 18:04:23
Durchschnittlich ist es immer, wenn mehr als eine Temperatur im Raum ist
Gesendet von meinem LYA-L29 mit Tapatalk
Zitat2019-01-28 15:12:48 statTemperatureDay Min: 15.7 Avg: 17.5 Max: 18.0
2019-01-27 23:59:55 statTemperatureDayLast Min: 17.2 Avg: 17.4 Max: 17.4
2019-01-28 15:12:48 statTemperatureHour Min: 17.2 Avg: 17.2 Max: 17.2
2019-01-28 14:59:55 statTemperatureHourLast Min: 17.2 Avg: 17.2 Max: 17.2
2019-01-28 15:12:48 statTemperatureMonth Min: 13.6 Avg: 16.7 Max: 18.5
2018-12-31 23:59:55 statTemperatureMonthLast Min: 16.2 Avg: 17.6 Max: 18.4
2019-01-28 17:59:55 statTemperatureTendency 1h: +0.4 2h: +0.3 3h: -0.9 6h: -0.9
2019-01-28 15:12:48 statTemperatureYear Min: 13.6 Avg: 16.7 Max: 18.5
2018-12-31 23:59:55 statTemperatureYearLast Min: 13.7 Avg: 22.1 Max: 29.3 (since: 2018-06-01_07:56:37 )
2019-01-28 18:18:13 state T: 17.5 H: 60
2019-01-28 18:18:13 temperature 17.5
https://github.com/fhem/alexa-fhem-docker
sudo docker run -d --name alexa-fhem -p 3000:3000 fhem/alexa-fhem -v /home/fhem/fhem-docker/alexa-fhem:/alexa-fhem
Last output cat: /alexa-fhem/config.json: No such file or directory cat: /alexa-fhem/config.json: No such file or directory alexa-port(undefined): FAILED;
[1/29/2019, 6:32:44 AM] os.homedir()=/alexa-fhem
[1/29/2019, 6:32:44 AM] using config from /alexa-fhem/.alexa/config.json
*** CONFIG: parsed completely
[1/29/2019, 6:32:44 AM] this is alexa-fhem 0.5.15
[1/29/2019, 6:32:44 AM] connecting to FHEM ...
[1/29/2019, 6:32:44 AM] [FHEM] trying longpoll to listen for fhem events
[1/29/2019, 6:32:44 AM] [FHEM] starting longpoll: http://fhem:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1548739964949
[1/29/2019, 6:32:44 AM] Server listening on: http://:::3000 for direct connections
[1/29/2019, 6:32:44 AM] [FHEM] got csrfToken: csrf_374019469736464
[1/29/2019, 6:32:44 AM] [FHEM] Checking devices and attributes...
[1/29/2019, 6:32:44 AM] [FHEM] executing: http://fhem:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=csrf_374019469736464&XHR=1
[1/29/2019, 6:32:44 AM] [FHEM] executing: http://fhem:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_374019469736464&XHR=1
[1/29/2019, 6:32:44 AM] [FHEM] waiting for events ...
[1/29/2019, 6:32:44 AM] [FHEM] Fetching FHEM devices...
[1/29/2019, 6:32:44 AM] [FHEM] fetching: http://fhem:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=csrf_3746419469736464&XHR=1
[1/29/2019, 6:32:45 AM] [FHEM] alexa device is Alexa
[1/29/2019, 6:32:45 AM] [FHEM] executing: http://fhem:8083/fhem?cmd=%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7BAlexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.15%22%7D%3B%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_374019469736464&XHR=1
[1/29/2019, 6:32:45 AM] [FHEM] executing: http://fhem:8083/fhem?cmd=%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20Alexa%20.eventToken%3B%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_374019469736464&XHR=1
*** FHEM: connected
[1/29/2019, 6:32:45 AM] [FHEM] got: 29 results
Bei der Antwort des anegeforderten Skill ist ein Problem aufgetreten
https://hub.docker.com/r/sbiermann/x86-alexa-fhem/
funtioniert übrigens einwandfrei, das heißt, alle Freigaben und Ordner stimmen, ist jedoch etwas alt.Zitat von: Feinfinger am 29 Januar 2019, 20:50:01
Bei Portainer steht dann allerdings folgender Kommentar:Code AuswählenLast output cat: /alexa-fhem/config.json: No such file or directory cat: /alexa-fhem/config.json: No such file or directory alexa-port(undefined): FAILED;
und im alexa-fhem log kommt folgendesCode Auswählen
[1/29/2019, 6:32:44 AM] os.homedir()=/alexa-fhem
[1/29/2019, 6:32:44 AM] using config from /alexa-fhem/.alexa/config.json
Zitat von: justme1968 am 31 Januar 2019, 22:35:18
es gibt seit eben die version 0.5.16 von alexa-fhem.
neu ist die unterstützung von kontakt sensoren.
scheinbar ist amazon aber noch nicht ganz fertig damit. aktuell geht nur die anzeige in der alexa app. die abfrage per sprache meldet immer das das gerät nicht antwortet. das stimmt aber nicht. es wird genau die gleiche antwort geschickt wie bei abfrage über die app.
Zitat von: Paul am 31 Januar 2019, 23:52:33
Kann ich damit fragen "sind alle Fenster zu"
Alexa.Temp.Ein {
{alexaRoomTemperature()};
fhem("set Alexa.Temp Aus");
}
sub alexaRoomTemperature() {
my $wohn = (ReadingsVal("Th_Wohnzimmer_Weather", "measured-temp", ""));
$wohn =~ s/\./,/g;
my $schlaf = (ReadingsVal("HMS100T_311c", "temperature", ""));
$schlaf =~ s/\./,/g;
my $aussen = (ReadingsVal("netatmo_aussen", "temperature", ""));
$aussen =~ s/\./,/g;
my $humidity = (ReadingsVal("netatmo_wz", "humidity", 0));
$humidity =~ s/\./,/g;
my $titlevorlauf = ReadingsVal("Vorlauf", "temperature", "");
$titlevorlauf =~ s/\./,/g;
my $titleruecklauf = ReadingsVal("Ruecklauf", "Ruecklauf", "");
$titleruecklauf =~ s/\./,/g;
my $titlekurve = ReadingsVal("HKurve", "HKurve", "");
$titlekurve =~ s/\./,/g;
my $titlewater = ReadingsVal("WarmW.Temp.", "WarmW.Temp.", "");
$titlewater =~ s/\./,/g;
fhem("set ECHO_G000RA0XXXXXXXX speak Im Wohnhaus messe ich folgende Temperaturen. Wohnzimmer $wohn Luftfeuchte $humidity Prozent Grad Schlafzimmer $schlaf Grad Aussentemperatur $aussen Grad Vorlauf $titlevorlauf Grad Rücklauf $titleruecklauf Grad Warmwasser $titlewater Grad und die Heizkurve ist auf $titlekurve eingestellt");
}
Readings
alexaFHEM
stopped; failed to connect to fhem: 401: Authorization Required
sudo /usr/bin/alexa-fhem
alexaFHEM.ProxyConnection
error, Reverse Proxy replied with neither registered nor unregistered status: out: err:Bad owner or permissions on /opt/fhem/.ssh/config
alexaFHEM
running /usr/bin/alexa-fhem
alexaFHEM.ProxyConnection
error, Reverse Proxy replied with neither registered nor unregistered status: out: err:Bad owner or permissions on /opt/fhem/.ssh/config
Starting alexa-fhem ...
[2/1/2019, 8:48:35 PM] os.homedir()=/alexa-fhem
[2/1/2019, 8:48:35 PM] using config from /alexa-fhem/.alexa/config.json
*** CONFIG: parsed completely
[2/1/2019, 8:48:35 PM] this is alexa-fhem 0.5.16
[2/1/2019, 8:48:35 PM] connecting to FHEM ...
[2/1/2019, 8:48:35 PM] [FHEM] trying longpoll to listen for fhem events
[2/1/2019, 8:48:35 PM] [FHEM] starting longpoll: http://192.168.178.110:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1549050515783
[2/1/2019, 8:48:35 PM] Server listening on: http://:::3000 for direct connections
[2/1/2019, 8:48:35 PM] [FHEM] got csrfToken: csrf_136643621839439
[2/1/2019, 8:48:35 PM] [FHEM] Checking devices and attributes...
[2/1/2019, 8:48:35 PM] [FHEM] executing: http://192.168.178.110:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=csrf_136643621839439&XHR=1
[2/1/2019, 8:48:35 PM] [FHEM] executing: http://192.168.178.110:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_136643621839439&XHR=1
[2/1/2019, 8:48:35 PM] [FHEM] waiting for events ...
[2/1/2019, 8:48:35 PM] [FHEM] Fetching FHEM devices...
[2/1/2019, 8:48:35 PM] [FHEM] fetching: http://192.168.178.110:8083/fhem?cmd=jsonlist2%20alexa&fwcsrf=csrf_136643621839439&XHR=1
[2/1/2019, 8:48:35 PM] [FHEM] alexa device is alexa
[2/1/2019, 8:48:36 PM] [FHEM] executing: http://192.168.178.110:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.16%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_136643621839439&XHR=1
[2/1/2019, 8:48:36 PM] [FHEM] executing: http://192.168.178.110:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_136643621839439&XHR=1
*** FHEM: connected
[2/1/2019, 8:48:36 PM] [FHEM] got: 1 results
[2/1/2019, 8:48:36 PM] [FHEM] alexa: no service type detected
[2/1/2019, 8:48:36 PM] [FHEM] no device created for alexa (alexa)
Zitat von: justme1968 am 01 Februar 2019, 20:43:27Mein Wunsch wäre aber beim betreten eines Raums zu sagen "Alexa, Licht" und automatisch soll das Licht in dem entsprechenden Raum, der in dem der entsprechende Dot steht, angehen, aber eben nur in dem richtigen Raum.
nein. das gibt es im smart home api nicht. wenn du das wirklich willst geht das über einen custom skill.
aber nur für das licht brauchst du das nicht. dafür gibt es die gruppen in der alexa app.
alexa-fhem:
image: fhem/alexa-fhem:latest
restart: always
networks:
- fhem-network
ports:
- "3000:3000"
volumes:
- "./alexa-fhem/:/alexa-fhem/"
depends_on:
- "fhem"
defmod Gartenfenster KOPP_FC xx xxxx xx xx
attr Gartenfenster IODev CUL866
attr Gartenfenster alexaName Gartenrollo
attr Gartenfenster devStateIcon up:fts_shutter_up down:fts_shutter_down stop:fts_shutter_updown top:fts_shutter_10 bottom:fts_shutter_90
attr Gartenfenster eventMap up:up down:down stop:stop top:top bottom:bottom
attr Gartenfenster group Rolladen
attr Gartenfenster model Blind_8080_02
attr Gartenfenster room 3_EG,Alexaroom
attr Gartenfenster webCmd top:up:stop:down:bottom
[2019-2-2 12:23:51] [FHEM] got: 2 results
[2019-2-2 12:23:51] [FHEM] Gartenfenster: no service type detected
[2019-2-2 12:23:51] [FHEM] no device created for Gartenfenster (KOPP_FC)
[2019-2-2 12:23:51] [FHEM] Stehlampe is switch
[2019-2-2 12:23:51] [FHEM] Stehlampe has
[2019-2-2 12:23:51] [FHEM] On [state;on,off]
[2019-02-02 12:23:51 caching: Stehlampe-state: off
Zitat von: accessburn am 28 Januar 2019, 16:18:00Ich habe bei den LaCrosse Sensoren in den Attributen eingestellt (genericdevicetyp), das es ein Thermostat ist, dann den alexa Namen festgelegt, dann bei dem alexa Service ein add des devices durchgeführt und dann den alexa Service nochmal neu gestartet.
Also eine Gruppe "Büro" hab ich, aber ich besitze kein Gerät namens Temperatur. Das sind nur LaCrosse-Termostate die ich in FHEM habe, irgendwie fehlt mir der Schritt dazwischen.
Zitat von: RPunkt am 02 Februar 2019, 13:09:28Habe meine Rollos als "blind" in genericdevicetyp eingegeben bzw gesetzt.
Hallo justme1968,
wie binde ich den Rolladen denn als Schalter ein?
Erzeuge ich mir einen DUMMY, der dann Ein und aus mit rauf- und runterfahren "verlinkt"?
Gruss RPunkt
/usr/bin/env: »node": Datei oder Verzeichnis nicht gefunden
ln -s /usr/local/bin/node /usr/bin/node
node --version
Die Anwendung »node« ist momentan nicht installiert. Sie können sie durch folgende Eingabe installieren:
sudo apt install nodejs-legacy
sudo apt-get install nodejs npm
keinen Fehler ausgeworfen und alles installiert hatte/usr/local/lib/node_modules/alexa-fhem/lib/cli.js:15
let startupPromise = new Promise(function (resolve) {
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/alexa-fhem/bin/alexa:17:1)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
/usr/local/lib/node_modules/alexa-fhem/lib/cli.js:15
let startupPromise = new Promise(function (resolve) {
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/alexa-fhem/bin/alexa:17:1)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
Zitat von: der.einstein am 01 Februar 2019, 17:24:17Sorry, dass ich nicht mit komplizierten Code-Schnippseln dienen kann ;-)
Hallo FHemler,
habe gestern nach längerer Pause mich wieder mit der Materie beschäftigt und mit dem FHEM Connector meine Alexa 1. Generation integriert.
Bin begeistert: "Alexa, schaltet die Stehlampe ein!" --> läuft!
Daher Riesendankeschön an die Schöpfer!
Was ich aber nicht hinbekomme, ist, meine Squeezeboxen (LMS) einzubinden. Im WiKi steht ja, dass man genericDeviceType media und homebridgeMapping anlegen soll. Aber "playback" gibts da ja nicht. Nur play, Pause, stop, next, previous als set Befehle einzeln.
Was kann ich da machen?
Dankeschön.
Gesendet von meinem LG-D855 mit Tapatalk
node --version
nodejs --version
Zitat von: sash.sc am 02 Februar 2019, 13:15:00Hallo sash.sc,
Habe meine Rollos als "blind" in genericdevicetyp eingegeben bzw gesetzt.
Zitat von: der.einstein am 02 Februar 2019, 15:41:27
Sorry, dass ich nicht mit komplizierten Code-Schnippseln dienen kann ;-)
Falls ihr mir nicht weiterhelfen könnt: Wo kann ich nachschaun bzw. in welchem Forum-Thread nachfragen?
Danke
Gesendet von meinem LG-D855 mit Tapatalk
Zitat von: MadMax-FHEM am 02 Februar 2019, 16:54:17Danke MadMax,
Vielleicht ist das eher zielführend für deine Aufgabe: https://forum.fhem.de/index.php/topic,82631.0.html
In dem Thread wird auch (in der Mitte mal und gegen Ende) erläutert, wie man alexa-fhem und das echodevice "kombinieren" kann...
Gruß, Joachim
{
"connections" : [
{
"port" : "8083",
"server" : "127.0.0.1",
"filter" : "alexaName=..*",
"webname" : "fhem",
"uid" : xxx,
"name" : "FHEM"
}
],
"sshproxy" : {
"ssh" : "/usr/bin/ssh",
"description" : "FHEM Connector"
}
"alexa": {
"port": 3000,
"name": "Alexa FHEM",
"keyFile": "./key.pem",
"certFile": "./cert.pem",
"nat-pmp": "",
"nat-upnp": false,
"applicationId": "xxx",
"oauthClientID": "xxx"
},
"connections": [
{
"name": "FHEM",
"server": "127.0.0.1",
"port": "8083",
"webname": "fhem",
"filter": "room=Z_System->alexa"
}
]
}
{
"connections": [{
"port": "8083",
"server": "127.0.0.1",
"filter": "alexaName=..*",
"webname": "fhem",
"uid": "xxx",
"name": "FHEM"
}],
"sshproxy": {
"ssh": "/usr/bin/ssh",
"description": "FHEM Connector"
},
"alexa": {
"port": 3000,
"name": "Alexa FHEM",
"keyFile": "./key.pem",
"certFile": "./cert.pem",
"nat-pmp": "",
"nat-upnp": false,
"applicationId": "xxx",
"oauthClientID": "xxx"
}
}
Zitat von: obelix221 am 03 Februar 2019, 11:50:38
P.S. Gibt es eine Rückbau-Anleitung für die "alte" Lösung?
Zitat von: hanswerner1 am 03 Februar 2019, 17:48:44
Ich bin auch total begeistert vom neuen Modul, reagiert viel schneller wie die alte Lösung.
Das würde mich auch sehr interessieren.
Zitat von: gvzdus am 03 Februar 2019, 18:17:30
Ich glaube, es ging eher darum, die alte Lösung abzubauen. "Rück" hört sich halt schöner als "ab" an.
Zitat von: gvzdus am 03 Februar 2019, 18:17:30
Ich glaube, es ging eher darum, die alte Lösung abzubauen. "Rück" hört sich halt schöner als "ab" an.
Zitat von: hanswerner1 am 03 Februar 2019, 18:36:16
Genau darum ging es, die alte Alexa-fhem Installation zu deinstallieren und den ganzen Amazon Kram (Landa usw.) der für die alte Version gebraucht wurde zu löschen.
Zitat von: justme1968 am 02 Februar 2019, 19:34:52
bitte schau dir doch noch mal an wie das homebridgeMapping funktioniert. du kannst so ziemlich jede kombination aus readings und kommandos konfigurieren.
wie das steht an mehreren stellen im wiki.
ttr SB_PLAYER_a02c362586b1 alexaName Küche
attr SB_PLAYER_a02c362586b1 genericDeviceType media
attr SB_PLAYER_a02c362586b1 homebridgeMapping PlaybackController:playback,values=play=Play;;pause=Pause;;stop=Stop;;previous=Previous;;next=Next
Zitat von: obelix221 am 04 Februar 2019, 22:13:23
Donate done..!
Echt große Klasse das Modul....es schnurrt nur so!
Thx
obelix
Zitattopped; failed to connect to fhem: 401: Authorization Required.
Zitat von: justme1968 am 10 Februar 2019, 17:28:35
i will check and try to add the us store on the next skill release.
eventMap on:Ein off:Aus
Internals:
FUUID 5c52c44e-f33f-27bd-a1ca-b79a871ad350a5e7
NAME Alexa.Temp
NR 2863
STATE Aus
TYPE dummy
READINGS:
2019-02-08 09:52:52 state off
Attributes:
alexaName alexatemperatur
alexaRoom alexaroom
devStateIcon Aus:rc_RED:Ein Ein:rc_GREEN:Aus
eventMap on:Ein off:Aus
genericDeviceType switch
group Automatik
icon audio_volume_high
room alexaroom
setList on off
webCmd Ein:Aus
define EG_Hausgang_Heizkoerper HMCCUDEV 000A17099E3CF9
attr EG_Hausgang_Heizkoerper IODev egccu2
attr EG_Hausgang_Heizkoerper alexaName Hausgangtemperatur
attr EG_Hausgang_Heizkoerper alexaRoom Hausgang
attr EG_Hausgang_Heizkoerper ccureadingfilter ^ACTUAL_TEMPERATURE|^BOOST_MODE|^SET_POINT_MODE|^SET_POINT_TEMPERATURE|^LEVEL|^WINDOW_STATE
attr EG_Hausgang_Heizkoerper ccureadingname 1.LEVEL:+valve_position;;1.ACTUAL_TEMPERATURE:+measured-temp
attr EG_Hausgang_Heizkoerper ccuscaleval LEVEL:0:1:0:100
attr EG_Hausgang_Heizkoerper controldatapoint 1.SET_POINT_TEMPERATURE
attr EG_Hausgang_Heizkoerper event-on-change-reading .*
attr EG_Hausgang_Heizkoerper eventMap /datapoint 1.BOOST_MODE true:Boost/datapoint 1.CONTROL_MODE 0:Auto/datapoint 1.CONTROL_MODE 1:Manual/datapoint 1.CONTROL_MODE 2:Holiday/datapoint 1.SET_POINT_TEMPERATURE 4.5:off/datapoint 1.SET_POINT_TEMPERATURE 30.5:on/
attr EG_Hausgang_Heizkoerper genericDeviceType thermostat
attr EG_Hausgang_Heizkoerper group Heizung
attr EG_Hausgang_Heizkoerper homebridgeMapping TargetTemperature=1.SET_POINT_TEMPERATURE::1.SET_POINT_TEMPERATURE,minValue=5,maxValue=30,minStep=0.5,cmd=control,nocache=true CurrentTemperature=1.ACTUAL_TEMPERATURE CurrentHeatingCoolingState=1.SET_POINT_MODE,values=Manual:1;;Holiday:2;;Auto:0
attr EG_Hausgang_Heizkoerper icon sani_heating
attr EG_Hausgang_Heizkoerper room Alexa,EGHausgang,Z-Technik-IP
attr EG_Hausgang_Heizkoerper stateFormat Temperatur: 1.ACTUAL_TEMPERATURE° Gewuenscht: 1.SET_POINT_TEMPERATURE° Ventil: valve_position%
attr EG_Hausgang_Heizkoerper statedatapoint 1.SET_POINT_TEMPERATURE
attr EG_Hausgang_Heizkoerper stripnumber 1
attr EG_Hausgang_Heizkoerper substexcl control
attr EG_Hausgang_Heizkoerper substitute SET_POINT_TEMPERATURE!#0-4.5:off,#30.5-40:on;;WINDOW_STATE!(0|false):closed,(1|true):open;;SET_POINT_MODE!0:Auto,1:Manual,2:Holiday
attr EG_Hausgang_Heizkoerper webCmd :
[2/12/2019, 9:47:00 AM] [FHEM] EG_Hausgang_Heizkoerper is thermostat
[2/12/2019, 9:47:00 AM] [FHEM] EG_Hausgang_Heizkoerper has
[2/12/2019, 9:47:00 AM] [FHEM] Brightness [pct]
[2/12/2019, 9:47:00 AM] [FHEM] CurrentHeatingCoolingState [1.SET_POINT_MODE]
[2/12/2019, 9:47:00 AM] [FHEM] TargetTemperature [1.SET_POINT_TEMPERATURE]
[2/12/2019, 9:47:00 AM] [FHEM] CurrentTemperature [1.ACTUAL_TEMPERATURE]
2019-02-12 09:47:00 caching: EG_Hausgang_Heizkoerper-1.SET_POINT_MODE: 1
2019-02-12 09:47:00 caching: EG_Hausgang_Heizkoerper-1.ACTUAL_TEMPERATURE: 21.9
clear TargetTemperature=1.SET_POINT_TEMPERATURE::1.SET_POINT_TEMPERATURE,minValue=5,maxValue=30,minStep=0.5,cmd=control,nocache=true CurrentTemperature=1.ACTUAL_TEMPERATURE CurrentHeatingCoolingState=1.SET_POINT_MODE,values=Manual:1;Holiday:2;Auto:0
[2/12/2019, 10:08:56 AM] [FHEM] EG_Hausgang_Heizkoerper is thermostat
[2/12/2019, 10:08:56 AM] [FHEM] EG_Hausgang_Heizkoerper has
[2/12/2019, 10:08:56 AM] [FHEM] TargetTemperature [1.SET_POINT_TEMPERATURE]
[2/12/2019, 10:08:56 AM] [FHEM] CurrentTemperature [1.ACTUAL_TEMPERATURE]
[2/12/2019, 10:08:56 AM] [FHEM] CurrentHeatingCoolingState [1.SET_POINT_MODE]
2019-02-12 10:08:56 caching: EG_Hausgang_Heizkoerper-1.ACTUAL_TEMPERATURE: 21.7
2019-02-12 10:08:56 caching: EG_Hausgang_Heizkoerper-1.SET_POINT_MODE: Manual
[2/12/2019, 10:08:56 AM] [FHEM] EG_Bad_Heizkoerper is thermostat
[2/12/2019, 10:08:56 AM] [FHEM] EG_Bad_Heizkoerper has
[2/12/2019, 10:08:56 AM] [FHEM] TargetTemperature [desired-temp]
[2/12/2019, 10:08:56 AM] [FHEM] Custom Actuation [ValvePosition]
[2/12/2019, 10:08:56 AM] [FHEM] CurrentTemperature [measured-temp-offset]
[2/12/2019, 10:08:56 AM] [FHEM] CurrentHeatingCoolingState [undefined]
2019-02-12 10:08:56 caching: EG_Bad_Heizkoerper-desired-temp: 21.0
2019-02-12 10:08:56 caching: EG_Bad_Heizkoerper-ValvePosition: 52
{"endpointId":"5c462cc1-f33f-dea7-2fdd-ddeb12c87fe47862","manufacturerName":"FHEMHMCCUDEV","modelName":"FHEM<unknown>","version":"<unknown>","friendlyName":"hausgangtemperatur","description":"n: EG_Hausgang_Heizkoerper, r: hausgang","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.ThermostatController","version":"3","properties":{"supported":[{"name":"targetSetpoint"}],"configuration":{"supportsScheduling":false},"proactivelyReported":false,"retrievable":true}},{"type":"AlexaInterface","interface":"Alexa.TemperatureSensor","version":"3","properties":{"supported":[{"name":"temperature"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["THERMOSTAT"],"cookie":{"device":"EG_Hausgang_Heizkoerper","fuuid":"5c462cc1-f33f-dea7-2fdd-ddeb12c87fe47862"}}
2019.02.12 17:44:28 2: alexa_ng: starting alexa-fhem: /usr/local/lib/node_modules/alexa-fhem/bin/alexa -c /opt/fhem -a xx:xx
2019.02.12 17:44:28 3: alexa_ng: starting
2019.02.12 17:44:28 3: alexa_ng: using logfile: ./log/alexa-2019-02-12.log
2019.02.12 17:44:28 3: alexa_ng: read: end of file reached while sysread
2019.02.12 17:44:28 3: alexa_ng: stopped
jay@ubuntu:~$ ps -ef | egrep '(alexa|ssh)'
root 1122 1 0 16:54 ? 00:00:00 /usr/sbin/sshd -D
jay 2548 1 0 16:55 ? 00:00:00 /usr/bin/ssh-agent -s
jay 3722 3591 0 17:28 pts/1 00:00:00 egrep --color=auto (alexa|ssh)
jay@ubuntu:~$ ps -ef | egrep '(alexa|ssh)'
root 1113 1 0 19:51 ? 00:00:00 /usr/sbin/sshd -D
root 2558 1113 0 19:53 ? 00:00:00 sshd: jay [priv]
jay 2607 2558 0 19:53 ? 00:00:00 sshd: jay@pts/1
jay 2732 2608 0 20:01 pts/1 00:00:00 egrep --color=auto (alexa|ssh)
2019.02.12 20:03:52 3: alexa: starting
2019.02.12 20:03:52 3: alexa: using logfile: ./log/alexa-2019-02-12.log
2019.02.12 20:03:52 3: alexa: read: end of file reached while sysread
2019.02.12 20:03:52 3: alexa: stopped
ZitatSeither läuft es wenigstens.
/usr/local/bin/alexa-fhem -> /usr/local/lib/node_modules/alexa-fhem/bin/alexa
+ alexa-fhem@0.5.17
updated 1 package in 8.308s
Zitat von: justme1968 am 12 Februar 2019, 20:29:48
lösch mal das alexaFHEM-cmd attribut. /usr/local/bin/alexa-fhem sollte ganz normal im pfad sein
alexa-fhem not installed. install with 'sudo npm install -g alexa-fhem'.
jay@ubuntu:/usr/local/bin$ alexa-fhem
[2019-2-12 21:52:08] os.homedir()=/home/jay
[2019-2-12 21:52:08] using config from /home/jay/.alexa/config.json
[2019-2-12 21:52:08] Couldn't find a config file at '/home/jay/.alexa/config.json'. Look at config-sample.json for an example.
Zitat von: justme1968 am 12 Februar 2019, 21:55:16
mit den parametern aus dem log. -c ...
alexa-fhem -c
[2019-2-12 22:00:43] os.homedir()=/home/jay
[2019-2-12 22:00:43] using config from /home/jay/.alexa/config.json
[2019-2-12 22:00:43] Couldn't find a config file at '/home/jay/.alexa/config.json'. Look at config-sample.json for an example.
[2019-2-12 22:12:23] [FHEM] 401: Authorization Required
[2019-2-12 22:12:23] [FHEM] There was a problem connecting to FHEM
[2019-2-12 22:12:23] [FHEM] 401: Authorization Required
*** FHEM: connection failed: 401: Authorization Required
Zitat von: justme1968 am 13 Februar 2019, 08:29:21
das modul macht nichts anderes als das alexa-fhem executable zu starten. eigentlich werden alle fehler zumindest ausgegeben. ich habe leider aktuell keine ahnung warum es sich beim start aus fhem heraus sofort beendet. irgendetwas passt bei deiner installation noch nicht.
(node:1073) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpd ir() instead.
Zitat von: teufelchen am 15 Februar 2019, 05:54:53
Hallo,
ich versuche gerade die Alexa Steuerung zu installieren un scheitere schon am ersten Punkt, Alexa-fhem aus dem offiziellen Repository zu installieren.
Ich habe ein aktuelles System auf einen Raspberry Pi 3 Model B+
node --version gibt mir v8.11.1 zurück.
Wenn ich nun sudo npm install -g alexa-fhem ausführe, bekomme ich als FehlermeldungCode Auswählen(node:1073) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpd ir() instead.
Wie ändere ich nun von os.tmpDir () in os.tmpd ir ()?
Oder was muss ich machen?
pi@raspberrypi:~ $ sudo npm install -g alexa-fhem
(node:7952) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
/usr/local/bin/alexa-fhem -> /usr/local/lib/node_modules/alexa-fhem/bin/alexa
alexa-fhem@0.5.17 /usr/local/lib/node_modules/alexa-fhem
├── readline-sync@1.4.9
├── commander@2.8.1 (graceful-readlink@1.0.1)
├── chalk@1.1.3 (escape-string-regexp@1.0.5, ansi-styles@2.2.1, supports-color@2.0.0, has-ansi@2.0.0, strip-ansi@3.0.1)
├── ws@6.1.3 (async-limiter@1.0.0)
└── request@2.88.0 (aws-sign2@0.7.0, forever-agent@0.6.1, tunnel-agent@0.6.0, oauth-sign@0.9.0, is-typedarray@1.0.0, caseless@0.12.0, safe-buffer@5.1.2, aws4@1.8.0, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.2, performance-now@2.1.0, qs@6.5.2, uuid@3.3.2, combined-stream@1.0.7, mime-types@2.1.22, tough-cookie@2.4.3, form-data@2.3.3, http-signature@1.2.0, har-validator@5.1.3)
pi@raspberrypi:~ $
Define alexa alexa
alexaFHEM.ProxyConnection error; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
sudo chmod 755 /opt/fhem
sudo chown fhem /opt/fhem
Zitat von: teufelchen am 15 Februar 2019, 10:31:35
Hallo,
alexa in FHEM deaktiviert
Über SSH beide Befehle eingegeben.
Raspberry neu gebootet und Alexa Key ist da.
Super Danke.
Aber was ist mit den verbastelten Homedir-Rechten?
Angemeldet bin ich als Benutzer pi am Raspberry.
Und Raspberry ist komplett neu installiert Anfang Februar.
alexaFHEM.ProxyConnection
error; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
pi@raspberrypi:/opt/fhem/FHEM $ node -v
v8.15.0
pi@raspberrypi:/opt/fhem/FHEM $ npm -v
6.4.1
sudo ls -ld /opt/fhem
Zitat von: gvzdus am 15 Februar 2019, 14:37:20
Dann mach doch mal bitte:Code Auswählensudo ls -ld /opt/fhem
und poste das Ergebnis, um mal den Status vorher zu sehen. Es hat keinen Sinn, mit den falschen (zu weitgehenden) Rechten weiterzumachen: SSH weigert sich zu starten, wenn der private (geheime) Key für andere Benutzer lesbar oder manipulierbar wäre.
P.S. Wie hast Du denn FHEM installiert? Nach welcher Anleitung?
sudo apt-get -f install && sudo apt-get -y install perl-base libdevice-serialport-perl libwww-perl libio-socket-ssl-perl libcgi-pm-perl libjson-perl sqlite3 libdbd-sqlite3-perl libtext-diff-perl libtimedate-perl libmail-imapclient-perl libgd-graph-perl libtext-csv-perl libxml-simple-perl liblist-moreutils-perl ttf-liberation libimage-librsvg-perl libgd-text-perl libsocket6-perl libio-socket-inet6-perl libmime-base64-perl libimage-info-perl libusb-1.0-0-dev libnet-server-perl
sudo wget http://fhem.de/fhem-5.8.deb && sudo dpkg -i fhem-5.8.deb
chown -R fhem: /opt/fhem
chown -R fhem:dialout /opt/fhem
pi@raspberrypi:~ $ sudo ls -ld /opt/fhem
drwxrwxrwx 13 fhem dialout 4096 Feb 15 13:44 /opt/fhem
pi@raspberrypi:~ $ cd /opt/fhem/
pi@raspberrypi:/opt/fhem $ ls -al
insgesamt 1090120
drwxrwxrwx 13 fhem dialout 4096 Feb 15 13:44 .
drwxr-xr-x 9 root root 4096 Feb 15 11:20 ..
drwx------ 2 fhem dialout 4096 Feb 15 13:38 .alexa
-rw-r--r-- 1 fhem dialout 311 Feb 15 13:44 alexa-fhem.cfg
-rw-r--r-- 1 fhem dialout 311 Feb 15 13:37 alexa-fhem.cfg.previous
-rwxr-xr-x 1 fhem dialout 278762 Feb 15 12:23 CHANGED
-rwxr-xr-x 1 fhem dialout 39624 Feb 15 12:23 configDB.pm
drwxr-xr-x 40 fhem dialout 4096 Mär 25 2017 contrib
-rwxr-xr-x 1 pi pi 2183 Jul 4 2017 db.conf
drwxr-xr-x 3 fhem dialout 4096 Mär 25 2017 demolog
drwxr-xr-x 4 fhem dialout 4096 Mai 22 2018 docs
drwxr-xr-x 6 fhem dialout 20480 Feb 15 13:44 FHEM
-rwxr-xr-x 1 fhem dialout 65517 Feb 15 13:44 fhem.cfg
-rwxr-xr-x 1 pi pi 232266 Jul 4 2017 fhem.cfg.de
-rwxr-xr-x 1 fhem dialout 19987 Jän 11 14:00 fhem.cfg.demo
-rwxr-xr-x 1 pi pi 1115232256 Feb 15 13:02 fhem.db
-rwxr-xr-x 1 fhem dialout 32768 Feb 15 14:39 fhem.db-shm
-rwxr-xr-x 1 fhem dialout 0 Feb 15 13:02 fhem.db-wal
-rwxr-xr-x 1 fhem dialout 155902 Feb 15 12:23 fhem.pl
drwxr-xr-x 3 pi pi 4096 Mär 27 2017 icons
drwxr-xr-x 2 fhem dialout 20480 Feb 15 12:28 log
-rwxr-xr-x 1 pi pi 20611 Jul 4 2017 main.html
-rwxr-xr-x 1 fhem dialout 39599 Feb 15 12:23 MAINTAINER.txt
-rwxr-xr-x 1 fhem dialout 910 Jul 4 2017 README_DEMO.txt
drwxr-xr-x 8 fhem dialout 4096 Jän 11 14:00 restoreDir
drwx------ 2 fhem dialout 4096 Feb 15 12:43 .ssh
drwxr-xr-x 2 pi pi 4096 Jul 4 2017 unused
drwxr-xr-x 12 fhem dialout 4096 Mär 30 2017 www
set <alexa> clearProxyCredentials
ausprobiert und alexa gelöscht und neu installiert und neu angelegt und.... ...YESSSSSSSS. Alles klappt.
alexaFHEM running /usr/local/bin/alexa-fhem
alexaFHEM.ProxyConnection SSH connected
alexaFHEM.bearerToken crypt:123456789xxxx
[24.2.2019, 10:11:39] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[24.2.2019, 10:11:39] os.homedir()=/opt/fhem
[24.2.2019, 10:11:39] this is alexa-fhem 0.5.21
[24.2.2019, 10:11:39] connecting to FHEM ...
[24.2.2019, 10:11:39] [FHEM] trying longpoll to listen for fhem events
[24.2.2019, 10:11:39] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1550999499752
[24.2.2019, 10:11:39] [FHEM] got csrfToken:
[24.2.2019, 10:11:39] [FHEM] Checking devices and attributes...
[24.2.2019, 10:11:39] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[24.2.2019, 10:11:39] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[24.2.2019, 10:11:39] [FHEM] waiting for events ...
[24.2.2019, 10:11:39] [FHEM] Fetching FHEM devices...
[24.2.2019, 10:11:39] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
*** FHEM: connected
[24.2.2019, 10:11:39] [FHEM] got: 0 results
[24.2.2019, 10:11:39] [FHEM] alexa device is alexa
[24.2.2019, 10:11:39] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.21%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[24.2.2019, 10:11:39] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[24.2.2019, 10:11:39] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[24.2.2019, 10:11:39] Server listening on: http://127.0.0.1:44535 for proxy connections
[24.2.2019, 10:11:39] *** SSH: checking proxy configuration
[24.2.2019, 10:11:39] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[24.2.2019, 10:11:39] Passed config: {"connections":[{"port":"8083","webname":"fhem","filter":"alexaName=..*","uid":999,"server":"127.0.0.1","name":"FHEM"}],"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":44535}}
[24.2.2019, 10:11:39] sshautoconf: SSH key seems to exist
[24.2.2019, 10:11:40] sshautoconf: Our SSH key is known at the reverse proxy, good!
[24.2.2019, 10:11:40] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[24.2.2019, 10:11:40] BearerToken '...B3A7E' read from alexa
[24.2.2019, 10:11:40] 39_alexa.pm is new version: true
[24.2.2019, 10:11:40] sshautoconf: completed successfully
[24.2.2019, 10:11:40] *** SSH: proxy configuration set up done
[24.2.2019, 10:11:40] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[24.2.2019, 10:11:40] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[24.2.2019, 10:11:40] Starting SSH with -R 1234:127.0.0.1:44535 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[24.2.2019, 10:11:40] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[24.2.2019, 10:11:40] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[24.2.2019, 10:11:40] *** SSH: proxy connection established
[24.2.2019, 10:11:40] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
(node:3979) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpd/usr/local/bin/alexa-fhem -> /usr/local/lib/node_modules/alexa-fhem/bin/alexa
alexa-fhem@0.5.21 /usr/local/lib/node_modules/alexa-fhem
├── commander@2.19.0
├── readline-sync@1.4.9
├── ws@6.1.4 (async-limiter@1.0.0)
├── chalk@2.4.2 (escape-string-regexp@1.0.5, supports-color@5.5.0, ansi-styles@3.2.1)
└── request@2.88.0 (aws-sign2@0.7.0, forever-agent@0.6.1, oauth-sign@0.9.0, tunnel-agent@0.6.0, caseless@0.12.0, is-typedarray@1.0.0, safe-buffer@5.1.2, aws4@1.8.0, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.2, performance-now@2.1.0, qs@6.5.2, uuid@3.3.2, combined-stream@1.0.7, mime-types@2.1.22, tough-cookie@2.4.3, form-data@2.3.3, http-signature@1.2.0, har-validator@5.1.3)
pi@fhempi:~ $ (node:3979) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
pi@raspberrypi:~ $ sudo npm install -g alexa-fhem
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/alexa-fhem
npm ERR! path /usr/local/lib/node_modules/alexa-fhem
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/usr/local/lib/node_modules/alexa-fhem'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-02-24T10_33_47_319Z-debug.log
2/27/2019, 11:14:06 PM] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2/27/2019, 11:14:14 PM] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2/27/2019, 11:14:14 PM] os.homedir()=/opt/fhem
[2/27/2019, 11:14:14 PM] this is alexa-fhem 0.5.21
[2/27/2019, 11:14:14 PM] connecting to FHEM ...
[2/27/2019, 11:14:14 PM] [FHEM] trying longpoll to listen for fhem events
[2/27/2019, 11:14:14 PM] [FHEM] starting longpoll: https://127.0.0.1:8085/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1551305654386
Zitat von: link611 am 27 Februar 2019, 23:25:13
Hallali,
Ich brauche jetzt doch nochmal Hilfe:
Bin auf den fhem/fhem Docker Container umgestiegen und Versuche meine alte Alexa Integration durch die neue zu ersetzen.
Habe im fhem Verzeichnis die default alexa-fhem.cfg (nur Port von fhem angepasst) aber bekomme keine readings. Nur dass Alexa läuft.
Kann mir hier jemand helfen?
Das hier erhalte ich im Log:Code Auswählen2/27/2019, 11:14:06 PM] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2/27/2019, 11:14:14 PM] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2/27/2019, 11:14:14 PM] os.homedir()=/opt/fhem
[2/27/2019, 11:14:14 PM] this is alexa-fhem 0.5.21
[2/27/2019, 11:14:14 PM] connecting to FHEM ...
[2/27/2019, 11:14:14 PM] [FHEM] trying longpoll to listen for fhem events
[2/27/2019, 11:14:14 PM] [FHEM] starting longpoll: https://127.0.0.1:8085/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1551305654386
2019.02.28 08:36:44 2: alexa: starting alexa-fhem: /usr/bin/alexa-fhem -c ./alexa-fhem.cfg -a <user im Klartext>:<Passwort im Klartext> -s
Zitat von: justme1968 am 28 Februar 2019, 10:33:56
verwendet dein table port auch https ?
wenn du eine aktuelles alexa modul hast werden die daten nur bei verbose 5 im klartext geloggt.
Zitat von: justme1968 am 28 Februar 2019, 11:23:09
und im alexa device ?
Zitat von: justme1968 am 28 Februar 2019, 12:07:14
ja. das ist absicht. aber das log device sollte automatisch in hidden landen.
kann es sein das dein alexa modul nicht aktuell ist?
das würde auch den klartext im log erklären.
Zitat von: justme1968 am 28 Februar 2019, 12:18:44
das ist ja uralt...
du musst CoProcess.pm ebenfalls installieren.
Zitat von: justme1968 am 28 Februar 2019, 10:33:56
wenn du eine aktuelles alexa modul hast werden die daten nur bei verbose 5 im klartext geloggt.
Zitat von: essera am 09 März 2019, 01:07:22
Wurde der Connector aus der Docker Umgebung schon mal erfolgreich betrieben/getestet ?
Zitat von: Loredo am 09 März 2019, 08:20:02Ich habe einen Dual Stack Anschluss mit fester IPV4 Adresse und IPV6.
Nachtrag: Hab nochmal nachgesehen, der Vereinsserver macht auch nativ IPv6. Trotzdem wird aus deinem Docker Image heraus nur IPv4 gemacht und somit kommt keine Verbindung zu stande, weil der IPv4 Stack gar nicht hochgefahren ist.
Zitat von: essera am 09 März 2019, 14:11:24
Habe ich das richtig verstanden, dass der Vereinsserver nur eine IPV6 Verbindung akzeptiert ?
Zitat von: essera am 09 März 2019, 14:11:24
Ich habe noch mal nachgeschaut und hatte als Ansatz gefunden ob es evtl. an den nicht gemappten Ports liegt.
Zitat von: essera am 09 März 2019, 14:11:24
In welche Richtung mache ich am besten weiter ?
*** CONFIG: parsed completely
[2019-3-12 16:23:50] os.homedir()=/opt/fhem
[2019-3-12 16:23:50] this is alexa-fhem 0.5.24
[2019-3-12 16:23:50] connecting to FHEM ...
[2019-3-12 16:23:50] [FHEM] trying longpoll to listen for fhem events
[2019-3-12 16:23:50] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1552404230471
[2019-3-12 16:23:50] [FHEM] got csrfToken:
[2019-3-12 16:23:50] [FHEM] Checking devices and attributes...
[2019-3-12 16:23:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-3-12 16:23:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-3-12 16:23:50] [FHEM] waiting for events ...
[2019-3-12 16:23:50] [FHEM] Fetching FHEM devices...
[2019-3-12 16:23:50] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-3-12 16:23:50] [FHEM] alexa device is alexa
[2019-3-12 16:23:50] [FHEM] mappings for alexa: {}
[2019-3-12 16:23:50] [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
[2019-3-12 16:23:50] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-3-12 16:23:50] [FHEM] value2homekit: { rot: '0', 'grün': '128', blau: '200' }
[2019-3-12 16:23:50] [FHEM] value2homekit: { rot: '0', 'grün': '120', blau: '220' }
[2019-3-12 16:23:50] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-3-12 16:23:50] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-3-12 16:23:50] [FHEM] value2homekit: { auf: '100', zu: '0' }
[2019-3-12 16:23:50] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-3-12 16:23:50] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-3-12 16:23:50] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-3-12 16:23:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.24%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-3-12 16:23:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-3-12 16:23:50] perfectOfVerb:
[2019-3-12 16:23:50] { stelle: 'gestellt',
schalte: 'geschaltet',
'färbe': 'gefärbt',
mach: 'gemacht' }
[2019-3-12 16:23:50] verbsOfIntent:
[2019-3-12 16:23:50] [ OnIntent: [ 'schalte' ],
prozentIntent: [ 'stelle' ],
HueIntent: [ 'stelle' ],
HueIntentB: [ 'färbe' ],
SaturationIntent: [ 'stelle' ],
SaturationIntentB: [ 'sättige' ],
TargetPositionIntent: [ 'mach' ],
gradIntent: [ 'stelle' ] ]
[2019-3-12 16:23:50] characteristicsOfIntent:
[2019-3-12 16:23:50] { OnIntent: [ 'On' ],
prozentIntent: [ 'Brightness', 'TargetPosition', 'Volume' ],
HueIntent: [ 'Hue' ],
HueIntentB: [ 'Hue' ],
SaturationIntent: [ 'Saturation' ],
SaturationIntentB: [ 'Saturation' ],
TargetPositionIntent: [ 'TargetPosition' ],
gradIntent: [ 'TargetTemperature' ] }
[2019-3-12 16:23:50] prefixOfIntent:
[2019-3-12 16:23:50] { OnIntent: undefined,
prozentIntent: 'auf',
HueIntent: 'auf',
HueIntentB: undefined,
SaturationIntent: 'auf',
SaturationIntentB: undefined,
TargetPositionIntent: undefined,
gradIntent: 'auf' }
[2019-3-12 16:23:50] suffixOfIntent:
[2019-3-12 16:23:50] { OnIntent: undefined,
prozentIntent: 'prozent',
HueIntent: undefined,
HueIntentB: undefined,
SaturationIntent: undefined,
SaturationIntentB: undefined,
TargetPositionIntent: undefined,
gradIntent: 'grad' }
[2019-3-12 16:23:50] alexaTypes:
[2019-3-12 16:23:50] { light: [ 'licht', 'lampen' ],
blind:
[ 'rolladen',
'rolläden',
'jalousie',
'jalousien',
'rollo',
'rollos' ] }
[2019-3-12 16:23:50] roomOfEcho:
[2019-3-12 16:23:50] {}
[2019-3-12 16:23:50] fhemIntents:
[2019-3-12 16:23:50] { FHEMgutenMorgenIntent: 'gutenMorgen',
FHEMguteNachtIntent: 'guteNacht' }
[2019-3-12 16:23:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-3-12 16:23:50] Server listening on: http://127.0.0.1:40509 for proxy connections
[2019-3-12 16:23:50] *** SSH: checking proxy configuration
[2019-3-12 16:23:50] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=/opt/fhem/alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-3-12 16:23:50] Passed config: {"connections":[{"uid":999,"server":"127.0.0.1","name":"FHEM","webname":"fhem","port":"8083","filter":"alexaName=..*"}],"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":40509}}
[2019-3-12 16:23:50] sshautoconf: SSH key seems to exist
[2019-3-12 16:23:52] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-3-12 16:23:52] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
*** FHEM: connected
[2019-3-12 16:23:52] [FHEM] got: 6 results
[2019-3-12 16:23:52] [FHEM] detected HUEDevice
[2019-3-12 16:23:52] [FHEM] mappings for HUEDevice18: { On: { reading: 'onoff', valueOff: '0', cmdOn: 'on', cmdOff: 'off' },
Brightness:
{ reading: 'bri',
cmd: 'pct',
delay: true,
reading2homekit: [Function: bound ] },
colormode: { reading: 'colormode' },
xy: { reading: 'xy' } }
[2019-3-12 16:23:52] [FHEM] HUEDevice18 is light
[2019-3-12 16:23:52] [FHEM] HUEDevice18 has
[2019-3-12 16:23:52] [FHEM] On [onoff;on,off]
[2019-3-12 16:23:52] [FHEM] Brightness [bri]
[2019-3-12 16:23:52] [FHEM] colormode [colormode]
[2019-3-12 16:23:52] [FHEM] xy [xy]
2019-03-12 16:23:52 caching: HUEDevice18-onoff: 0
2019-03-12 16:23:52 caching: HUEDevice18-bri: 205
2019-03-12 16:23:52 caching: HUEDevice18-colormode: ct
2019-03-12 16:23:52 caching: HUEDevice18-xy: 0.3176,0.3276
[2019-3-12 16:23:52] [FHEM] detected HUEDevice
[2019-3-12 16:23:52] [FHEM] mappings for HUEDevice2: { On: { reading: 'onoff', valueOff: '0', cmdOn: 'on', cmdOff: 'off' },
Brightness:
{ reading: 'bri',
cmd: 'pct',
delay: true,
reading2homekit: [Function: bound ] } }
[2019-3-12 16:23:52] [FHEM] HUEDevice2 is light
[2019-3-12 16:23:52] [FHEM] HUEDevice2 has
[2019-3-12 16:23:52] [FHEM] On [onoff;on,off]
[2019-3-12 16:23:52] [FHEM] Brightness [bri]
2019-03-12 16:23:52 caching: HUEDevice2-onoff: 0
2019-03-12 16:23:52 caching: HUEDevice2-bri: 254
[2019-3-12 16:23:52] [FHEM] mappings for dMultimediaWz: { On:
{ reading: 'state',
valueOff: '/off|A0|000000/',
cmdOn: 'on',
cmdOff: 'off' } }
[2019-3-12 16:23:52] [FHEM] dMultimediaWz is switch
[2019-3-12 16:23:52] [FHEM] dMultimediaWz has
[2019-3-12 16:23:52] [FHEM] On [state;on,off]
2019-03-12 16:23:52 caching: dMultimediaWz-state: on
[2019-3-12 16:23:52] [FHEM] mappings for enoTempSz: { CurrentTemperature: { reading: 'temperature', minValue: -30 } }
[2019-3-12 16:23:52] [FHEM] enoTempSz is thermometer
[2019-3-12 16:23:52] [FHEM] enoTempSz has
[2019-3-12 16:23:52] [FHEM] CurrentTemperature [temperature]
2019-03-12 16:23:52 caching: enoTempSz-temperature: 20.5
[2019-3-12 16:23:52] [FHEM] mappings for lightSceneWz: { On: { cmdOn: 'scene' } }
[2019-3-12 16:23:52] [FHEM] lightSceneWz is scene
[2019-3-12 16:23:52] [FHEM] lightSceneWz has
[2019-3-12 16:23:52] [FHEM] On [undefined;scene,undefined]
2019-03-12 16:23:52 caching: lightSceneWz-state: lsWZAllesAus
[2019-3-12 16:23:52] [FHEM] mappings for mqttLeselichtKueche: { 'E863F10D-079E-48FF-8F27-9C2605A29F52': { name: 'Power', reading: 'power', format: 'FLOAT', factor: 1 },
On:
{ reading: 'state',
valueOff: '/off|A0|000000/',
cmdOn: 'on',
cmdOff: 'off' } }
[2019-3-12 16:23:52] [FHEM] mqttLeselichtKueche is light
[2019-3-12 16:23:52] [FHEM] mqttLeselichtKueche has
[2019-3-12 16:23:52] [FHEM] Custom Power [power]
[2019-3-12 16:23:52] [FHEM] On [state;on,off]
2019-03-12 16:23:52 caching: mqttLeselichtKueche-power: 0.00
[2019-3-12 16:23:52] [FHEM] mqttLeselichtKueche-power factor: value 0 mapped to 0
[2019-3-12 16:23:52] [FHEM] caching: Custom Power: 0 (as number; from '0.00')
2019-03-12 16:23:52 caching: mqttLeselichtKueche-state: off
[2019-3-12 16:23:52] BearerToken '...343DF' read from alexa
[2019-3-12 16:23:52] [FHEM] got .eventToken
[2019-3-12 16:23:52] refreshing token
[2019-3-12 16:23:52] 39_alexa.pm is new version: true
[2019-3-12 16:23:52] sshautoconf: completed successfully
[2019-3-12 16:23:52] *** SSH: proxy configuration set up done
[2019-3-12 16:23:52] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-3-12 16:23:52] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-3-12 16:23:52] Starting SSH with -R 1234:127.0.0.1:40509 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[2019-3-12 16:23:54] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-3-12 16:23:54] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-3-12 16:23:54] *** SSH: proxy connection established
[2019-3-12 16:23:54] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[2019-3-12 16:24:06] >>>> [ssh] {"directive":{"header":{"namespace":"Alexa.Discovery","name":"Discover","payloadVersion":"3","messageId":"5369e654-d70e-432f-b6a1-7b672e88dba8"},"payload":{"scope":{"type":"BearerToken","token":"15466281-2506D0C3A81662F0"}}}}
[2019-3-12 16:24:07] <<<< [ssh] {"header":{"namespace":"Alexa.ConnectedHome.Control","name":"InvalidAccessTokenError","payloadVersion":"2","messageId":"630c9af0-8085-48f3-b15e-6b97649ced8d"},"payload":{}}
[2019-3-12 16:24:11] >>>> [ssh] {"directive":{"header":{"namespace":"Alexa.Discovery","name":"Discover","payloadVersion":"3","messageId":"6e298c3c-5160-41d0-84b3-11cff1407067"},"payload":{"scope":{"type":"BearerToken","token":"15466281-2506D0C3A81662F0"}}}}
[2019-3-12 16:24:11] <<<< [ssh] {"header":{"namespace":"Alexa.ConnectedHome.Control","name":"InvalidAccessTokenError","payloadVersion":"2","messageId":"f6378867-dc61-40e0-8bfc-d559005317be"},"payload":{}}
[2019-3-12 16:24:48] Got SIGINT, shutting down alexa-fhem...
[2019-3-12 16:24:48] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-3-12 16:24:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-3-12 16:24:48] Stopping SSH ...
[2019-3-12 16:24:48] Reading alexaFHEM.ProxyConnection set to stopped
[2019-3-12 16:24:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopped%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
...@...:~$ sudo -u fhem alexa-fhem -D -c /opt/fhem/alexa-fhem.cfg > debug.log
[2019-3-12 16:23:53] failed to refresh token: invalid_grant: 'The request has an invalid grant parameter : refresh_token'
[2019-3-12 16:24:07] client not authorized: {"error_index":"LgihFbo4L2dNO2xTzGMruQAAAAAAAAABEflAS6uesbaYlO4FRO8S6eHOkTGeY0hQoftJjJSP3gBbk4FU-kkbc28pj8wuQTiFb5OfOhC_Dp_Skix-NDA_NHfuFXcVsBjr0r5gK7KUSG4LoskoO0kmB3-oEVyv8r_shsMzCZMZZ4W35bMsmOQf_CUT-sGOBWYGyRQhFD6Ts78JJoh6ZDXcXqKUmjNe50u8KEXzAj6819KuOlBhz3ebmw==","error_description":"The request has an invalid parameter : access_token","error":"invalid_token"}
[2019-3-12 16:24:07] ERROR: InvalidAccessTokenError from 127.0.0.1
[2019-3-12 16:24:11] client not authorized: {"error_index":"HJ-pVaRd1s05e5eKIAG0JwAAAAAAAAABEw665bqHm8K67XLUZaCg4ibtRgunQc3xXaOA5XWRluxNNSATrRjFxavrAqn77laqeHqa5BqBkoNZ62JX0NXw2JNqyCQ7mfw-MEy8TI1lJe-kyg3BEXrLQ48tu_HPEoZdUdEG9pr7lfNbnbb0_TsqRHIeWOqrxaZCkfBr-zKA4neMnP4FpH2rb0GaaQ5iovAwJ3iU23RHsLHc-QKRzPi5Pg==","error_description":"The request has an invalid parameter : access_token","error":"invalid_token"}
[2019-3-12 16:24:11] ERROR: InvalidAccessTokenError from 127.0.0.1
Zitat von: justme1968 am 13 März 2019, 11:13:17Werde es heute Abend mal probieren. Habe nur gezögert, falls schon bekannt ist, dass man sich dabei etwas zerschießt.
@MiK77: ich weiss es nicht. sollte aber eigentlich gehen. probier es aus :)
aus neugier: warum hast du die echos in zwei konten ?
running /usr/local/bin/alexa-fhem
stopped
SyntaxError: Unexpected token (
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/local/lib/node_modules/alexa-fhem/lib/server.js:11:29)
at Module._compile (module.js:570:32)
/usr/local/lib/node_modules/alexa-fhem/lib/user.js:92
(async () => {
^
Zitat von: justme1968 am 14 März 2019, 15:04:47Ne, das nicht. Ist 8.11.3
node version zu alt?
ps -ef | egrep '(alexa|ssh)'
pi@raspberrypithree:~ $ ps -ef | egrep '(alexa|ssh)'
root 790 1 0 15:01 ? 00:00:00 /usr/sbin/sshd -D
root 870 790 0 15:01 ? 00:00:00 sshd: pi [priv]
pi 928 870 0 15:01 ? 00:00:00 sshd: pi@pts/0
pi 7016 930 0 15:07 pts/0 00:00:00 grep -E --color=auto (alexa|ssh)
Zitat von: justme1968 am 14 März 2019, 15:22:14Jetzt machst du mich fertig. Vier Sätze, vier mal :o?
wenn du das mit dem gleichen user machst unter dem fhem läuft.
das npmjs modul könnte helfen.
du kannst auch mal die ganze platte nach node binaries durchsuchen.
hast du nvm verwendet?
Zitat von: justme1968 am 14 März 2019, 15:22:14Wenn ich das richtig verstehe läuft FHEM unter dem User pi, oder?
wenn du das mit dem gleichen user machst unter dem fhem läuft.
pi@raspberrypithree:~ $ ps -ef | egrep '(FHEM)'
pi 8435 930 0 15:48 pts/0 00:00:00 grep -E --color=auto (FHEM)
Zitat von: justme1968 am 14 März 2019, 15:22:14Inwiefern und was wäre zu tun?
das npmjs modul könnte helfen.
Zitat von: justme1968 am 14 März 2019, 15:22:14Gern, nur wie?
du kannst auch mal die ganze platte nach node binaries durchsuchen.
Zitat von: justme1968 am 14 März 2019, 15:22:14Bestimmt... irgendwann mal.
hast du nvm verwendet?
Zitat von: sebastianbieber am 14 März 2019, 15:58:34
mit einem aktuellen, neuen Problem: Meine Geräte sind weg??? Hab' heute Mittag mal ein "restart" gemacht, und eine neue Suche auf der Amazon-Alexa-Seite... seitdem gibts keine Geräte und keine Szenen mehr =8-O
Im Debug-Log ist nix zu finden, da werden ganz brav 18 Geräte zurückgegeben beim Discover...
Hat jemand vielleicht eine Erklärung dafür? Gestern Abend gings noch, und ich hab' seitdem kein Update gemacht!?!
sudo -u fhem ssh -p 58824 fhem-va.fhem.de unregister
Zitat von: justme1968 am 14 März 2019, 15:22:14OK, das habe ich dann gefunden.
das npmjs modul könnte helfen.
Package Name Installed Version
alexa-fhem 0.5.26
homebridge 0.4.16
homebridge-fhem 0.3.7
homebridge-http 0.0.9
node-red 0.17.5
node-red-admin 0.1.3
npm 3.10.10
Package Name Installed Version Update Version Upgrade Version
homebridge 0.4.16 0.4.46 0.4.46
homebridge-fhem 0.3.7 0.5.2 0.5.2
node-red 0.17.5 0.20.0 0.20.0
node-red-admin 0.1.3 0.1.5 0.1.5
npm 3.10.10 6.9.0 6.9.0
"node --version"
Zitat von: justme1968 am 14 März 2019, 16:31:28
es sollte ein reading zur node version geben. irgendetwas scheint komisch zu sein.
gib mal im in fhem (telnet oder command box in fhemweb)
"node —version"
ein. mit anführungszeichen. und schau was im fhem log steht.
Unknown command "node, try help.
"node --version"
Unknown command "node, try help.
pi@raspberrypithree:~ $ ls -la /usr/local/bin/node_old
-rwxr-xr-x 1 root staff 26995658 Mär 4 2017 /usr/local/bin/node_old
pi@raspberrypithree:~ $ ls -la /usr/bin/node
-rwxr-xr-x 1 root root 31515253 Dez 26 05:53 /usr/bin/node
alexaFHEM.ProxyConnection error; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
Zitat von: sloth am 14 März 2019, 22:33:26
Ähnliches Problem hier. fhem scheinen die Pfade für node und die node_modules nicht bekannt zu sein. Das ganze läuft bei mir auf einem qnap.
Die PATH-Variable wird nach dem booten per script in die .bash_profile des admin-users geschrieben.
- Gebe ich "whoami" ins cmd-Feld ein kommt im fhem-log 'admin'.
- Gebe ich "node --version" ein kommt im fhem-log 'sh: node: command not found'.
- Gebe ich selbiges über ssh (ebenfalls als admin) ein kommt 'v10.15.3' Ebenso ist hier der 'alexa-fhem'-Befehl bekannt.
Hat jemand eine Idee was ich übersehe?
[2019-3-17 18:40:29] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-3-17 18:40:29] os.homedir()=/opt/fhem
[2019-3-17 18:40:29] this is alexa-fhem 0.5.26
[2019-3-17 18:40:29] connecting to FHEM ...
[2019-3-17 18:40:29] [FHEM] trying longpoll to listen for fhem events
[2019-3-17 18:40:29] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1552844429962
[2019-3-17 18:40:30] [FHEM] got csrfToken: csrf_142637027820726
[2019-3-17 18:40:30] [FHEM] Checking devices and attributes...
[2019-3-17 18:40:30] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=csrf_142637027820726&XHR=1
[2019-3-17 18:40:30] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_142637027820726&XHR=1
[2019-3-17 18:40:30] [FHEM] waiting for events ...
[2019-3-17 18:40:30] [FHEM] Fetching FHEM devices...
[2019-3-17 18:40:30] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=csrf_142637027820726&XHR=1
[2019-3-17 18:40:30] [FHEM] alexa device is alexa
[2019-3-17 18:40:30] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.26%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_142637027820726&XHR=1
[2019-3-17 18:40:30] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_142637027820726&XHR=1
[2019-3-17 18:40:30] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_142637027820726&XHR=1
[2019-3-17 18:40:30] Server listening on: http://127.0.0.1:46579 for proxy connections
[2019-3-17 18:40:30] *** SSH: checking proxy configuration
[2019-3-17 18:40:30] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-3-17 18:40:30] Passed config: {"connections":[{"name":"FHEM","filter":"alexaName=..*","uid":999,"webname":"fhem","port":"8083","server":"127.0.0.1"}],"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":46579}}
[2019-3-17 18:40:30] sshautoconf: SSH key seems to exist
[2019-3-17 18:40:30] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-3-17 18:40:30] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_142637027820726&XHR=1
*** FHEM: connected
[2019-3-17 18:40:30] [FHEM] got: 1 results
[2019-3-17 18:40:30] [FHEM] mySwitch1 is switch
[2019-3-17 18:40:30] [FHEM] mySwitch1 has
[2019-3-17 18:40:30] BearerToken '...CF97F' read from alexa
[2019-3-17 18:40:30] [FHEM] got .eventToken
[2019-3-17 18:40:30] refreshing token
[2019-3-17 18:40:30] 39_alexa.pm is new version: true
[2019-3-17 18:40:30] sshautoconf: completed successfully
[2019-3-17 18:40:30] *** SSH: proxy configuration set up done
[2019-3-17 18:40:30] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-3-17 18:40:30] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_142637027820726&XHR=1
[2019-3-17 18:40:30] Starting SSH with -R 1234:127.0.0.1:46579 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[2019-3-17 18:40:31] failed to refresh token: invalid_grant: 'The request has an invalid grant parameter : refresh_token'
[2019-3-17 18:40:31] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-3-17 18:40:31] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_142637027820726&XHR=1
[2019-3-17 18:40:31] *** SSH: proxy connection established
[2019-3-17 18:40:31] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
Internals:
FUUID 5c8d1b2b-f33f-ad1e-2a2e-f087fbb25c3508ce
NAME mySwitch1
NR 16
STATE off
TYPE dummy
READINGS:
2019-03-16 17:04:02 state off
Attributes:
alexaName Test
alexaRoom 1
genericDeviceType switch
webCmd on:off
attr mySwitch1 setList on off
[24.3.2019, 10:04:19] >>>> [ssh] {"directive":{"header":{"namespace":"Alexa.ThermostatController","name":"SetTargetTemperature","payloadVersion":"3","messageId":"7fa36951-x-x-x-x","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"B6C623C9-x"},"endpointId":"5c896393-x-x-x-x","cookie":{"fuuid":"5c896393-x-x-x-x","device":"FBDECT_fbahahttp_11959_0102320"}},"payload":{"targetSetpoint":{"value":21,"scale":"CELSIUS"}}}}
[24.3.2019, 10:04:19] [FHEM] FBDECT_fbahahttp_11959_0102320: executing set cmd for TargetTemperature with value 1
[24.3.2019, 10:04:19] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=set%20FBDECT_fbahahttp_11959_0102320%20desired-temp%201&fwcsrf=csrf_282280812424286&XHR=1
[24.3.2019, 10:04:19] <<<< [ssh] {"context":{"properties":[{"namespace":"Alexa.ThermostatController","name":"targetSetpoint","value":{"value":1,"scale":"CELSIUS"},"timeOfSample":"2019-03-24T09:04:19.700Z","uncertaintyInMilliseconds":500}]},"event":{"header":{"namespace":"Alexa","name":"Response","payloadVersion":"3","messageId":"562e2d99-x-x-x-x","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"B6C623C9-x"},"endpointId":"5c896393-x-x-x-x"},"payload":{}}}
[24.3.2019, 10:43:32] [FHEM] mappings for FBDECT_fbahahttp_11959_0102320: { BatteryLevel: { reading: 'battery' },
StatusLowBattery:
{ reading: 'battery',
threshold: 20,
values: [ '0:BATTERY_LEVEL_LOW', '1:BATTERY_LEVEL_NORMAL' ] },
TargetTemperature:
{ reading: 'desired-temp',
cmd: 'desired-temp',
delay: true,
minValue: 7.5,
maxValue: 1,
minStep: -7 },
CurrentTemperature: { reading: 'temperature', minValue: -30 },
CurrentHeatingCoolingState: { default: 'HEAT' } }
[24.3.2019, 10:43:32] [FHEM] FBDECT_fbahahttp_11959_0102320 is thermostat
[24.3.2019, 10:43:32] [FHEM] FBDECT_fbahahttp_11959_0102320 has
[24.3.2019, 10:43:32] [FHEM] BatteryLevel [battery]
[24.3.2019, 10:43:32] [FHEM] StatusLowBattery [battery]
[24.3.2019, 10:43:32] [FHEM] TargetTemperature [desired-temp]
[24.3.2019, 10:43:32] [FHEM] CurrentTemperature [temperature]
[24.3.2019, 10:43:32] [FHEM] CurrentHeatingCoolingState [undefined]
2019-03-24 10:43:32 caching: FBDECT_fbahahttp_11959_0102320-battery: 1 %
[24.3.2019, 10:43:32] [FHEM] value2homekit: { '0': 'BATTERY_LEVEL_LOW', '1': 'BATTERY_LEVEL_NORMAL' }
2019-03-24 10:43:32 caching: FBDECT_fbahahttp_11959_0102320-desired-temp: 7.5
2019-03-24 10:43:32 caching: FBDECT_fbahahttp_11959_0102320-temperature: 18.0 C (measured)
[24.3.2019, 10:43:32] [FHEM] default: HEAT
[24.3.2019, 11:08:06] [FHEM] homebridgeMapping: TargetTemperature=desired-temp,cmd=desired-temp,minValue=7.5,maxValue=28.5,minStep=0.5
[24.3.2019, 11:08:06] [FHEM] mappings for FBDECT_fbahahttp_11959_0102320: { BatteryLevel: { reading: 'battery' },
StatusLowBattery:
{ reading: 'battery',
threshold: 20,
values: [ '0:BATTERY_LEVEL_LOW', '1:BATTERY_LEVEL_NORMAL' ] },
TargetTemperature:
{ reading: 'desired-temp',
cmd: 'desired-temp',
delay: true,
minValue: 7.5,
maxValue: 28.5,
minStep: 0.5 },
CurrentTemperature: { reading: 'temperature', minValue: -30 },
CurrentHeatingCoolingState: { default: 'HEAT' } }
Internals:
DEF 3679E4
FUUID 5c7b92e9-f33f-e02c-e8a9-534e9680eaae95c3
IODev hmusb
LASTInputDev hmusb
MSGCNT 8337
NAME THERMOSTAT_Kueche
NOTIFYDEV global
NR 498
STATE CMDs_done
TYPE CUL_HM
channel_01 THERMOSTAT_Kueche_Weather
channel_02 THERMOSTAT_Kueche_Climate
channel_03 THERMOSTAT_Kueche_WindowRec
channel_06 THERMOSTAT_Kueche_remote
channel_07 THERMOSTAT_Kueche_SwitchTr
hmusb_MSGCNT 8337
hmusb_RAWMSG E3679E4,0000,4AD1263F,FF,FFC2,E484703679E400000000CF25
hmusb_RSSI -62
hmusb_TIME 2019-03-25 12:37:05
lastMsg No:E4 - t:70 s:3679E4 d:000000 00CF25
protLastRcv 2019-03-25 12:37:05
protRcv 8320 last_at:2019-03-25 12:37:05
protRcvB 7 last_at:2019-03-21 08:50:03
protSnd 10 last_at:2019-03-25 09:57:02
protSndB 1 last_at:2019-03-25 09:57:01
protState CMDs_done
rssi_at_hmusb cnt:8337 min:-79 max:-60 avg:-67.07 lst:-62
rssi_hmusb cnt:2 min:-52 max:-52 avg:-52 lst:-52
READINGS:
2019-03-18 20:31:58 Activity alive
2019-03-25 09:57:02 CommandAccepted yes
2018-05-02 10:08:48 D-firmware 1.2
2018-10-28 02:10:01 D-serialNr MEQ0235334
2018-07-25 10:27:21 PairedTo 0x424242
2018-05-02 17:04:06 R-burstRx on
2018-05-02 17:04:06 R-cyclicInfoMsg on
2018-05-02 17:04:06 R-cyclicInfoMsgDis 0
2018-05-02 17:04:06 R-pairCentral 0x424242
2018-07-25 10:27:21 RegL_00. 01:01 02:01 09:01 0A:42 0B:42 0C:42 0F:00 11:00 12:16 16:00 18:00 19:00 1A:00 00:00
2018-11-23 12:28:48 RegL_07.
2019-03-25 12:29:32 battery ok
2019-03-25 12:29:32 batteryLevel 2.7
2019-03-25 12:29:32 desired-temp 10.0
2019-03-25 12:29:32 measured-temp 20.7
2018-07-25 10:27:16 powerOn 2018-07-25 10:27:16
2018-07-25 10:27:16 recentStateType info
2019-03-25 09:57:02 state CMDs_done
2019-03-25 03:04:56 time-request -
helper:
HM_CMDNR 228
PONtest 1
cSnd 114242423679E4860414,114242423679E4860214
mId 00AD
peerFriend
peerOpt -:thermostat
regLst 0
rxType 6
supp_Pair_Rep 0
ack:
expert:
def 1
det 0
raw 1
tpl 0
io:
newChn +3679E4,00,01,00
nextSend 1553513825.4556
prefIO
rxt 0
vccu vccu
p:
3679E4
00
01
00
mRssi:
mNo E4
io:
hmusb:
-58
-58
prt:
awake 0
bErr 0
sProc 0
rspWait:
q:
qReqConf
qReqStat
role:
dev 1
prs 1
rssi:
at_hmusb:
avg -67.0710087561469
cnt 8337
lst -62
max -60
min -79
hmusb:
avg -52
cnt 2
lst -52
max -52
min -52
shRegW:
07 02
tmpl:
Attributes:
IODev hmusb
IOgrp vccu
actCycle 000:10
actStatus alive
alexaName Heizung
autoReadReg 4_reqStatus
event-on-change-reading .*
expert 2_full
firmware 1.2
genericDeviceType thermostat
model HM-TC-IT-WM-W-EU
msgRepeat 1
room CUL_HM,Heizung,Kueche
serialNr MEQ0235334
subType thermostat
webCmd getConfig:clear msgEvents
Zitat von: justme1968 am 26 März 2019, 18:36:51Danke, das werde ich testen und im Erfolgsfall im Wiki ergänzen.
für den mode brauchst du ein mapping für TargetHeatingCoolingState.
Zitatwas spricht dagegen das weiter als structure zu machen und diese als blind einzubinden?Aus meiner Sicht nichts, nur dass es halt anscheinend nicht funktioniert.
Zitatstructure Devices aus FHEM (ab alexa-fhem version 0.5.7)
werden mit genericDeviceType scene als Szene eingebunden
über alexaRoom kann der name um einen Ort ergänzt werden
Szenen aus einer structure lassen sich ein- und ausschalten
ZitatIm Wiki steht, dass man structure als scene einbinden muss, und dass diese dann (nur?) ein und aus kennt:
{"supported":[{"name":"powerState"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["LIGHT"],"cookie":{"device":"Licht_Esstisch","fuuid":"5c7b92e6-f33f-e02c-06fb-5e0723155fc8565d"}},{"endpointId":"MEQ1313197","manufacturerName":"FHEMCUL_HM","modelName":"FHEMHM-LC-BL1-FM","version":"<unknown>","friendlyName":"peter","description":"n: Rolllaeden_Bad_l, r: bad,cul_hm","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.PercentageController","version":"3","properties":{"supported":[{"name":"percentage"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":[],"cookie":{"device":"Rolllaeden_Bad_l","fuuid":"5c7b92eb-f33f-e02c-5865-0cce41ae65ead4af"}},{"endpointId":"MEQ1313283","manufacturerName":"FHEMCUL_HM","modelName":"FHEMHM-LC-BL1-FM","version":"<unknown>","friendlyName":"peter","description":"n: Rolllaeden_Bad_r, r: bad,cul_hm","actions":[],"capabilities"
"endpointId":"5c7b92ef-f33f-e02c-f672-e0c3c4cd0cf0f31a","manufacturerName":"FHEMstructure","modelName":"FHEM<unknown>","version":"<unknown>","friendlyName":"maria","description":"n: rollaeden_bad_structure, r: bad","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.PercentageController","version":"3","properties":{"supported":[{"name":"percentage"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":[],"cookie":{"device":"rollaeden_bad_structure","fuuid":"5c7b92ef-f33f-e02c-f672-e0c3c4cd0cf0f31a"}}]}}}
userattr kueche_structure kueche_structure_map structexclude
Zitat von: justme1968 am 28 März 2019, 12:37:56Danke, d.h. mann muss bei allen Elementen einer structure einzeln structexclude alexaName genericDeviceType setzen?
1. um das zu verhindern gibt es das structexclude attribut.
Zitatok, ich werde heute abend mal mit Einzelrollläden testen, ob sie sich wie die Thermostaten verhalten.
2. es gib aus alexa sicht keinen unterschied zwischen einer structure und einem ,echten' rollladen. so lange beide devices das passende homebridgeMapping und den gleichen genericDeviceType haben.
ob ein bestimmter name probleme macht ist ebenfalls unabhängig von fhem device type.
Zitat von: dadoc am 28 März 2019, 13:00:18Getestet, geht auch nicht. Alexa scheint mit ,,Rollladen" als Gerätenamen generell ein Problem zu haben, wie ich auch schon vage anderen Posts und anderen Foren entnommen habe. Wenn man es mit dem Raumnamen im Sprachbefehl kombiniert, kennt sie das nicht. Wenn man es ohne Raumname sagt, ist die Antwort, dass es mehrere Geräte mit dem Namen ,,Rollladen" gibt.
ok, ich werde heute abend mal mit Einzelrollläden testen, ob sie sich wie die Thermostaten verhalten.
Status ActivationKey: Good Key
Status SSH: Online...
Status Revers-Portmapping: Reverse tunnel up
Status nodejs-Connectivity: Test passed
Status nodejs-Interaction: AutoDiscovery failed, response: {"header":{"namespace":"Alexa-ConnectedHome.Control","name":"InvalidAccessTokenError","payloadVersion":"2","messageId":"87.....37"},"payload":{}}
[29.3.2019, 13:20:17] >>>> [ssh] {"directive":{"header":{"namespace":"Alexa.Discovery","name":"Discover","payloadVersion":"3","messageId":"0815"},"payload":{"scope": {"type":"BearerToken","token":"<...>"}}}}
[29.3.2019, 13:20:18] client not authorized: {"error_index":"<...>","error_description":"The request has an invalid parameter : access_token","error":"invalid_token"}
[29.3.2019, 13:20:18] ERROR: InvalidAccessTokenError from 127.0.0.1
[29.3.2019, 13:20:18] <<<< [ssh] {"header":{"namespace":"Alexa.ConnectedHome.Control","name":"InvalidAccessTokenError","payloadVersion":"2","messageId":"<...>"},"payload":{}}
Internals:
.FhemMetaInternals 1
FD 24
FUUID xxxxxxxxxxxxxxxxxxxx...
FVERSION 39_alexa.pm:0.190980/2019-04-02
LAST_START 2019-04-04 16:42:21
LAST_STOP 2019-04-04 16:26:03
NAME Alexa
NOTIFYDEV global,global:npmjs.*alexa-fhem.*
NR 313
NTFY_ORDER 50-Alexa
PARTIAL
PID 23307
STARTS 5
STATE running /usr/bin/alexa-fhem
TYPE alexa
active 0
alexa-fhem version 0.5.26
currentlogfile ./log/alexa-2019-04-04.log
logfile ./log/alexa-%Y-%m-%d.log
.attraggr:
.attrminint:
CoProcess:
cmdFn alexa_getCMD
name alexaFHEM
state running /usr/bin/alexa-fhem
READINGS:
2019-03-30 10:19:03 .eventToken {"access_token":"Atza|IwEBIMdo9vzsk4MCQba7aadQD-y3B416wS41HugjidjxRyIscwCeorFsANbY5CHXq_skgKvsC5BEuRnvgngqMj_XZ0lsxJt-bc7V7xBeKh3LvSsXeNtGKgAw91uEYMZfoMmFinFvvfGx4WVgrte6ZrMcKeJoPgZz-lEE1rSzNK5iSfSf4wAvFlvUyOZ5JYBFmnqLzlM9klaaCtIhoyRu5mddUwhSPm6UA4qGPCw0mQ5rG1LSw3-QOrWrNLo2bqKSHolpeaurF3skgVMtrTfRbgikLzor2FA6r16vNEtZKsYuBG0doabmWgH6zLdTr9KZp9trwpG3nB56gLg8fv_t0k8QRWTX","refresh_token":"Atzr|IwEBINlL9f6EYqqIuvEKdJVVWCMTEjQxBk1ZfrQl9YnUVFhDZSirG2QoFOS4Yg4MqxXllLpqUE7MNF9DALAm5LtDFgHoGweIkqpoBf-ki0UTu5UKCqPDS9tgp6r2gaOLpAaW3TPzj-yavdKfWWp-mcJRB_RlNcxCQkBLyjbLeSyFVJi3fCj-sovVCyQfmjKiqh_buw4eNR-aFUknDlXtUlHuVkzzvwSLTJtIm9zQo8JXlTnqsh7hOwSr4u3BsSD8yduQfLauw8pL5DsPBqS4BZ5XqaVC71KjW-MfsmAl6vp0w1R84zRaXLUa5Dxb1cnmNmX40_8T3tZUNCTO8LbU5HB1derF","token_type":"bearer","expires_in":3600}
2019-04-04 16:42:21 alexaFHEM running /usr/bin/alexa-fhem
2019-04-04 16:42:34 alexaFHEM.ProxyConnection running; SSH connected
2019-04-04 16:42:33 alexaFHEM.bearerToken crypt:xxxxxxxxxxxxxxxxxxxx...
2019-04-04 16:42:34 alexaFHEM.skillRegKey crypt:xxxxxxxxxxxxxxxxxxxx...
helper:
Attributes:
DbLogExclude .*
alexaFHEM-auth crypt:xxxxxxxxxxxxxxxxxxxx...
alexaFHEM-config ./log/alexa-fhem.cfg
alexaFHEM-log ./log/alexa-%Y-%m-%d.log
alexaMapping #Characteristic=<name>=<value>,...
On=verb=schalte,valueOn=an;ein,valueOff=aus,valueToggle=um
. . . .
fhemIntents #IntentName=<sample utterance>
gutenMorgen=guten morgen
guteNacht=gute nacht
room Alexa
stateFormat alexaFHEM
. . . .
[2019-4-4 16:42:34] SSH setup completed with new bearer token
[2019-4-4 16:42:34] failed to refresh token: invalid_grant: 'The request has an invalid grant parameter : refresh_token'
[2019-4-4 16:42:34] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-4-4 16:42:34] [FHEM] executing: http://192.168.2.244:8083/fhem?cmd=%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20Alexa%20alexaFHEM.ProxyConnection%20$
[2019-4-4 16:42:34] *** SSH: proxy connection established
. . . .
[2019-4-4 16:46:44] reloading http://192.168.2.244:8083/fhem
[2019-4-4 16:46:44] removing AZ_DB_FV from http://192.168.2.244:8083/fhem
[2019-4-4 16:46:44] removing AZ_GZ_FV from http://192.168.2.244:8083/fhem
[2019-4-4 16:46:44] removing AZ_GZ_SF from http://192.168.2.244:8083/fhem
[2019-4-4 16:46:44] removing AZ_HZ_T1 from http://192.168.2.244:8083/fhem
. . . .
[2019-4-4 16:46:44] [FHEM] Fetching FHEM devices...
[2019-4-4 16:46:44] [FHEM] fetching: http://192.168.2.244:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=1&XHR=1
*** FHEM: connected
[2019-4-4 16:46:45] [FHEM] got: 46 results
[2019-4-4 16:46:45] [FHEM] AZ_DB_FV is thermometer
[2019-4-4 16:46:45] [FHEM] AZ_DB_FV has
[2019-4-4 16:46:45] [FHEM] CurrentTemperature [temperature]
[2019-4-4 16:46:45] [FHEM] AZ_GZ_FV is contact
[2019-4-4 16:46:45] [FHEM] AZ_GZ_FV has
[2019-4-4 16:46:45] [FHEM] AZ_GZ_SF is security
[2019-4-4 16:46:45] [FHEM] AZ_GZ_SF has
[2019-4-4 16:46:45] [FHEM] BatteryLevel [battery]
[2019-4-4 16:46:45] [FHEM] StatusLowBattery [battery]
[2019-4-4 16:46:45] [FHEM] AZ_HZ_T1 is thermostat
[2019-4-4 16:46:45] [FHEM] AZ_HZ_T1 has
[2019-4-4 16:46:45] [FHEM] StatusLowBattery [battery]
[2019-4-4 16:46:45] [FHEM] TargetTemperature [temperature]
[2019-4-4 16:46:45] [FHEM] CurrentHeatingCoolingState [undefined]
[2019-4-4 16:46:45] [FHEM] AZ_SK_D1 is outlet
[2019-4-4 16:46:45] [FHEM] AZ_SK_D1 has
[2019-4-4 16:46:45] [FHEM] On [state;on,off]
. . . .
Arg "alexaName=..*"
Results [...]
totalResultsReturned 43
Cache-Control: no-cache, no-store, must-revalidate
Content-Encoding: gzip
Content-Length: 17443
Content-Type: application/json; charset=utf-8
X-FHEM-csrfToken: 1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: de,en-US;q=0.7,en;q=0.3
Authorization: Basic TnVySWNoRkhFTTpmSGUhQnlSdUc=
Connection: keep-alive
Host: 192.168.2.244:8083
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
[2019-4-4 16:46:46] [FHEM] WZ_TI_TT is thermometer
[2019-4-4 16:46:46] [FHEM] WZ_TI_TT has
[2019-4-4 16:46:46] [FHEM] CurrentTemperature [temperature]
[2019-4-4 16:46:46] refreshing token
[2019-4-4 16:46:46] refreshing token
[2019-4-4 16:46:46] refreshing token
[2019-4-4 16:46:46] refreshing token
[2019-4-4 16:46:46] refreshing token
. . . . .
. . . .
[2019-4-4 16:46:46] refreshing token
[2019-4-4 16:46:46] refreshing token
[2019-4-4 16:46:47] failed to refresh token: invalid_grant: 'The request has an invalid grant parameter : refresh_token'
[2019-4-4 16:46:47] failed to refresh token: invalid_grant: 'The request has an invalid grant parameter : refresh_token'
. . . .
root@PNinBBServer4 04.04.2019;16:32:00 / 56>sudo -u fhem ssh -p 58824 fhem-va.fhem.de status
Registered.
Registered on 2019-03-30T07:34:55Z as XXXXXXXX.
Zitatanderes Verzeichnis, andere Portnummer von aussenwenn du den FHEM connector mit mit ssh proxy verwendest gibt es keinen port von aussen. welches verzeichnis meinst du? das sollte komplett automatisch gehen.
[2019-4-3 16:48:39] reloading http://192.168.2.244:8083/fhem
[2019-4-3 16:48:39] removing AZ_DB_FV from http://192.168.2.244:8083/fhem
[2019-4-3 16:48:39] removing AZ_GZ_SF from http://192.168.2.244:8083/fhem
[2019-4-3 16:48:39] removing AZ_HZ_T1 from http://192.168.2.244:8083/fhem
[2019-4-3 16:48:39] removing AZ_SK_D1 from http://192.168.2.244:8083/fhem
. . . .
[2019-4-3 16:48:39] [FHEM] Fetching FHEM devices...
[2019-4-3 16:48:39] [FHEM] fetching: http://192.168.2.244:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=1&XHR=1
*** FHEM: connected
[2019-4-3 16:48:40] [FHEM] got: 43 results
[2019-4-3 16:48:40] [FHEM] AZ_DB_FV is thermometer
[2019-4-3 16:48:40] [FHEM] AZ_DB_FV has
[2019-4-3 16:48:40] [FHEM] CurrentTemperature [temperature]
[2019-4-3 16:48:40] [FHEM] AZ_GZ_FV: no service type detected
[2019-4-3 16:48:40] [FHEM] no device created for AZ_GZ_FV (ZWave)
[2019-4-3 16:48:40] [FHEM] AZ_GZ_SF is security
[2019-4-3 16:48:40] [FHEM] AZ_GZ_SF has
[2019-4-3 16:48:40] [FHEM] BatteryLevel [battery]
[2019-4-3 16:48:40] [FHEM] StatusLowBattery [battery]
[2019-4-3 16:48:40] [FHEM] AZ_HZ_T1 is thermostat
[2019-4-3 16:48:40] [FHEM] AZ_HZ_T1 has
[2019-4-3 16:48:40] [FHEM] StatusLowBattery [battery]
[2019-4-3 16:48:40] [FHEM] TargetTemperature [temperature]
[2019-4-3 16:48:40] [FHEM] CurrentHeatingCoolingState [undefined]
. . . .
. . . .
[2019-4-3 16:48:41] [FHEM] WZ_TI_TT is thermometer
[2019-4-3 16:48:41] [FHEM] WZ_TI_TT has
[2019-4-3 16:48:41] [FHEM] CurrentTemperature [temperature]
[2019-4-3 16:48:41] {"event":{"header":{"namespace":"Alexa.Discovery","name":"AddOrUpdateReport","payloadVersion":"3","messageId":"14ac61b9-bfc9-4a6a-9912-ef42d2a4dca6"},"payload":{"endpoints":[{"endpointId":"ZWave_ed70b42b-40","manufacturerName":"FHEMZWave","modelName":"FHEMFIBARO System FGBS001 Universal Binary Sensor","version":"<unknown>","friendlyName":"fenster","description":"n: AZ_DB_FV, r: arbeitszimmer","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.TemperatureSensor","version":"3","properties":{"supported":[{"name":"temperature"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["TEMPERATURE_SENSOR"],"cookie":{"device":"AZ_DB_FV","fuuid":"5c5af34a-f33f-fe8d-850c-6925c9f22d7e1aaf"}}],"scope":{"type":"BearerToken","token":"access-token-from-Amazon"}}}}
[2019-4-3 16:48:41] posting skill event
[2019-4-3 16:48:41] {"event":{"header":{"namespace":"Alexa.Discovery","name":"AddOrUpdateReport","payloadVersion":"3","messageId":"726dc9f0-31c5-4e92-96ae-1cb7679a5239"},"payload":{"endpoints":[{"endpointId":"ZWave_ed70b42b-14","manufacturerName":"FHEMZWave","modelName":"FHEMFIBARO System FGK101 Door Opening Sensor","version":"<unknown>","friendlyName":"safezustand","description":"n: AZ_GZ_SF, r: arbeitszimmer","actions":[],"capabilities":[],"displayCategories":[],"cookie":{"device":"AZ_GZ_SF","fuuid":"5c5af34a-f33f-fe8d-1f5c-febd4aabc5c67c5c"}}],"scope":{"type":"BearerToken","token":"access-token-from-Amazon"}}}}
[2019-4-3 16:48:41] posting skill event
. . . .
[2019-4-3 16:48:41] {"event":{"header":{"namespace":"Alexa.Discovery","name":"AddOrUpdateReport","payloadVersion":"3","messageId":"1a6f6eeb-43b0-4d0b-b02c-d9afcf7df51b"},"payload":{"endpoints":[{"endpointId":"ZWave_ed70b42b-9732","manufacturerName":"FHEMZWave","modelName":"FHEM<unknown>","version":"<unknown>","friendlyName":"aussentemperature","description":"n: WZ_TA_TT, r: wohnzimmer","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.TemperatureSensor","version":"3","properties":{"supported":[{"name":"temperature"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["TEMPERATURE_SENSOR"],"cookie":{"device":"WZ_TA_TT","fuuid":"5c5af353-f33f-fe8d-ad37-011a0167e49d87c6"}}],"scope":{"type":"BearerToken","token":"access-token-from-Amazon"}}}}
[2019-4-3 16:48:41] posting skill event
[2019-4-3 16:48:41] {"event":{"header":{"namespace":"Alexa.Discovery","name":"AddOrUpdateReport","payloadVersion":"3","messageId":"2784c609-af7d-466c-8bed-f6bb68647b63"},"payload":{"endpoints":[{"endpointId":"ZWave_ed70b42b-5122","manufacturerName":"FHEMZWave","modelName":"FHEM<unknown>","version":"<unknown>","friendlyName":"seitenfensterinnentemperatur","description":"n: WZ_TI_FS, r: wohnzimmer","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.TemperatureSensor","version":"3","properties":{"supported":[{"name":"temperature"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["TEMPERATURE_SENSOR"],"cookie":{"device":"WZ_TI_FS","fuuid":"5c5af34a-f33f-fe8d-a443-ac69472583f954e1"}}],"scope":{"type":"BearerToken","token":"access-token-from-Amazon"}}}}
[2019-4-3 16:48:41] posting skill event
[2019-4-3 16:48:41] {"event":{"header":{"namespace":"Alexa.Discovery","name":"AddOrUpdateReport","payloadVersion":"3","messageId":"a7e73e39-2511-4612-b581-72a810dc9998"},"payload":{"endpoints":[{"endpointId":"ZWave_ed70b42b-9731","manufacturerName":"FHEMZWave","modelName":"FHEM<unknown>","version":"<unknown>","friendlyName":"terrassentürinnentemperatur","description":"n: WZ_TI_TT, r: wohnzimmer","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.TemperatureSensor","version":"3","properties":{"supported":[{"name":"temperature"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["TEMPERATURE_SENSOR"],"cookie":{"device":"WZ_TI_TT","fuuid":"5c5af353-f33f-fe8d-74de-f53da42022cefc90"}}],"scope":{"type":"BearerToken","token":"access-token-from-Amazon"}}}}
[2019-4-3 16:48:41] posting skill event
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 400: {"header":{"namespace":"System","name":"Exception","messageId":"aff65b0d-f3f8-4a24-a063-602236045f82"},"payload":{"code":"INVALID_REQUEST_EXCEPTION","description":"Parsing error: Failed to parse discovery payload Can not construct instance of com.amazon.iota.driver.v3.discovery.DiscoveredEndpoint$DiscoveredEndpointBuilder, problem: capability must contain at least one supported capability\n at [Source: N/A; line: -1, column: -1] (through reference chain: com.amazon.iota.driver.v3.discovery.DiscoverAddOrUpdateReport[\"endpoints\"]->java.lang.Object[][0])"}}
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 400: {"header":{"namespace":"System","name":"Exception","messageId":"7369c39f-6366-46ce-b877-badd8a9f9e04"},"payload":{"code":"INVALID_REQUEST_EXCEPTION","description":"Parsing error: Failed to parse discovery payload Can not construct instance of com.amazon.iota.driver.v3.discovery.DiscoveredEndpoint$DiscoveredEndpointBuilder, problem: capability must contain at least one supported capability\n at [Source: N/A; line: -1, column: -1] (through reference chain: com.amazon.iota.driver.v3.discovery.DiscoverAddOrUpdateReport[\"endpoints\"]->java.lang.Object[][0])"}}
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 400: {"header":{"namespace":"System","name":"Exception","messageId":"9ab2413f-8f4b-4c73-b8b9-881587d91e01"},"payload":{"code":"INVALID_REQUEST_EXCEPTION","description":"Parsing error: Failed to parse discovery payload Can not construct instance of com.amazon.iota.driver.v3.discovery.DiscoveredEndpoint$DiscoveredEndpointBuilder, problem: capability must contain at least one supported capability\n at [Source: N/A; line: -1, column: -1] (through reference chain: com.amazon.iota.driver.v3.discovery.DiscoverAddOrUpdateReport[\"endpoints\"]->java.lang.Object[][0])"}}
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 400: {"header":{"namespace":"System","name":"Exception","messageId":"acb419d6-d63c-4bf0-a7d0-a652121001c9"},"payload":{"code":"INVALID_REQUEST_EXCEPTION","description":"Parsing error: Failed to parse discovery payload Can not construct instance of com.amazon.iota.driver.v3.discovery.DiscoveredEndpoint$DiscoveredEndpointBuilder, problem: capability must contain at least one supported capability\n at [Source: N/A; line: -1, column: -1] (through reference chain: com.amazon.iota.driver.v3.discovery.DiscoverAddOrUpdateReport[\"endpoints\"]->java.lang.Object[][0])"}}
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 400: {"header":{"namespace":"System","name":"Exception","messageId":"f721ba7c-4d8b-4540-bb7b-81a2c1f1895a"},"payload":{"code":"INVALID_REQUEST_EXCEPTION","description":"Parsing error: Failed to parse discovery payload Can not construct instance of com.amazon.iota.driver.v3.discovery.DiscoveredEndpoint$DiscoveredEndpointBuilder, problem: capability must contain at least one supported capability\n at [Source: N/A; line: -1, column: -1] (through reference chain: com.amazon.iota.driver.v3.discovery.DiscoverAddOrUpdateReport[\"endpoints\"]->java.lang.Object[][0])"}}
[2019-4-3 16:48:42] posted skill event: 202:
[2019-4-3 16:48:42] posted skill event: 429: {"header":{"namespace":"System","name":"Exception","messageId":"d54c3a7c-97ff-43e5-8b28-3f95dfbffcb0"},"payload":{"code":"THROTTLING_EXCEPTION","description":"Request is throttled."}}
[2019-4-3 16:48:42] posted skill event: 429: {"header":{"namespace":"System","name":"Exception","messageId":"f3b03b07-5ea2-4951-807a-f26504b27838"},"payload":{"code":"THROTTLING_EXCEPTION","description":"Request is throttled."}}
[2019-4-3 16:48:42] posted skill event: 202:
2019-04-03 16:48:57 caching: GA_TI_TO-temperature: 17.68 C
[2019-4-3 16:48:57] [FHEM] caching: CurrentTemperature: 17.68 (as number; from '17.68 C')
. . . .
[2019-4-6 17:32:24] reloading http://192.168.2.244:8083/fhem
[2019-4-6 17:32:24] removing KL_TI_TK from http://192.168.2.244:8083/fhem
[2019-4-6 17:32:24] [FHEM] Fetching FHEM devices...
[2019-4-6 17:32:24] [FHEM] fetching: http://192.168.2.244:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=1&XHR=1
*** FHEM: connected
[2019-4-6 17:32:25] [FHEM] got: 0 results
[2019-4-6 17:34:59] reloading http://192.168.2.244:8083/fhem
[2019-4-6 17:34:59] removing KL_TI_TK from http://192.168.2.244:8083/fhem
[2019-4-6 17:34:59] [FHEM] Fetching FHEM devices...
[2019-4-6 17:34:59] [FHEM] fetching: http://192.168.2.244:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=1&XHR=1
*** FHEM: connected
[2019-4-6 17:34:59] [FHEM] got: 1 results
[2019-4-6 17:34:59] [FHEM] AZ_SK_D1 is outlet
[2019-4-6 17:34:59] [FHEM] AZ_SK_D1 has
[2019-4-6 17:34:59] [FHEM] On [state;on,off]
2019-04-06 17:34:59 caching: AZ_SK_D1-state: off
[2019-4-6 17:34:59] refreshing token
[2019-4-6 17:34:59] failed to refresh token: invalid_grant: 'The request has an invalid grant parameter : refresh_token'
[7.4.2019, 23:31:07] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[7.4.2019, 23:31:07] os.homedir()=/root
[7.4.2019, 23:31:07] os.homedir() set to /root, but this is not writable
[7.4.2019, 23:31:07] process.env.HOME=/root
[7.4.2019, 23:31:07] process.env.HOME set to /root, but this is not writable
[7.4.2019, 23:31:07] process.env.HOMEPATH=undefined
[7.4.2019, 23:31:07] process.env.USERPROFILE=undefined
[7.4.2019, 23:31:07] process.env.PWD=undefined
[7.4.2019, 23:31:07] No suitable, writable users home directory found
Startup rejected. Reason: TypeError: Path must be a string. Received undefined
pi@PC-RaspBerry-3:~ $ ps -ef | grep fhem
fhem 526 1 0 09:51 ? 00:00:02 /usr/bin/perl fhem.pl fhem.cfg
fhem 903 526 99 09:57 ? 00:00:02 node /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg -a xx:xx
pi 910 719 0 09:57 pts/0 00:00:00 grep --color=auto fhem
pi@PC-RaspBerry-3:/opt/fhem $ sudo su fhem
fhem@PC-RaspBerry-3:~$ echo ~
/opt/fhem
fhem@PC-RaspBerry-3:~$
[9.4.2019, 09:52:39] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[9.4.2019, 09:52:39] os.homedir()=/root
[9.4.2019, 09:52:39] os.homedir() set to /root, but this is not writable
[9.4.2019, 09:52:39] process.env.HOME=/root
[9.4.2019, 09:52:39] process.env.HOME set to /root, but this is not writable
[9.4.2019, 09:52:39] process.env.HOMEPATH=undefined
[9.4.2019, 09:52:39] process.env.USERPROFILE=undefined
[9.4.2019, 09:52:39] process.env.PWD=undefined
[9.4.2019, 09:52:39] No suitable, writable users home directory found
Startup rejected. Reason: TypeError: Path must be a string. Received undefined
[2019-4-9 16:40:37] using config from ./log/alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-4-9 16:40:37] os.homedir()=/var/www/GB/FH
[2019-4-9 16:40:37] this is alexa-fhem 0.5.26
[2019-4-9 16:40:37] connecting to FHEM ...
[2019-4-9 16:40:39] [FHEM] trying longpoll to listen for fhem events
[2019-4-9 16:40:39] [FHEM] starting longpoll: http://192.168.2.244:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1554820839515
[2019-4-9 16:45:34] [FHEM] got csrfToken: 1
[2019-4-9 16:45:34] [FHEM] Checking devices and attributes...
[2019-4-9 16:45:34] [FHEM] executing: http://192.168.2.244:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=1&XHR=1
[2019-4-9 16:45:34] [FHEM] executing: http://192.168.2.244:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=1&XHR=1
[2019-4-9 16:45:34] [FHEM] waiting for events ...
[2019-4-9 16:45:34] [FHEM] Fetching FHEM devices...
[2019-4-9 16:45:34] [FHEM] fetching: http://192.168.2.244:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=1&XHR=1
[2019-4-9 16:45:41] [FHEM] alexa device is Alexa
[2019-4-9 16:45:41] [FHEM] executing: http://192.168.2.244:8083/fhem?cmd=%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7BAlexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.26%22%7D%3B%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=1&XHR=1
[2019-4-9 16:45:41] [FHEM] executing: http://192.168.2.244:8083/fhem?cmd=%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20Alexa%20proxyToken%3B%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=1&XHR=1
[2019-4-9 16:45:41] [FHEM] executing: http://192.168.2.244:8083/fhem?cmd=%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20Alexa%20.eventToken%3B%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=1&XHR=1
[2019-4-9 16:45:42] Server listening on: http://127.0.0.1:38981 for proxy connections
[2019-4-9 16:45:42] *** SSH: checking proxy configuration
[2019-4-9 16:45:42] sshautoconf: home=/var/www/GB/FH, spath=/var/www/GB/FH/.alexa, cpath=./log/alexa-fhem.cfg, sshpath=/var/www/GB/FH/.ssh
[2019-4-9 16:45:42] Passed config: {"connections":[{"name":"FHEM","port":"8083","filter":"alexaName=..*","uid":999,"server":"192.168.2.244","webname":"fhem"}],"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/var/www/GB/FH/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":38981}}
[2019-4-9 16:45:42] sshautoconf: SSH key seems to exist
[2019-4-9 16:45:42] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-4-9 16:45:42] [FHEM] executing: http://192.168.2.244:8083/fhem?cmd=%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20Alexa%3B%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=1&XHR=1
*** FHEM: connected
[2019-4-9 16:45:42] [FHEM] got: 10 results
[2019-4-9 16:45:42] [FHEM] AZ_HZ_T1 is thermostat
[2019-4-9 16:45:42] [FHEM] AZ_HZ_T1 has
[2019-4-9 16:45:42] [FHEM] BatteryLevel [battery]
[2019-4-9 16:45:42] [FHEM] StatusLowBattery [battery]
[2019-4-9 16:45:42] [FHEM] TargetTemperature [temperature]
[2019-4-9 16:45:42] [FHEM] CurrentHeatingCoolingState [undefined]
2019-04-09 16:45:42 caching: AZ_HZ_T1-battery: 83 %
[2019-4-9 16:45:42] [FHEM] AZ_SK_D1 is outlet
[2019-4-9 16:45:42] [FHEM] AZ_SK_D1 has
[2019-4-9 16:45:42] [FHEM] On [state;on,off]
2019-04-09 16:45:42 caching: AZ_SK_D1-state: off
. . . . (von mir herausgestrichen)
[2019-4-9 16:45:42] [FHEM] WZ_RL_TT is blind
[2019-4-9 16:45:42] [FHEM] WZ_RL_TT has
[2019-4-9 16:45:42] [FHEM] Custom Power [power]
[2019-4-9 16:45:42] [FHEM] Custom Energy [energy]
[2019-4-9 16:45:42] [FHEM] CurrentPosition [pct]
[2019-4-9 16:45:42] [FHEM] TargetPosition [pct]
2019-04-09 16:45:42 caching: WZ_RL_TT-power: 0.7 W
[2019-4-9 16:45:42] [FHEM] caching: Custom Power: 0.7 (as number; from '0.7 W')
2019-04-09 16:45:42 caching: WZ_RL_TT-energy: 2.63 kWh
[2019-4-9 16:45:42] [FHEM] caching: Custom Energy: 2.63 (as number; from '2.63 kWh')
[2019-4-9 16:45:42] [FHEM] got .eventToken
[2019-4-9 16:45:42] refreshing token
[2019-4-9 16:45:43] BearerToken '...B3AEE' read from Alexa
[2019-4-9 16:45:43] 39_alexa.pm is new version: true
[2019-4-9 16:45:43] sshautoconf: completed successfully
[2019-4-9 16:45:43] *** SSH: proxy configuration set up done
[2019-4-9 16:45:43] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-4-9 16:45:43] [FHEM] executing: http://192.168.2.244:8083/fhem?cmd=%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20Alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=1&XHR=1
[2019-4-9 16:45:43] Starting SSH with -R 1234:127.0.0.1:38981 -oServerAliveInterval=90 -i /var/www/GB/FH/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[2019-4-9 16:45:43] failed to refresh token: invalid_grant: 'The request has an invalid grant parameter : refresh_token'
[2019-4-9 16:45:43] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-4-9 16:45:43] [FHEM] executing: http://192.168.2.244:8083/fhem?cmd=%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20Alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=1&XHR=1
[2019-4-9 16:45:43] *** SSH: proxy connection established
[2019-4-9 16:45:43] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[2019-4-9 16:48:27] >>>> [ssh] {"directive":{"header":{"namespace":"Alexa.Discovery","name":"Discover","payloadVersion":"3","messageId":"0815"},"payload":{"scope": {"type":"BearerToken","token":"D695F20F-87E881B5A2DB3AEE"}}}}
[2019-4-9 16:48:27] found 10 device(s)
[2019-4-9 16:48:27] <<<< [ssh] {"event":{"header":{"namespace":"Alexa.Discovery","name":"Discover.Response","payloadVersion":"3","messageId":"1f58177a-077e-407e-9758-cf3deeab4c23"},"payload":{"endpoints":[{"endpointId":"ZWave_ed70b42b-47","manufacturerName":"FHEMZWave","modelName":"FHEMDanfoss Z Thermostat 014G0013","version":"<unknown>","friendlyName":"büroheizung","description":"n: AZ_HZ_T1, r: aktoren,alexa","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.ThermostatController","version":"3","properties":{"supported":[{"name":"targetSetpoint"}],"configuration":{"supportsScheduling":false},"proactivelyReported":false,"retrievable":true}}],"displayCategories":["THERMOSTAT"],"cookie":{"device":"AZ_HZ_T1","fuuid":"5c5af353-f33f-fe8d-fee4-bd811236e95214c2"}},{"endpointId":"ZWave_ed70b42b-3073","manufacturerName":"FHEMZWave","modelName":"FHEM<unknown>","version":"<unknown>","friendlyName":"bürosteckdoseeins","description":"n: AZ_SK_D1, r: aktoren,alexa","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.PowerController","version":"3","properties":{"supported":[{"name":"powerState"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["SMARTPLUG"],"cookie":{"device":"AZ_SK_D1","fuuid":"5c5af349-f33f-fe8d-9c94-f596ce8554368fc7"}},{"endpointId":"ZWave_ed70b42b-48","manufacturerName":"FHEMZWave","modelName":"FHEMDanfoss Z Thermostat 014G0013","version":"<unknown>","friendlyName":"badheizung","description":"n: BD_HZ_T1, r: aktoren,alexa","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.ThermostatController","version":"3","properties":{"supported":[{"name":"targetSetpoint"}],"configuration":{"supportsScheduling":false},"proactivelyReported":false,"retrievable":true}}],"displayCategories":["THERMOSTAT"],"cookie":{"device":"BD_HZ_T1","fuuid":"5c5af353-f33f-fe8d-67f5-b00033fd4ca32053"}},{"endpointId":"ZWave_ed70b42b-2817","manufacturerName":"FHEMZWave","modelName":"FHEM<unknown>","version":"<unknown>","friendlyName":"flurlichtgross","description":"n: FL_SK_D1, r: aktoren,alexa","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.PowerController","version":"3","properties":{"supported":[{"name":"powerState"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["SMARTPLUG"],"cookie":{"device":"FL_SK_D1","fuuid":"5c5af349-f33f-fe8d-6a22-e94fc608a57c5578"}},{"endpointId":"ZWave_ed70b42b-2818","manufacturerName":"FHEMZWave","modelName":"FHEM<unknown>","version":"<unknown>","friendlyName":"flurlichtklein","description":"n: FL_SK_D2, r: aktoren,alexa","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.PowerController","version":"3","properties":{"supported":[{"name":"powerState"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["SMARTPLUG"],"cookie":{"device":"FL_SK_D2","fuuid":"5c5af349-f33f-fe8d-383c-d1f742e0ff4d173a"}},{"endpointId":"ZWave_ed70b42b-60","manufacturerName":"FHEMZWave","modelName":"FHEMFIBARO System FGBS001 Universal Binary Sensor","version":"<unknown>","friendlyName":"küchefensterzustand","description":"n: KU_DB_FS, r: detektoren","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.LockController","version":"3","properties":{"supported":[{"name":"lockState"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["SMARTLOCK"],"cookie":{"device":"KU_DB_FS","fuuid":"5ca5d4df-f33f-fe8d-74f1-b3607c66e59e1cad"}},{"endpointId":"ZWave_ed70b42b-15363","manufacturerName":"FHEMZWave","modelName":"FHEM<unknown>","version":"<unknown>","friendlyName":"küchetemperaturinnen","description":"n: KU_TI_FS, r: alexa,detektoren","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.TemperatureSensor","version":"3","properties":{"supported":[{"name":"temperature"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["TEMPERATURE_SENSOR"],"cookie":{"device":"KU_TI_FS","fuuid":"5ca5d5a7-f33f-fe8d-b211-c29e97dd87a056df"}},{"endpointId":"ZWave_ed70b42b-49","manufacturerName":"FHEMZWave","modelName":"FHEMDanfoss Z Thermostat 014G0013","version":"<unknown>","friendlyName":"wohnzimmerheizung","description":"n: WZ_HZ_T1, r: aktoren,alexa","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.ThermostatController","version":"3","properties":{"supported":[{"name":"targetSetpoint"}],"configuration":{"supportsScheduling":false},"proactivelyReported":false,"retrievable":true}}],"displayCategories":["THERMOSTAT"],"cookie":{"device":"WZ_HZ_T1","fuuid":"5c5af353-f33f-fe8d-4cc1-8d7c01e92009eb41"}},{"endpointId":"ZWave_ed70b42b-5890","manufacturerName":"FHEMZWave","modelName":"FHEM<unknown>","version":"<unknown>","friendlyName":"wohnzimmeresstischlicht","description":"n: WZ_LS_ET, r: aktoren,alexa","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.BrightnessController","version":"3","properties":{"supported":[{"name":"brightness"}],"proactivelyReported":false,"retrievable":true}},{"type":"AlexaInterface","interface":"Alexa.PowerController","version":"3","properties":{"supported":[{"name":"powerState"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["LIGHT"],"cookie":{"device":"WZ_LS_ET","fuuid":"5c5af34a-f33f-fe8d-5683-aabff7ac209bd959"}},{"endpointId":"ZWave_ed70b42b-4","manufacturerName":"FHEMZWave","modelName":"FHEMFIBARO System FGRM222 Roller Shutter Controller 2","version":"<unknown>","friendlyName":"wohnzimmerterrassentürrollo","description":"n: WZ_RL_TT, r: aktoren,alexa","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.PercentageController","version":"3","properties":{"supported":[{"name":"percentage"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":[],"cookie":{"device":"WZ_RL_TT","fuuid":"5c5af349-f33f-fe8d-9d84-7d2c2769404bb0df"}}]}}}
[2019-4-9 16:48:44] >>>> [ssh] {"directive":{"header":{"namespace":"Alexa.Authorization","name":"AcceptGrant","messageId":"2c66f731-ca8b-4560-a44f-4562c3971a6c","payloadVersion":"3"},"payload":{"grant":{"type":"OAuth2.AuthorizationCode","code":"RHjcLmdAFUmegjjcVDWR"},"grantee":{"type":"BearerToken","token":"D695F20F-87E881B5A2DB3AEE"}}}}
[2019-4-9 16:48:44] refreshing token
[2019-4-9 16:48:44] <<<< [ssh] {"event":{"header":{"namespace":"Alexa.Authorization","name":"AcceptGrant.Response","payloadVersion":"3","messageId":"21401c5c-fa43-4cc2-870c-aa6b46606bee"},"payload":{}}}
[2019-4-9 16:48:44] failed to refresh token: invalid_grant: 'The request has an invalid grant parameter : refresh_token'
. . . .
[2019-4-9 16:45:42] [FHEM] got .eventToken
[2019-4-9 16:45:42] refreshing token
[2019-4-9 16:45:43] BearerToken '...B3AEE' read from Alexa
[2019-4-9 16:45:43] Starting SSH with -R 1234:127.0.0.1:38981 -oServerAliveInterval=90 -i /var/www/GB/FH/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[2019-4-9 16:45:43] failed to refresh token: invalid_grant: 'The request has an invalid grant parameter : refresh_token'
[2019-4-9 16:45:43] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
Zitat.. jedoch beim anlegen des Devices über define alexa alexa bekomme ich im Device den Hinweis
pi@raspberrypi:~ $ node --version
v8.9.0
pi@raspberrypi:~ $ sudo npm install -g alexa-fhem
+ alexa-fhem@0.1.9
updated 1 package in 52.401s
ZitatMein FHEM-Web ist nicht mit einem User/Passwort-Schutz versehen
STATE
stopped; alexa-fhem not installed. install with 'sudo npm install -g alexa-fhem'.
Zitatpi@raspberrypi:~ $ ps -ef | egrep '(alexa|ssh)'
root 540 1 0 20:14 ? 00:00:00 /usr/sbin/sshd -D
root 1427 540 0 20:24 ? 00:00:00 sshd: pi [priv]
pi 1484 1427 0 20:25 ? 00:00:00 sshd: pi@pts/0
pi 1840 1487 0 20:45 pts/0 00:00:00 grep -E --color=auto (alexa|ssh)
Zitat+ alexa-fhem@0.1.9das ist ur alt. aktuell ist 0.5.26. hast du noch irgendetwas altes im aktuellen Verzeichnis wenn du das sudo npm install -g alexa-fhem startest? geh mal in ein anderes verzeichnis.
Zitat von: justme1968 am 09 April 2019, 21:33:45
@Dittel: hue sollte automatisch gehen. zeig mal bitte die discovery antwort aus dem log und die den status im log wenn du die lampe in der alexa app offen hat.
{
"connections" : [
{
"name" : "FHEM",
"port" : "8083",
"filter" : "alexaName=..*",
"uid" : 999,
"server" : "192.168.2.244",
"webname" : "fhem"
}
],
"sshproxy" : {
"ssh" : "/usr/bin/ssh",
"description" : "FHEM Connector"
}
}
READINGS:
2019-03-30 10:19:03 .eventToken {"access_token":"Atza|IwEBIMdo9vzsk4MCQba7aadQD-y3B416wS41HugjidjxRyIscwCeorFsANbY5CHXq_skgKvsC5BEuRnvgngqMj_XZ0lsxJt-bc7V7xBeKh3LvSsXeNtGKgAw91uEYMZfoMmFinFvvfGx4WVgrte6ZrMcKeJoPgZz-lEE1rSzNK5iSfSf4wAvFlvUyOZ5JYBFmnqLzlM9klaaCtIhoyRu5mddUwhSPm6UA4qGPCw0mQ5rG1LSw3-QOrWrNLo2bqKSHolpeaurF3skgVMtrTfRbgikLzor2FA6r16vNEtZKsYuBG0doabmWgH6zLdTr9KZp9trwpG3nB56gLg8fv_t0k8QRWTX","refresh_token":"Atzr|IwEBINlL9f6EYqqIuvEKdJVVWCMTEjQxBk1ZfrQl9YnUVFhDZSirG2QoFOS4Yg4MqxXllLpqUE7MNF9DALAm5LtDFgHoGweIkqpoBf-ki0UTu5UKCqPDS9tgp6r2gaOLpAaW3TPzj-yavdKfWWp-mcJRB_RlNcxCQkBLyjbLeSyFVJi3fCj-sovVCyQfmjKiqh_buw4eNR-aFUknDlXtUlHuVkzzvwSLTJtIm9zQo8JXlTnqsh7hOwSr4u3BsSD8yduQfLauw8pL5DsPBqS4BZ5XqaVC71KjW-MfsmAl6vp0w1R84zRaXLUa5Dxb1cnmNmX40_8T3tZUNCTO8LbU5HB1derF","token_type":"bearer","expires_in":3600}
2019-04-10 16:22:24 alexaFHEM running /usr/bin/alexa-fhem
2019-04-10 16:22:30 alexaFHEM.ProxyConnection running; SSH connected
. . . .
defmod rp_alexa_neustart readingsProxy alexa:state
attr rp_alexa_neustart alexaName restart
attr rp_alexa_neustart devStateIcon on:control_on_off@green off:control_standby
attr rp_alexa_neustart event-on-change-reading .*
attr rp_alexa_neustart genericDeviceType switch
attr rp_alexa_neustart room Sprachsteuerung
attr rp_alexa_neustart setFn { return 'restart' if( $CMD eq 'on' );; return 'off';; }
attr <alexa> genericDeviceType switch
attr <alexa> homebridgeMapping On=state,valueOn=/^running/:on,cmdOn=restart,cmdOff=stop
Zitatich bekomme weiterhin folgende STATE information
pi@raspberrypi:~ $ node --version
v8.9.0
pi@raspberrypi:~ $ sudo npm install -g alexa-fhem
+ alexa-fhem@0.1.9
updated 1 package in 52.401s
Zitat
stopped; alexa-fhem not installed. install with 'sudo npm install -g alexa-fhem'.
Zitatpi@raspberrypi:~ $ sudo npm install -g alexa-fhem
npm ERR! Unexpected end of JSON input while parsing near '...s","version":"2.0.1",'
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-14T07_09_04_981Z-debug.log
Zitatpi@raspberrypi:~ $ node --version
v8.9.0
Zitat von: Bischemer am 14 April 2019, 07:42:33
Hallo justme1968,
irgendwie komme ich nicht weiter. Hatte zur Sicherheit mal das ganze Alexa-Fhem Verzeichnis gelöscht und nochmals neu installiert. Es werden dabei keine Fehler angezeigt. Jedoch hat sich leider nichts geändertich bekomme weiterhin folgende STATE information
Leider bin ich auch kein Linux Experte und gerade etwas verzweifelt. Kannst Du mir noch ein Tipp geben wo ich nachsehen kann bzw. was ich noch versuchen kann um die aktuelle alexa-fhem Version ins System zu bekommen.
Vielen Dank für jeden Hinweis/Tipp
pi@raspberrypi:~ $ ps -ef | egrep '(alexa|ssh)'
root 449 1 0 08:28 ? 00:00:00 /usr/sbin/sshd -D
pi 758 679 0 08:28 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus -launch --exit-with-session x-session-manager
pi 828 1 0 08:29 ? 00:00:00 /usr/bin/ssh-agent -s
root 950 449 1 08:30 ? 00:00:50 sshd: root@notty
root 967 950 1 08:30 ? 00:00:30 /usr/lib/openssh/sftp-server
root 1653 449 0 09:08 ? 00:00:00 sshd: pi [priv]
pi 1660 1653 0 09:08 ? 00:00:00 sshd: pi@pts/0
pi 1708 1662 0 09:14 pts/0 00:00:00 grep -E --color=auto (alexa|ssh)
Zitat von: Byte09 am 15 April 2019, 08:28:59
bist du mit diesem Problem weiter gekommen ? Stehe leider vor gleichem Problem und beisse mir gerade ( und das nicht zum ersten mal ) die Zähne daran aus ?
# Remember currently installed NPM packages
NPM_INSTALLED_G=$(npm list -g --parseable --depth=0 | tail -n +2 | awk '{gsub(/\/.*\//,"",$1); print}' | grep -v -E "^npm$" | tr '\n' ' ')
NPM_INSTALLED=$(npm list --parseable --depth=0 | tail -n +2 | awk '{gsub(/\/.*\//,"",$1); print}' | grep -v -E "^npm$" | tr '\n' ' ')
# Uninstall Node.js and all installed Node packages
sudo apt purge -y nodejs
sudo apt autoremove -y
sudo apt-get clean
sudo rm -rfv /var/lib/apt/lists/* /etc/apt/sources.list.d/nodesource.list /usr/lib/node_modules /root/.npm $HOME/node_modules $HOME/.npm $HOME/package.json $HOME/package-lock.json
# install Node.js v10
curl -fsSL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt install -y nodejs
# Update NPM
sudo npm -g install npm
# Re-install alexa-fhem and any package that was installed before in global context
sudo npm -g install alexa-fhem $NPM_INSTALLED_G $NPM_INSTALLED
# Print global installed packages
npm list -g --depth=0
# Print user installed packages (should be empty!)
npm list --depth=0
properties.push({
"namespace": "Alexa.EndpointHealth",
"name": "connectivity",
"value": {
"value": "OK"
},
"timeOfSample": new Date(Date.now()).toISOString(),
"uncertaintyInMilliseconds": 0
});
if( mapping = device.mappings.ContactSensorState ) {
var current = device.fhem.reading2homekit(mapping, device.fhem.cached(mapping.informId));
if( current === 'CONTACT_DETECTED' || current === 'Closed' || current === 'closed' )
current = 'NOT_DETECTED';
else
current = 'DETECTED';
if( current !== undefined ) {
properties.push( {
"namespace": NAMESPACE_ContactSensor,
"name": "detectionState",
"value": current,
"timeOfSample": new Date(Date.now()).toISOString(),
"uncertaintyInMilliseconds": 500
} );
properties.push({
"namespace": "Alexa.EndpointHealth",
"name": "connectivity",
"value": {"value": "OK" },
"timeOfSample": new Date(Date.now()).toISOString(),
"uncertaintyInMilliseconds": 500
} );
}
}
Internals:
DEF ShutterContact 1488d0
FUUID 5c4d5efd-f33f-8d06-aeaf-72a2f01aeaaa1098
IODev cm
LASTInputDev cm
MSGCNT 3
NAME eg_bad_fk1
NR 69
RSSI -81.5
STATE closed
TYPE MAX
addr 1488d0
backend cm
cm_MSGCNT 3
cm_TIME 2019-05-01 12:50:37
rferror 0
type ShutterContact
READINGS:
2019-05-01 12:50:37 RSSI -81.5
2019-05-01 12:50:37 battery ok
2019-05-01 12:50:37 batteryState ok
2016-10-31 21:34:38 firmware 1.0
2016-10-31 21:34:38 groupid 0
2016-10-31 21:34:38 msgcnt 3
2019-05-01 12:50:37 onoff 0
2019-05-01 12:50:37 state closed
2016-10-31 21:34:38 testresult 2
internals:
interfaces switch_active;battery
Attributes:
IODev cm
alexaName Fenster Bad
room MAX
Zitatdefmod HM_Sec_SCo_OEQ0424862 HMCCUDEV OEQ0424862Im Alexa-Log ist dieser Eintrag vorhanden:
attr HM_Sec_SCo_OEQ0424862 IODev HMCCU3
attr HM_Sec_SCo_OEQ0424862 alexaName Kuechenfenster
attr HM_Sec_SCo_OEQ0424862 alias HM Fensterkontakt Küche
attr HM_Sec_SCo_OEQ0424862 devStateStyle style="text-align:right"
attr HM_Sec_SCo_OEQ0424862 genericDeviceType contact
attr HM_Sec_SCo_OEQ0424862 group HM Fenster-/Türkontakte
attr HM_Sec_SCo_OEQ0424862 hmstatevals ERROR!7:sabotage;;SABOTAGE!1:sabotage
attr HM_Sec_SCo_OEQ0424862 icon hm-sec-win@black
attr HM_Sec_SCo_OEQ0424862 stateFormat {"Status: ".ReadingsVal($name,"state" ,"")." / LastOpen: ".ReadingsVal($name,"LastOpen","")}
attr HM_Sec_SCo_OEQ0424862 statedatapoint 1.STATE
attr HM_Sec_SCo_OEQ0424862 substitute STATE!(0|false):closed,(1|true):open
attr HM_Sec_SCo_OEQ0424862 userReadings LastOpen:1.STATE.* {if (ReadingsVal($name,"state","") eq "open") {ReadingsTimestamp($name,"state","") =~ /^(\d+)-(\d+)-(\d+)\s(\d+:\d+:\d+)$/;; return "$3.$2.$1 - $4";;} else {ReadingsVal($name,"LastOpen","")}}
Zitat[2019-5-1 20:06:08] [FHEM] HM_Sec_SCo_OEQ0424862 is contactIn der Alexa-App wird der Kontakt nicht gefunden.
[2019-5-1 20:06:08] [FHEM] HM_Sec_SCo_OEQ0424862 has
[2019-5-1 20:06:08] [FHEM] StatusLowBattery [battery]
2019-05-01 20:06:08 caching: HM_Sec_SCo_OEQ0424862-battery: ok
Internals:
CFGFN
FD 63
FUUID 5ccb32f9-f33f-915e-301b-f75dc1e5b70801fa
FVERSION 39_alexa.pm:0.190980/2019-04-02
LAST_START 2019-05-02 20:23:47
LAST_STOP 2019-05-02 20:23:47
NAME alexa
NOTIFYDEV global,global:npmjs.*alexa-fhem.*
NR 1937
NTFY_ORDER 50-alexa
PARTIAL
PID 8658
STARTS 2
STATE running /usr/bin/alexa-fhem
TYPE alexa
active 0
alexa-fhem version 0.5.27
currentlogfile ./log/alexa-2019-05-02.log
logfile ./log/alexa-%Y-%m-%d.log
CoProcess:
cmdFn alexa_getCMD
name alexaFHEM
state running /usr/bin/alexa-fhem
READINGS:
2019-05-02 20:23:47 alexaFHEM running /usr/bin/alexa-fhem
2019-05-02 20:23:56 alexaFHEM.ProxyConnection error; ssh-keygen returned error - key_save_private: No such file or directory
helper:
Attributes:
alexaFHEM-config ./alexa-fhem.cfg
alexaFHEM-log ./log/alexa-%Y-%m-%d.log
alexaMapping #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
alexaTypes #Type=<alias>[,<alias2>[,...]]
light=licht,lampen
blind=rolladen,rolläden,jalousie,jalousien,rollo,rollos
devStateIcon stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop
echoRooms #<deviceId>=<room>
fhemIntents #IntentName=<sample utterance>
gutenMorgen=guten morgen
guteNacht=gute nacht
room System
stateFormat alexaFHEM
*** SSH: checking proxy configuration
Zitat von: gvzdus am 02 Mai 2019, 20:35:16
Beim Lesen oder Posten von dem, was im "alexa...log" steht. Beginnend am besten beiCode Auswählen*** SSH: checking proxy configuration
bis dahin, wo der Fehler kommt.
Falls Du es hier postest, bitte ein eventuell enthaltenes BearerToken (Lange Hex-Sequenzen) ausXen!
[2019-5-2 20:28:36] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20error%3B%3B%20ssh-keygen%20returned%20error%20-%20key_save_private%3A%20No%20such%20file%20or%20directory%0D%0A%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:28:36] Reading alexaFHEM.ProxyConnection set to error;; ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:28:35] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-5-2 20:28:35] [FHEM] got: 0 results
*** FHEM: connected
[2019-5-2 20:28:35] *** SSH: proxy configuration failed: ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:28:35] sshautoconf: aborted with ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:28:28] sshautoconf: No SSH public key found, we have to generate one.
[2019-5-2 20:28:28] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":53834},"connections":[{"name":"FHEM","uid":0,"webname":"fhem","port":"8083","filter":"alexaName=..*","server":"127.0.0.1"}]}
[2019-5-2 20:28:28] sshautoconf: home=/, spath=/.alexa, cpath=./alexa-fhem.cfg, sshpath=/.ssh
[2019-5-2 20:28:28] *** SSH: checking proxy configuration
sshautoconf: home=/
const srcNames = [ "os.homedir()", "process.env.HOME", "process.env.HOMEPATH", "process.env.USERPROFILE", "process.env.PWD" ];
Zitat von: gvzdus am 02 Mai 2019, 21:14:47
Oje, das alte Homedir-Problem:Code Auswählensshautoconf: home=/
bedeutet, dass er ins Hauptverzeichnis schreiben will.
Genaugenommen probiere "ich" 5 verschiedene Variablen durch, um das elende Homedir zu finden:Code Auswählenconst srcNames = [ "os.homedir()", "process.env.HOME", "process.env.HOMEPATH", "process.env.USERPROFILE", "process.env.PWD" ];
Er loggt eigentlich auch das Ergebnis dieser Suche, beginnend mit "os.homedir() = ..." - die Stelle findest Du nicht?
[2019-5-2 21:05:20] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20error%3B%3B%20ssh-keygen%20returned%20error%20-%20key_save_private%3A%20No%20such%20file%20or%20directory%0D%0A%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 21:05:20] Reading alexaFHEM.ProxyConnection set to error;; ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 21:05:19] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-5-2 21:05:19] [FHEM] got: 0 results
*** FHEM: connected
[2019-5-2 21:05:19] *** SSH: proxy configuration failed: ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 21:05:19] sshautoconf: aborted with ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 21:05:12] sshautoconf: No SSH public key found, we have to generate one.
[2019-5-2 21:05:12] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":40836},"connections":[{"name":"FHEM","uid":0,"port":"8083","webname":"fhem","filter":"alexaName=..*","server":"127.0.0.1"}]}
[2019-5-2 21:05:12] sshautoconf: home=/, spath=/.alexa, cpath=./alexa-fhem.cfg, sshpath=/.ssh
[2019-5-2 21:05:12] *** SSH: checking proxy configuration
[2019-5-2 21:05:12] Server listening on: http://127.0.0.1:40836 for proxy connections
[2019-5-2 21:05:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 21:05:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 21:05:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.27%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 21:05:12] [FHEM] alexa device is alexa
[2019-5-2 21:05:12] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-5-2 21:05:12] [FHEM] Fetching FHEM devices...
[2019-5-2 21:05:12] [FHEM] waiting for events ...
[2019-5-2 21:05:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-5-2 21:05:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-5-2 21:05:12] [FHEM] Checking devices and attributes...
[2019-5-2 21:05:12] [FHEM] got csrfToken:
[2019-5-2 21:05:11] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1556823911950
[2019-5-2 21:05:11] [FHEM] trying longpoll to listen for fhem events
[2019-5-2 21:05:10] connecting to FHEM ...
[2019-5-2 21:05:10] this is alexa-fhem 0.5.27
[2019-5-2 21:05:10] os.homedir()=/
*** CONFIG: parsed completely
[2019-5-2 21:05:10] using config from ./alexa-fhem.cfg
[2019-5-2 21:03:53] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 21:03:53] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-5-2 21:03:53] Got SIGTERM, shutting down alexa-fhem...
[2019-5-2 20:28:36] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20error%3B%3B%20ssh-keygen%20returned%20error%20-%20key_save_private%3A%20No%20such%20file%20or%20directory%0D%0A%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:28:36] Reading alexaFHEM.ProxyConnection set to error;; ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:28:35] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-5-2 20:28:35] [FHEM] got: 0 results
*** FHEM: connected
[2019-5-2 20:28:35] *** SSH: proxy configuration failed: ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:28:35] sshautoconf: aborted with ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:28:28] sshautoconf: No SSH public key found, we have to generate one.
[2019-5-2 20:28:28] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":53834},"connections":[{"name":"FHEM","uid":0,"webname":"fhem","port":"8083","filter":"alexaName=..*","server":"127.0.0.1"}]}
[2019-5-2 20:28:28] sshautoconf: home=/, spath=/.alexa, cpath=./alexa-fhem.cfg, sshpath=/.ssh
[2019-5-2 20:28:28] *** SSH: checking proxy configuration
[2019-5-2 20:28:28] Server listening on: http://127.0.0.1:53834 for proxy connections
[2019-5-2 20:28:28] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:28:28] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:28:28] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.27%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:28:28] [FHEM] alexa device is alexa
[2019-5-2 20:28:28] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-5-2 20:28:28] [FHEM] Fetching FHEM devices...
[2019-5-2 20:28:28] [FHEM] waiting for events ...
[2019-5-2 20:28:28] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-5-2 20:28:28] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-5-2 20:28:28] [FHEM] Checking devices and attributes...
[2019-5-2 20:28:28] [FHEM] got csrfToken:
[2019-5-2 20:28:28] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1556821708058
[2019-5-2 20:28:28] [FHEM] trying longpoll to listen for fhem events
[2019-5-2 20:28:26] connecting to FHEM ...
[2019-5-2 20:28:26] this is alexa-fhem 0.5.27
[2019-5-2 20:28:26] os.homedir()=/
*** CONFIG: parsed completely
[2019-5-2 20:28:26] using config from ./alexa-fhem.cfg
[2019-5-2 20:28:25] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:28:25] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-5-2 20:28:25] Got SIGTERM, shutting down alexa-fhem...
[2019-5-2 20:23:56] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20error%3B%3B%20ssh-keygen%20returned%20error%20-%20key_save_private%3A%20No%20such%20file%20or%20directory%0D%0A%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:23:56] Reading alexaFHEM.ProxyConnection set to error;; ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:23:55] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-5-2 20:23:55] [FHEM] got: 0 results
*** FHEM: connected
[2019-5-2 20:23:55] *** SSH: proxy configuration failed: ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:23:55] sshautoconf: aborted with ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:23:50] sshautoconf: No SSH public key found, we have to generate one.
[2019-5-2 20:23:50] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":34990},"connections":[{"name":"FHEM","uid":0,"webname":"fhem","port":"8083","filter":"alexaName=..*","server":"127.0.0.1"}]}
[2019-5-2 20:23:50] sshautoconf: home=/, spath=/.alexa, cpath=./alexa-fhem.cfg, sshpath=/.ssh
[2019-5-2 20:23:50] *** SSH: checking proxy configuration
[2019-5-2 20:23:50] Server listening on: http://127.0.0.1:34990 for proxy connections
[2019-5-2 20:23:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:23:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:23:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.27%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:23:50] [FHEM] alexa device is alexa
[2019-5-2 20:23:49] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-5-2 20:23:49] [FHEM] Fetching FHEM devices...
[2019-5-2 20:23:49] [FHEM] waiting for events ...
[2019-5-2 20:23:49] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-5-2 20:23:49] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-5-2 20:23:49] [FHEM] Checking devices and attributes...
[2019-5-2 20:23:49] [FHEM] got csrfToken:
[2019-5-2 20:23:49] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1556821429670
[2019-5-2 20:23:49] [FHEM] trying longpoll to listen for fhem events
[2019-5-2 20:23:48] connecting to FHEM ...
[2019-5-2 20:23:48] this is alexa-fhem 0.5.27
[2019-5-2 20:23:48] os.homedir()=/
*** CONFIG: parsed completely
[2019-5-2 20:23:48] using config from ./alexa-fhem.cfg
[2019-5-2 20:23:46] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:23:46] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-5-2 20:23:46] Got SIGTERM, shutting down alexa-fhem...
[2019-5-2 20:12:19] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20error%3B%3B%20ssh-keygen%20returned%20error%20-%20key_save_private%3A%20No%20such%20file%20or%20directory%0D%0A%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:12:19] Reading alexaFHEM.ProxyConnection set to error;; ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:12:18] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-5-2 20:12:18] [FHEM] got: 0 results
*** FHEM: connected
[2019-5-2 20:12:18] *** SSH: proxy configuration failed: ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:12:18] sshautoconf: aborted with ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:12:12] sshautoconf: No SSH public key found, we have to generate one.
[2019-5-2 20:12:12] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":44510},"connections":[{"name":"FHEM","uid":0,"webname":"fhem","port":"8083","filter":"alexaName=..*","server":"127.0.0.1"}]}
[2019-5-2 20:12:12] sshautoconf: home=/, spath=/.alexa, cpath=./alexa-fhem.cfg, sshpath=/.ssh
[2019-5-2 20:12:12] *** SSH: checking proxy configuration
[2019-5-2 20:12:12] Server listening on: http://127.0.0.1:44510 for proxy connections
[2019-5-2 20:12:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:12:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:12:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.27%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:12:12] [FHEM] alexa device is alexa
[2019-5-2 20:12:12] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-5-2 20:12:12] [FHEM] Fetching FHEM devices...
[2019-5-2 20:12:12] [FHEM] waiting for events ...
[2019-5-2 20:12:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-5-2 20:12:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-5-2 20:12:12] [FHEM] Checking devices and attributes...
[2019-5-2 20:12:12] [FHEM] got csrfToken:
[2019-5-2 20:12:12] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1556820732374
[2019-5-2 20:12:12] [FHEM] trying longpoll to listen for fhem events
[2019-5-2 20:12:11] connecting to FHEM ...
[2019-5-2 20:12:11] this is alexa-fhem 0.5.27
[2019-5-2 20:12:11] os.homedir()=/
*** CONFIG: parsed completely
[2019-5-2 20:12:11] using config from ./alexa-fhem.cfg
[2019-5-2 20:11:52] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:11:52] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-5-2 20:11:52] Got SIGTERM, shutting down alexa-fhem...
[2019-5-2 20:03:51] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20error%3B%3B%20ssh-keygen%20returned%20error%20-%20key_save_private%3A%20No%20such%20file%20or%20directory%0D%0A%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:03:51] Reading alexaFHEM.ProxyConnection set to error;; ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:03:50] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-5-2 20:03:50] [FHEM] got: 0 results
*** FHEM: connected
[2019-5-2 20:03:50] *** SSH: proxy configuration failed: ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:03:50] sshautoconf: aborted with ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:03:47] sshautoconf: No SSH public key found, we have to generate one.
[2019-5-2 20:03:47] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":41069},"connections":[{"filter":"alexaName=..*","name":"FHEM","uid":0,"port":"8083","webname":"fhem","server":"127.0.0.1"}]}
[2019-5-2 20:03:47] sshautoconf: home=/, spath=/.alexa, cpath=./alexa-fhem.cfg, sshpath=/.ssh
[2019-5-2 20:03:46] *** SSH: checking proxy configuration
[2019-5-2 20:03:46] Server listening on: http://127.0.0.1:41069 for proxy connections
[2019-5-2 20:03:46] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:03:46] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:03:46] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.27%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:03:46] [FHEM] alexa device is alexa
[2019-5-2 20:03:46] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-5-2 20:03:46] [FHEM] Fetching FHEM devices...
[2019-5-2 20:03:46] [FHEM] waiting for events ...
[2019-5-2 20:03:46] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-5-2 20:03:46] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-5-2 20:03:46] [FHEM] Checking devices and attributes...
[2019-5-2 20:03:46] [FHEM] got csrfToken:
[2019-5-2 20:03:46] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1556820226532
[2019-5-2 20:03:46] [FHEM] trying longpoll to listen for fhem events
[2019-5-2 20:03:45] connecting to FHEM ...
[2019-5-2 20:03:45] this is alexa-fhem 0.5.27
[2019-5-2 20:03:45] os.homedir()=/
*** CONFIG: parsed completely
[2019-5-2 20:03:45] using config from ./alexa-fhem.cfg
[2019-5-2 20:03:24] [FHEM] genericDeviceType attribute was not known. please restart.
[2019-5-2 20:03:24] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-5-2 20:03:24] [FHEM] got: 0 results
*** FHEM: connected
[2019-5-2 20:03:24] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7BaddToAttrList(%20%22genericDeviceType%3Asecurity%2Cignore%2Cswitch%2Coutlet%2Clight%2Cblind%2Cthermometer%2Cthermostat%2Ccontact%2Cgarage%2Cwindow%2Clock%2Cscene%22%20)%20%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:03:24] [FHEM] homebridgeMapping attribute created.
[2019-5-2 20:03:24] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%20addToAttrList(%20%22homebridgeMapping%3AtextField-long%22%20)%20%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:03:24] *** SSH: proxy configuration failed: ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:03:24] sshautoconf: aborted with ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 20:03:21] sshautoconf: No SSH public key found, we have to generate one.
[2019-5-2 20:03:21] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":43593},"connections":[{"filter":"alexaName=..*","name":"FHEM","uid":0,"port":"8083","webname":"fhem","server":"127.0.0.1"}]}
[2019-5-2 20:03:21] sshautoconf: Creating directory /.alexa
[2019-5-2 20:03:21] sshautoconf: env={"CONSOLE":"/dev/console","HOME":"/","OLDPWD":"/","runlevel":"2","INIT_VERSION":"sysvinit-2.88","TERM":"linux","COLUMNS":"82","PATH":"/sbin:/usr/sbin:/bin:/usr/bin","RUNLEVEL":"2","PREVLEVEL":"N","SHELL":"/bin/sh","PWD":"/opt/fhem","previous":"N","LINES":"26","PERL_JSON_BACKEND":"Cpanel::JSON::XS,JSON::XS,JSON::PP,JSON::backportPP"}
[2019-5-2 20:03:21] sshautoconf: home=/, spath=/.alexa, cpath=./alexa-fhem.cfg, sshpath=/.ssh
[2019-5-2 20:03:21] *** SSH: checking proxy configuration
[2019-5-2 20:03:21] Server listening on: http://127.0.0.1:43593 for proxy connections
[2019-5-2 20:03:21] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:03:21] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:03:21] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.27%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 20:03:21] [FHEM] alexa device is alexa
[2019-5-2 20:03:21] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-5-2 20:03:21] [FHEM] Fetching FHEM devices...
[2019-5-2 20:03:21] [FHEM] waiting for events ...
[2019-5-2 20:03:21] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-5-2 20:03:21] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-5-2 20:03:21] [FHEM] Checking devices and attributes...
[2019-5-2 20:03:21] [FHEM] got csrfToken:
[2019-5-2 20:03:20] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1556820200952
[2019-5-2 20:03:20] [FHEM] trying longpoll to listen for fhem events
[2019-5-2 20:03:19] connecting to FHEM ...
[2019-5-2 20:03:19] this is alexa-fhem 0.5.27
[2019-5-2 20:03:19] os.homedir()=/
*** CONFIG: parsed completely
[2019-5-2 20:03:18] using config from ./alexa-fhem.cfg
root@raspberrypi:/opt/fhem/FHEM# ls -ld /
drwxr-xr-x 23 root root 4096 Dez 19 2017 /
sudo chmod 755 /
Zitat von: gvzdus am 02 Mai 2019, 21:36:28
Hmmh. Fragen:
1) FHEM wird automatisch gestartet und läuft als User fhem?
2) Eigentlich sollte er "/" als Verzeichnis nicht akzeptieren, denn da darf er kein Unterverzeichnis .ssh anlegen. Mich irritiert, dass die Prüfung fehlschlägt. Könntest Du daher bitte ein "ls -ld /" auf der Kommandozeile absetzen? Bei mir sieht das so aus:Code Auswählenroot@raspberrypi:/opt/fhem/FHEM# ls -ld /
drwxr-xr-x 23 root root 4096 Dez 19 2017 /
Datum ist natürlich Schall und Rauch, aber wenn da am Anfang "drwxrwxrwx" steht, dann bitte einmalCode Auswählensudo chmod 755 /
absetzen.
root@raspberrypi:/opt/fhem# ls -ld /
drwxr-xr-x 23 root root 4096 May 2 20:03 /
root@raspberrypi:/opt/fhem#
root@raspberrypi:/opt/fhem# ls -lha /opt/fhem
total 1.5M
drwxr-xr-x 16 fhem dialout 4.0K May 2 21:04 .
drwxr-xr-x 6 root root 4.0K May 1 21:06 ..
-rw-r--r-- 1 fhem dialout 309 May 2 21:04 alexa-fhem.cfg
-rw-r--r-- 1 fhem dialout 309 May 2 20:12 alexa-fhem.cfg.previous
drwxr-xr-x 2 fhem dialout 4.0K May 20 2015 backup
drwxr-xr-x 2 fhem dialout 268K May 2 20:16 backup_cfg-state
-rwxr-xr-x 1 fhem dialout 537 Jun 19 2016 battcheck
-rwxr-xr-x 1 fhem dialout 1.4K Nov 22 2016 batterie_gtag_neu.sh
-rwxr-xr-x 1 fhem dialout 260 Nov 22 2016 batterie_gtag_reto.sh
-rwxr-xr-x 1 fhem dialout 537 Jun 19 2016 batterie_gtag.sh
-rwxr-xr-x 1 fhem dialout 694 Dec 17 2017 cam_copyandnumber.sh
drwxr-xr-x 2 fhem dialout 4.0K Aug 26 2015 certs
-rwxr-xr-x 1 fhem dialout 282K Apr 21 15:42 CHANGED
-rwxr-xr-x 1 fhem dialout 9.8K Jun 12 2016 --char-read
-rwxr-xr-x 1 fhem dialout 39K Apr 7 16:34 configDB.pm
drwxr-xr-x 32 fhem dialout 4.0K Aug 22 2016 contrib
drwxr-xr-x 2 fhem dialout 4.0K Mar 15 2015 demolog
drwxr-xr-x 4 fhem dialout 4.0K Jul 2 2017 docs
drwxr-xr-x 2 fhem dialout 4.0K Feb 27 2017 ESPEasy
drwxr-xr-x 7 fhem dialout 20K May 2 21:04 FHEM
-rwxr-xr-x 1 fhem dialout 211K May 2 20:16 fhem.cfg
-rwxr-xr-x 1 fhem dialout 22K Mar 18 19:18 fhem.cfg.demo
-rwxr-xr-x 1 fhem dialout 0 May 2 22:15 fhem.heartbeat
-rwxr-xr-x 1 fhem dialout 150K Oct 13 2017 fhem_okt.cfg
-rwxr-xr-x 1 fhem dialout 76K Oct 9 2015 fhem_old.cfg
-rwxr-xr-x 1 fhem dialout 89K Dec 1 2015 fhem_older.cfg
-rwxr--r-- 1 fhem dialout 154K Apr 7 16:34 fhem.pl
-rwxr-xr-x 1 fhem dialout 24K Jan 7 2016 homestatus.log
-rwxr-xr-x 1 fhem dialout 11K Jun 12 2016 lepresenced
lrwxrwxrwx 1 fhem dialout 29 Aug 26 2015 log -> /media/usbstick_neu/fhem/log/
drwxr-xr-x 2 fhem dialout 4.0K Oct 2 2015 logs
-rwxr-xr-x 1 fhem dialout 40K Apr 21 15:42 MAINTAINER.txt
drwxr-xr-x 2 fhem dialout 4.0K Aug 26 2015 old_log
-rwxr-xr-x 1 fhem dialout 0 Aug 11 2017 plot0.png
-rwxr-xr-x 1 fhem dialout 0 Aug 11 2017 plot1.png
-rwxr-xr-x 1 fhem dialout 0 Aug 11 2017 plot2.png
-rwxr-xr-x 1 fhem dialout 0 Aug 11 2017 plot3.png
-rwxr-xr-x 1 fhem dialout 89 Aug 12 2017 plot.svg
-rwxr-xr-x 1 fhem dialout 761 Nov 9 2014 README_DEMO.txt
drwxr-xr-x 24 fhem dialout 4.0K May 12 2018 restoreDir
-rwxr-xr-x 1 fhem dialout 20K Apr 16 2015 RINCON_B8E9378CF62001400_MR_Speak.mp3
drwxr-xr-x 2 fhem dialout 4.0K Jan 29 2017 script
drwxr-xr-x 2 fhem dialout 4.0K Feb 10 2016 unused
drwxr-xr-x 11 fhem dialout 4.0K Oct 13 2017 www
root@raspberrypi:/opt/fhem#
[2019-5-2 22:27:22] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20error%3B%3B%20ssh-keygen%20returned%20error%20-%20key_save_private%3A%20No%20such%20file%20or%20directory%0D%0A%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 22:27:22] Reading alexaFHEM.ProxyConnection set to error;; ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 22:27:21] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-5-2 22:27:21] [FHEM] got: 0 results
*** FHEM: connected
[2019-5-2 22:27:21] *** SSH: proxy configuration failed: ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 22:27:21] sshautoconf: aborted with ssh-keygen returned error - key_save_private: No such file or directory
[2019-5-2 22:27:16] sshautoconf: No SSH public key found, we have to generate one.
[2019-5-2 22:27:16] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":35106},"connections":[{"name":"FHEM","uid":0,"port":"8083","webname":"fhem","filter":"alexaName=..*","server":"127.0.0.1"}]}
[2019-5-2 22:27:16] sshautoconf: home=/, spath=/.alexa, cpath=./alexa-fhem.cfg, sshpath=/.ssh
[2019-5-2 22:27:16] *** SSH: checking proxy configuration
[2019-5-2 22:27:16] Server listening on: http://127.0.0.1:35106 for proxy connections
[2019-5-2 22:27:16] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 22:27:16] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 22:27:15] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.27%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 22:27:15] [FHEM] alexa device is alexa
[2019-5-2 22:27:15] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-5-2 22:27:15] [FHEM] Fetching FHEM devices...
[2019-5-2 22:27:15] [FHEM] waiting for events ...
[2019-5-2 22:27:15] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-5-2 22:27:15] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-5-2 22:27:15] [FHEM] Checking devices and attributes...
[2019-5-2 22:27:15] [FHEM] got csrfToken:
[2019-5-2 22:27:15] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1556828835573
[2019-5-2 22:27:15] [FHEM] trying longpoll to listen for fhem events
[2019-5-2 22:27:14] connecting to FHEM ...
[2019-5-2 22:27:14] this is alexa-fhem 0.5.27
[2019-5-2 22:27:14] os.homedir()=/
*** CONFIG: parsed completely
[2019-5-2 22:27:14] using config from ./alexa-fhem.cfg
[2019-5-2 22:27:12] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-5-2 22:27:12] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
const srcNames = [ "os.homedir()", "process.env.HOME", "process.env.HOMEPATH", "process.env.USERPROFILE", "process.env.PWD" ];
for (let src of srcNames) {
const val = eval(src);
log.info(src + "=" + val);
if (val) {
try {
fs.accessSync(val, fs.constants.W_OK);
homedir = val;
return homedir;
} catch (e) {
log.warn(src + " set to " + val + ", but this is not writable");
}
}
}
log.error("No suitable, writable users home directory found")
const srcNames = [ "process.env.PWD", "os.homedir()", "process.env.HOME", "process.env.HOMEPATH", "process.env.USERPROFILE" ];
Zitat von: gvzdus am 02 Mai 2019, 23:02:50
Mich irritiert, dass der Check "Kann ich hier schreiben?" offenbar falsch ausfällt. Ab Zeile 35 findest Du in
/usr/lib/node_modules/alexa-fhem/lib/user.js
die Routine:Code Auswählenconst srcNames = [ "os.homedir()", "process.env.HOME", "process.env.HOMEPATH", "process.env.USERPROFILE", "process.env.PWD" ];
for (let src of srcNames) {
const val = eval(src);
log.info(src + "=" + val);
if (val) {
try {
fs.accessSync(val, fs.constants.W_OK);
homedir = val;
return homedir;
} catch (e) {
log.warn(src + " set to " + val + ", but this is not writable");
}
}
}
log.error("No suitable, writable users home directory found")
Wenn Du heute noch ein Erfolgserlebnis brauchst, kannst Du ja im Array soCode Auswählenconst srcNames = [ "process.env.PWD", "os.homedir()", "process.env.HOME", "process.env.HOMEPATH", "process.env.USERPROFILE" ];
die Reihenfolge verändern, denn "process.env.PWD" ist bei Dir richtig gesetzt. Aber das ist nur ein Workaround...
Zitat von: juemuc am 01 Mai 2019, 20:18:47
Hallo zusammen,
wie habt Ihr Euren Fensterkntakt definiert, sodass er von Alexa erkannt wird? Ich wollte das Feature testen, dass Alexa die Info liefert, ob das Fenster offen oder geschlossen ist. Die neueste ALEXA-Version 0.5.27 habe ich installiert. Hier meine Definition des Fensterkontaktes:
Im Alexa-Log ist dieser Eintrag vorhanden:In der Alexa-App wird der Kontakt nicht gefunden.
Was mache ich falsch?
Viele Grüße
Jürgen
Zitat von: gvzdus am 03 Mai 2019, 20:22:59
Zur Dokumentation: Ich habe mich mit Mumpitz noch per Pmail ausgetauscht - es war ein ganz allgemeines Rechteproblem vom Upgrade.
defmod HM_Sec_SCo_OEQ0424862 HMCCUDEV OEQ0424862
attr HM_Sec_SCo_OEQ0424862 IODev HMCCU3
attr HM_Sec_SCo_OEQ0424862 alexaName Küchenfenster
attr HM_Sec_SCo_OEQ0424862 alias HM Fensterkontakt Küche
attr HM_Sec_SCo_OEQ0424862 devStateStyle style="text-align:right"
attr HM_Sec_SCo_OEQ0424862 genericDeviceType contact
attr HM_Sec_SCo_OEQ0424862 group HM Fenster-/Türkontakte
attr HM_Sec_SCo_OEQ0424862 hmstatevals ERROR!7:sabotage;;SABOTAGE!1:sabotage
attr HM_Sec_SCo_OEQ0424862 homebridgeMapping ContactSensorState=state,values=closed:CONTACT_DETECTED;;open:CONTACT_NOT_DETECTED
attr HM_Sec_SCo_OEQ0424862 icon hm-sec-win@black
attr HM_Sec_SCo_OEQ0424862 stateFormat {"Status: ".ReadingsVal($name,"state" ,"")." / LastOpen: ".ReadingsVal($name,"LastOpen","")}
attr HM_Sec_SCo_OEQ0424862 statedatapoint 1.STATE
attr HM_Sec_SCo_OEQ0424862 substitute STATE!(0|false):closed,(1|true):open
attr HM_Sec_SCo_OEQ0424862 userReadings LastOpen:1.STATE.* {if (ReadingsVal($name,"state","") eq "open") {ReadingsTimestamp($name,"state","") =~ /^(\d+)-(\d+)-(\d+)\s(\d+:\d+:\d+)$/;; return "$3.$2.$1 - $4";;} else {ReadingsVal($name,"LastOpen","")}}
[2019-5-9 18:04:45] [FHEM] MQTT2_buero_schrank has
[2019-5-9 18:04:45] [FHEM] Custom Color Temperature [color]
[2019-5-9 18:04:45] [FHEM] On [state;on,off]
2019-05-09 18:04:45 caching: MQTT2_buero_schrank-color: 0000FF0000
[2019-5-9 18:04:45] [FHEM] caching: Custom Color Temperature: 0 (as number; from '0000FF0000')
Readings:
Color 0000FF0000
CT 499
Dimmer 100
HSBColor 240,100,100
color 0000FF0000
setList:
off:noArg cmnd/buero_schrank/POWER1 0
on:noArg cmnd/buero_schrank/POWER1 1
color:colorpicker,RGB cmnd/buero_schrank/COLOR
userReadings:
color {ReadingsVal($name,"Color","")}
Internals:
CFGFN
CID shellybulb_3CC533
DEF shellybulb_3CC533
DEVICETOPIC MQTT2_shellybulb_3CC533
FUUID 5ccc76ea-f33f-8d06-0279-a2cddb67dbab22f3
IODev MQTT2_FHEM_Server
LASTInputDev MQTT2_FHEM_Server
MQTT2_FHEM_Server_MSGCNT 17225
MQTT2_FHEM_Server_TIME 2019-05-09 19:20:29
MSGCNT 17225
NAME MQTT2_shellybulb_3CC533
NR 219
STATE off
TYPE MQTT2_DEVICE
OLDREADINGS:
READINGS:
2019-05-05 13:25:23 announce_fw_ver 20190402-134156/v1.4.9@9be72c7e
2019-05-05 13:25:23 announce_id shellybulb-3CC533
2019-05-05 13:25:23 announce_ip 192.168.0.5
2019-05-05 13:25:23 announce_mac DE4F223CC533
2019-05-05 13:25:23 announce_new_fw false
2019-05-09 19:20:29 blue 0
2019-05-09 19:20:29 brightness 50
2019-05-04 13:12:40 color_0 off
2019-05-09 19:20:29 ct 4000
2019-05-09 19:20:29 effect 0
2019-05-09 19:20:29 gain 100
2019-05-09 19:20:29 green 0
2019-05-09 19:20:29 ison false
2019-05-09 19:20:29 mode color
2019-05-05 13:25:23 online true
2019-05-09 19:20:29 red 125
2019-05-09 19:20:29 rgb 7D0000
2019-05-04 13:12:40 state off
2019-05-09 19:20:29 temp 4000
2019-05-09 19:20:29 white 0
Attributes:
IODev MQTT2_FHEM_Server
alexaName Licht Kinderzimmer
genericDeviceType light
icon light_control
model A_15_shellybulb
readingList shellies/shellybulb-3CC533/color/0/status:.* {json2nameValue($EVENT)}
shellybulb_3CC533:shellies/shellybulb-3CC533/color/0:.* color_0
shellybulb_3CC533:shellies/shellybulb-3CC533/online:.* online
shellybulb_3CC533:shellies/announce:.* { json2nameValue($EVENT, 'announce_', $JSONMAP) }
room MQTT2_DEVICE
setList off:noArg shellies/shellybulb-3CC533/color/0/command off
on:noArg shellies/shellybulb-3CC533/color/0/command on
pct:colorpicker,BRI,0,1,100 shellies/shellybulb-3CC533/color/0/set {"turn":"on","gain":"$EVTPART1","brightness":"$EVTPART1"}
ct:colorpicker,CT,3000,10,6500 {$EVTPART1=3000 if ($EVTPART1<3000);"shellies/shellybulb-3CC533/color/0/set {\"turn\":\"on\",\"mode\":\"white\",\"temp\":\"$EVTPART1\"}"}
rgb:colorpicker,RGB {$EVTPART1=~/(..)(..)(..)/;if($1 ne $2 || $2 ne $3){"shellies/shellybulb-3CC533/color/0/set {\"turn\":\"on\",\"mode\":\"color\",\"gain\":\"100\",\"red\":".hex($1).",\"green\":".hex($2).",\"blue\":".hex($3)."}"}else{"shellies/shellybulb-3CC533/color/0/set {\"turn\":\"on\",\"mode\":\"white\",\"brightness\":".int(hex($1)/2.55)."}"}}
userReadings ct:temp.* {ReadingsVal($name,"temp",3000)}, rgb:temp.* {if(ReadingsVal($name,"mode","") eq "color"){sprintf("%02X%02X%02X", ReadingsVal($name,"red",99), ReadingsVal($name,"green",99), ReadingsVal($name,"blue",99))}else{my $a=sprintf("%02X",ReadingsVal($name,"brightness",0)*2.555);"$a$a$a"}}
webCmd on:off:pct:ct:rgb
Unknown cipher type '/tmp/alexa-fhem.cfg'
Unknown cipher type '/tmp/alexa-fhem.cfg'
Unknown cipher type '/tmp/alexa-fhem.cfg'
Unknown cipher type '/tmp/alexa-fhem.cfg'
Unknown cipher type '/tmp/alexa-fhem.cfg'
Unknown cipher type '/tmp/alexa-fhem.cfg'
stehlampe
n: WZ_Stehlampe, r: wohnzimmer
ZitatSchalte im Wohnzimmer das Licht aus
Zitat von: Rothammel am 21 Mai 2019, 19:06:41
ein homebridgemapping TargetTemperature=desired-temp,cmd=desired-temp,minValue=10,maxValue=35,minStep=0.5
hat bei mir funktioniert ;) komisch
XXX@XXXX:~ $ cat debug.log
[2019-5-29 20:30:44] using config from /opt/fhem/alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-5-29 20:30:44] os.homedir()=/home/pi
[2019-5-29 20:30:44] this is alexa-fhem 0.5.27
[2019-5-29 20:30:44] connecting to FHEM ...
[2019-5-29 20:30:45] [FHEM] trying longpoll to listen for fhem events
[2019-5-29 20:30:45] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1559154645060
[2019-5-29 20:30:45] [FHEM] got csrfToken: FHEMTOKEN
[2019-5-29 20:30:45] [FHEM] Checking devices and attributes...
[2019-5-29 20:30:45] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-29 20:30:45] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-29 20:30:45] [FHEM] waiting for events ...
[2019-5-29 20:30:45] [FHEM] Fetching FHEM devices...
[2019-5-29 20:30:45] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-29 20:30:45] [FHEM] alexa device is alexa
[2019-5-29 20:30:45] [FHEM] mappings for alexa: {}
[2019-5-29 20:30:45] [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
[2019-5-29 20:30:45] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-5-29 20:30:45] [FHEM] value2homekit: { rot: '0', 'grün': '128', blau: '200' }
[2019-5-29 20:30:45] [FHEM] value2homekit: { rot: '0', 'grün': '120', blau: '220' }
[2019-5-29 20:30:45] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-5-29 20:30:45] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-5-29 20:30:45] [FHEM] value2homekit: { auf: '100', zu: '0' }
[2019-5-29 20:30:45] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-5-29 20:30:45] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-5-29 20:30:45] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-5-29 20:30:45] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.27%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-29 20:30:45] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-29 20:30:45] perfectOfVerb:
[2019-5-29 20:30:45] { stelle: 'gestellt',
schalte: 'geschaltet',
'färbe': 'gefärbt',
mach: 'gemacht' }
[2019-5-29 20:30:45] verbsOfIntent:
[2019-5-29 20:30:45] [ OnIntent: [ 'schalte' ],
prozentIntent: [ 'stelle' ],
HueIntent: [ 'stelle' ],
HueIntentB: [ 'färbe' ],
SaturationIntent: [ 'stelle' ],
SaturationIntentB: [ 'sättige' ],
TargetPositionIntent: [ 'mach' ],
gradIntent: [ 'stelle' ] ]
[2019-5-29 20:30:45] characteristicsOfIntent:
[2019-5-29 20:30:45] { OnIntent: [ 'On' ],
prozentIntent: [ 'Brightness', 'TargetPosition', 'Volume' ],
HueIntent: [ 'Hue' ],
HueIntentB: [ 'Hue' ],
SaturationIntent: [ 'Saturation' ],
SaturationIntentB: [ 'Saturation' ],
TargetPositionIntent: [ 'TargetPosition' ],
gradIntent: [ 'TargetTemperature' ] }
[2019-5-29 20:30:45] prefixOfIntent:
[2019-5-29 20:30:45] { OnIntent: undefined,
prozentIntent: 'auf',
HueIntent: 'auf',
HueIntentB: undefined,
SaturationIntent: 'auf',
SaturationIntentB: undefined,
TargetPositionIntent: undefined,
gradIntent: 'auf' }
[2019-5-29 20:30:45] suffixOfIntent:
[2019-5-29 20:30:45] { OnIntent: undefined,
prozentIntent: 'prozent',
HueIntent: undefined,
HueIntentB: undefined,
SaturationIntent: undefined,
SaturationIntentB: undefined,
TargetPositionIntent: undefined,
gradIntent: 'grad' }
[2019-5-29 20:30:45] alexaTypes:
[2019-5-29 20:30:45] { light: [ 'licht', 'lampen' ],
blind:
[ 'rolladen',
'rolläden',
'jalousie',
'jalousien',
'rollo',
'rollos' ] }
[2019-5-29 20:30:45] roomOfEcho:
[2019-5-29 20:30:45] {}
[2019-5-29 20:30:45] fhemIntents:
[2019-5-29 20:30:45] { FHEMgutenMorgenIntent: 'gutenMorgen',
FHEMguteNachtIntent: 'guteNacht' }
[2019-5-29 20:30:45] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-29 20:30:45] Server listening on: http://127.0.0.1:42973 for proxy connections
[2019-5-29 20:30:45] *** SSH: checking proxy configuration
[2019-5-29 20:30:45] sshautoconf: home=/home/pi, spath=/home/pi/.alexa, cpath=/opt/fhem/alexa-fhem.cfg, sshpath=/home/pi/.ssh
[2019-5-29 20:30:45] sshautoconf: env={"LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:","SSH_CONNECTION":"192.168.178.30 63037 192.168.178.74 22","LANG":"de_DE.UTF-8","NO_AT_BRIDGE":"1","XDG_SESSION_ID":"c1","USER":"pi","PWD":"/home/pi","HOME":"/home/pi","TEXTDOMAIN":"Linux-PAM","SSH_CLIENT":"192.168.178.30 63037 22","SSH_TTY":"/dev/pts/0","MAIL":"/var/mail/pi","TERM":"xterm","SHELL":"/bin/bash","SHLVL":"1","LOGNAME":"pi","XDG_RUNTIME_DIR":"/run/user/1000","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games","_":"/usr/bin/alexa-fhem","OLDPWD":"/opt/fhem/log"}
[2019-5-29 20:30:45] sshautoconf: Creating directory /home/pi/.alexa
[2019-5-29 20:30:45] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/home/pi/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":42973},"connections":[{"port":"8083","name":"FHEM","uid":999,"filter":"alexaName=..*","webname":"fhem","server":"127.0.0.1"}]}
[2019-5-29 20:30:45] sshautoconf: No SSH public key found, we have to generate one.
[2019-5-29 20:30:49] sshautoconf: Generating public/private rsa key pair.
Created directory '/home/pi/.ssh'.
Your identification has been saved in /home/pi/.ssh/id_rsa.
Your public key has been saved in /home/pi/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:dU8w4wlPBGCollT80vXtM10mBhq1A7HT35UQBooywZE pi@PiFHEM
The key's randomart image is:
+---[RSA 2048]----+
.... Hab ich ersetzt
+----[SHA256]-----+
[2019-5-29 20:30:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
*** FHEM: connected
[2019-5-29 20:30:50] [FHEM] got: 1 results
[2019-5-29 20:30:50] [FHEM] homebridgeMapping: cmdOn=ein,CmdOff=aus
[2019-5-29 20:30:50] [FHEM] mappings for Spots_Fernsehecke: { cmdOn: { reading: 'ein', CmdOff: 'aus' } }
[2019-5-29 20:30:50] [FHEM] Spots_Fernsehecke is light
[2019-5-29 20:30:50] [FHEM] Spots_Fernsehecke has
[2019-5-29 20:30:50] [FHEM] cmdOn [ein]
[2019-5-29 20:30:50] BearerToken '...E57A5' read from alexa
[2019-5-29 20:30:50] [FHEM] got .eventToken
[2019-5-29 20:30:50] refreshing token
[2019-5-29 20:30:50] 39_alexa.pm is new version: true
[2019-5-29 20:30:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bset%20alexa%20proxyToken%2081E09F22A2E317F0%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-29 20:30:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bset%20alexa%20proxyKey%2019ED5E3B-3AEB24948FF05D80-81E09F22A2E317F0%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-29 20:30:50] sshautoconf: completed successfully
[2019-5-29 20:30:50] *** SSH: proxy configuration set up done
[2019-5-29 20:30:50] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-5-29 20:30:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-29 20:30:50] Starting SSH with -R 1234:127.0.0.1:42973 -oServerAliveInterval=90 -i /home/pi/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[2019-5-29 20:30:50] SSH setup completed with new bearer token
[2019-5-29 20:30:51] got fresh token
[2019-5-29 20:30:51] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-5-29 20:30:51] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-29 20:30:51] *** SSH: proxy connection established
[2019-5-29 20:30:51] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[2019-5-29 20:30:52] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%20FW_directNotify(%22%23FHEMWEB%3AWEB%22%2C%20%22location.reload('true')%22%2C%20%22%22)%20%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-29 20:31:40] Got SIGINT, shutting down alexa-fhem...
[2019-5-29 20:31:40] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-5-29 20:31:40] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-29 20:31:40] Stopping SSH ...
[2019-5-29 20:31:40] Reading alexaFHEM.ProxyConnection set to stopped
[2019-5-29 20:31:40] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopped%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
Internals:
FD 61
FUUID 5ceebb2c-f33f-1f69-686a-e604605b583c840f
FVERSION 39_alexa.pm:0.190980/2019-04-02
LAST_START 2019-05-29 20:31:51
LAST_STOP 2019-05-29 20:30:02
NAME alexa
NOTIFYDEV global,global:npmjs.*alexa-fhem.*
NR 564
NTFY_ORDER 50-alexa
PARTIAL
PID 2850
STARTS 4
STATE running /usr/bin/alexa-fhem
TYPE alexa
active 0
alexa-fhem version 0.5.27
currentlogfile ./log/alexa-2019-05-29.log
logfile ./log/alexa-%Y-%m-%d.log
CoProcess:
cmdFn alexa_getCMD
name alexaFHEM
state running /usr/bin/alexa-fhem
READINGS:
2019-05-29 20:31:51 alexaFHEM running /usr/bin/alexa-fhem
2019-05-29 20:31:53 alexaFHEM.ProxyConnection running; SSH connected
2019-05-29 20:30:50 alexaFHEM.bearerToken crypt:010723010d2550057905755652512502
2019-05-29 20:30:50 alexaFHEM.skillRegKey crypt:080f237501265175150471202154570b570c777201032659041a0e5773515c770b042703715053007e07
helper:
Attributes:
alexaFHEM-config ./alexa-fhem.cfg
alexaFHEM-log ./log/alexa-%Y-%m-%d.log
alexaMapping #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
alexaTypes #Type=<alias>[,<alias2>[,...]]
light=licht,lampen
blind=rolladen,rolläden,jalousie,jalousien,rollo,rollos
devStateIcon stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop
echoRooms #<deviceId>=<room>
fhemIntents #IntentName=<sample utterance>
gutenMorgen=guten morgen
guteNacht=gute nacht
room Netzwerktechnik
stateFormat alexaFHEM
Internals:
FUUID 5ceaaa99-f33f-1f69-4c2f-807987e0afa93490
NAME Spots_Fernsehecke
NR 562
STATE
TYPE dummy
READINGS:
2019-05-28 16:09:17 state aus
Attributes:
alexaName Fernsehecke
alias Deckenspots Fernsehecke
devStateStyle style="text-align:right"
eventMap an:1 aus:0
genericDeviceType light
group Lampen
homebridgeMapping cmdOn=ein,CmdOff=aus
icon light_ceiling
room Erdgeschoss->Wohnzimmer
stateFormat
webCmd an:aus
XXX@XXXXX:~ $ cat debug.log
[2019-5-30 10:11:56] using config from /opt/fhem/alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-5-30 10:11:56] os.homedir()=/home/pi
[2019-5-30 10:11:56] this is alexa-fhem 0.5.27
[2019-5-30 10:11:56] connecting to FHEM ...
[2019-5-30 10:11:57] [FHEM] trying longpoll to listen for fhem events
[2019-5-30 10:11:57] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1559203917190
[2019-5-30 10:12:00] [FHEM] got csrfToken: FHEMTOKEN
[2019-5-30 10:12:00] [FHEM] Checking devices and attributes...
[2019-5-30 10:12:00] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-30 10:12:00] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-30 10:12:00] [FHEM] waiting for events ...
[2019-5-30 10:12:00] [FHEM] Fetching FHEM devices...
[2019-5-30 10:12:00] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-30 10:12:00] [FHEM] alexa device is alexa
[2019-5-30 10:12:00] [FHEM] mappings for alexa: {}
[2019-5-30 10:12:00] [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
[2019-5-30 10:12:00] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-5-30 10:12:00] [FHEM] value2homekit: { rot: '0', 'grün': '128', blau: '200' }
[2019-5-30 10:12:00] [FHEM] value2homekit: { rot: '0', 'grün': '120', blau: '220' }
[2019-5-30 10:12:00] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-5-30 10:12:00] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-5-30 10:12:00] [FHEM] value2homekit: { auf: '100', zu: '0' }
[2019-5-30 10:12:00] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-5-30 10:12:00] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-5-30 10:12:00] [FHEM] value2homekit: { 'AMAZON.NUMBER': 'AMAZON.NUMBER' }
[2019-5-30 10:12:00] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.27%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-30 10:12:00] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-30 10:12:00] perfectOfVerb:
[2019-5-30 10:12:00] { stelle: 'gestellt',
schalte: 'geschaltet',
'färbe': 'gefärbt',
mach: 'gemacht' }
[2019-5-30 10:12:00] verbsOfIntent:
[2019-5-30 10:12:00] [ OnIntent: [ 'schalte' ],
prozentIntent: [ 'stelle' ],
HueIntent: [ 'stelle' ],
HueIntentB: [ 'färbe' ],
SaturationIntent: [ 'stelle' ],
SaturationIntentB: [ 'sättige' ],
TargetPositionIntent: [ 'mach' ],
gradIntent: [ 'stelle' ] ]
[2019-5-30 10:12:00] characteristicsOfIntent:
[2019-5-30 10:12:00] { OnIntent: [ 'On' ],
prozentIntent: [ 'Brightness', 'TargetPosition', 'Volume' ],
HueIntent: [ 'Hue' ],
HueIntentB: [ 'Hue' ],
SaturationIntent: [ 'Saturation' ],
SaturationIntentB: [ 'Saturation' ],
TargetPositionIntent: [ 'TargetPosition' ],
gradIntent: [ 'TargetTemperature' ] }
[2019-5-30 10:12:00] prefixOfIntent:
[2019-5-30 10:12:00] { OnIntent: undefined,
prozentIntent: 'auf',
HueIntent: 'auf',
HueIntentB: undefined,
SaturationIntent: 'auf',
SaturationIntentB: undefined,
TargetPositionIntent: undefined,
gradIntent: 'auf' }
[2019-5-30 10:12:00] suffixOfIntent:
[2019-5-30 10:12:00] { OnIntent: undefined,
prozentIntent: 'prozent',
HueIntent: undefined,
HueIntentB: undefined,
SaturationIntent: undefined,
SaturationIntentB: undefined,
TargetPositionIntent: undefined,
gradIntent: 'grad' }
[2019-5-30 10:12:00] alexaTypes:
[2019-5-30 10:12:00] { light: [ 'licht', 'lampen' ],
blind:
[ 'rolladen',
'rolläden',
'jalousie',
'jalousien',
'rollo',
'rollos' ] }
[2019-5-30 10:12:00] roomOfEcho:
[2019-5-30 10:12:00] {}
[2019-5-30 10:12:00] fhemIntents:
[2019-5-30 10:12:00] { FHEMgutenMorgenIntent: 'gutenMorgen',
FHEMguteNachtIntent: 'guteNacht' }
[2019-5-30 10:12:00] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-30 10:12:00] Server listening on: http://127.0.0.1:39389 for proxy connections
[2019-5-30 10:12:00] *** SSH: checking proxy configuration
[2019-5-30 10:12:00] sshautoconf: home=/home/pi, spath=/home/pi/.alexa, cpath=/opt/fhem/alexa-fhem.cfg, sshpath=/home/pi/.ssh
[2019-5-30 10:12:00] Passed config: {"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/home/pi/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":39389},"connections":[{"port":"8083","name":"FHEM","uid":999,"filter":"alexaName=..*","webname":"fhem","server":"127.0.0.1"}]}
[2019-5-30 10:12:00] sshautoconf: SSH key seems to exist
[2019-5-30 10:12:02] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-5-30 10:12:02] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
*** FHEM: connected
[2019-5-30 10:12:02] [FHEM] got: 1 results
[2019-5-30 10:12:02] [FHEM] homebridgeMapping: On:cmdOn=1,CmdOff=0
[2019-5-30 10:12:02] [FHEM] mappings for Spots_Fernsehecke: { On: { cmdOn: '1', CmdOff: '0' } }
[2019-5-30 10:12:02] [FHEM] Spots_Fernsehecke is light
[2019-5-30 10:12:02] [FHEM] Spots_Fernsehecke has
[2019-5-30 10:12:02] [FHEM] On [undefined;1,undefined]
2019-05-30 10:12:02 caching: Spots_Fernsehecke-state: aus
[2019-5-30 10:12:02] BearerToken '...317F0' read from alexa
[2019-5-30 10:12:02] [FHEM] got .eventToken
[2019-5-30 10:12:02] refreshing token
[2019-5-30 10:12:02] 39_alexa.pm is new version: true
[2019-5-30 10:12:02] sshautoconf: completed successfully
[2019-5-30 10:12:02] *** SSH: proxy configuration set up done
[2019-5-30 10:12:02] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-5-30 10:12:02] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-30 10:12:02] Starting SSH with -R 1234:127.0.0.1:39389 -oServerAliveInterval=90 -i /home/pi/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[2019-5-30 10:12:03] got fresh token
[2019-5-30 10:12:04] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-5-30 10:12:04] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-30 10:12:04] *** SSH: proxy connection established
[2019-5-30 10:12:04] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[2019-5-30 10:12:57] Got SIGINT, shutting down alexa-fhem...
[2019-5-30 10:12:57] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-5-30 10:12:57] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
[2019-5-30 10:12:57] Stopping SSH ...
[2019-5-30 10:12:57] Reading alexaFHEM.ProxyConnection set to stopped
[2019-5-30 10:12:57] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopped%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=FHEMTOKEN&XHR=1
Internals:
FUUID 5ceaaa99-f33f-1f69-4c2f-807987e0afa93490
NAME Spots_Fernsehecke
NR 562
STATE 0
TYPE dummy
READINGS:
2019-05-30 11:04:35 state off
Attributes:
alexaName Fernsehecke
alias Deckenspots Fernsehecke
devStateIcon 1:light_ceiling@green:0 0:light_ceiling@red:1
devStateStyle style="text-align:right"
eventMap on:1 off:0
genericDeviceType light
group Lampen
icon light_ceiling
room Erdgeschoss->Wohnzimmer
setList on off
stateFormat state
webCmd on:off
Jun 10 13:11:02 ha systemd[1]: Started Node.js Alexa Server.
Jun 10 13:11:02 ha alexa-fhem[6099]: [2019-6-10 1:11:02 PM] os.homedir()=/home/pi
Jun 10 13:11:02 ha alexa-fhem[6099]: [2019-6-10 1:11:02 PM] using config from /home/pi/.alexa/config.json
Jun 10 13:11:02 ha alexa-fhem[6099]: *** CONFIG: parsed completely
Jun 10 13:11:02 ha alexa-fhem[6099]: [2019-6-10 1:11:02 PM] this is alexa-fhem 0.5.27
Jun 10 13:11:02 ha alexa-fhem[6099]: [2019-6-10 1:11:02 PM] connecting to FHEM ...
Jun 10 13:11:03 ha alexa-fhem[6099]: [2019-6-10 1:11:03 PM] [FHEM] trying longpoll to listen for fhem events
Jun 10 13:11:03 ha alexa-fhem[6099]: [2019-6-10 1:11:03 PM] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSO
Jun 10 13:11:03 ha alexa-fhem[6099]: [2019-6-10 1:11:03 PM] Server listening on: https://:::3000 for direct connections
Jun 10 13:11:03 ha alexa-fhem[6099]: STDIN EOF
Zitat von: Mave am 13 Juni 2019, 22:40:24
Hallo zusammen,
gibt es eine Anleitung zum Umstieg von der alten Alexa-Integration auf die Neue?
Vielen Dank.
Grüße Mave
Hue=verb=stelle,valuePrefix=auf,values=rot:1;grün:2,blau:3
Brightness=Dimmer::prozent,minValue=0,maxValue=100
sub currentEnergy() {
my $Alexa_Text= "";
my $title = (int(ReadingsVal("LS110_2", "electricityPower", "")/100))/10;
$title =~ s/\./,/g;
my $titleday = int(ReadingsVal("LS110_2", "electricityConsumed_EnergyDay", ""));
my $titlespitze = int(ReadingsVal("LS110_2", "electricityConsumed_PowerDayMax", ""));
my $titlekosten = (int(ReadingsVal("LS110_2", "electricityConsumed_EnergyCostDay", "")*10))/10;
$titlekosten =~ s/\./,/g;
fhem("set ECHO_G000RAXXXXXXXXX speak die Leistung beträgt $title Kw, Tageswert $titleday Kwh, die Spitze war $titlespitze Watt und die Kosten betragen $titlekosten Euro");
return ("Leistung $title Kw Tagwert $titleday Kwh Spitze $titlespitze Watt Kosten $titlekosten €");
}
Internals:
FD 20
FUUID 5d0e2638-f33f-19ae-4e44-3382f59a0b866f64
FVERSION 39_alexa.pm:0.190980/2019-04-02
LAST_START 2019-06-25 12:23:12
LAST_STOP 2019-06-25 12:23:10
NAME alexa
NOTIFYDEV global,global:npmjs.*alexa-fhem.*
NR 1683
NTFY_ORDER 50-alexa
PARTIAL
PID 971
STARTS 6
STATE running /usr/bin/alexa-fhem
TYPE alexa
active 0
alexa-fhem version 0.5.28
currentlogfile ./log/alexa-2019-06-25.log
logfile ./log/alexa-%Y-%m-%d.log
CoProcess:
cmdFn alexa_getCMD
name alexaFHEM
state running /usr/bin/alexa-fhem
READINGS:
2019-06-25 12:23:12 alexaFHEM running /usr/bin/alexa-fhem
2019-06-25 12:23:15 alexaFHEM.ProxyConnection running; SSH connected
2019-06-22 14:59:37 alexaFHEM.bearerToken crypt:xxx
2019-06-22 14:59:37 alexaFHEM.skillRegKey crypt:xxx
helper:
Attributes:
alexaFHEM-config ./alexa-fhem.cfg
alexaFHEM-log ./log/alexa-%Y-%m-%d.log
alexaMapping #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
alexaTypes #Type=<alias>[,<alias2>[,...]]
light=licht,lampen
blind=rolladen,rolläden,jalousie,jalousien,rollo,rollos
devStateIcon stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop
echoRooms #<deviceId>=<room>
fhemIntents #IntentName=<sample utterance>
gutenMorgen=guten morgen
guteNacht=gute nacht
room Fhem
stateFormat alexaFHEM
Internals:
DEF 00000016
FGW14_MSGCNT 64
FGW14_TIME 2019-06-25 12:28:23
FUUID 5c473506-f33f-19ae-345e-2513790823921538
IODev FGW14
LASTInputDev FGW14
MSGCNT 64
NAME EnO_rollo_wohnzimmer
NR 106
NTFY_ORDER 50-EnO_rollo_wohnzimmer
STATE 100
TYPE EnOcean
Helper:
DBLOG:
position:
DBLogging:
TIME 1561458497.00683
VALUE 100
state:
DBLogging:
TIME 1561458503.26787
VALUE closed
OLDREADINGS:
READINGS:
2019-06-25 12:28:23 anglePos 90
2019-06-25 12:11:25 block unlock
2019-06-25 12:28:23 endPosition closed
2019-06-25 12:28:23 position 100
2019-06-25 12:28:23 state closed
helper:
Attributes:
DbLogInclude state,position
IODev FGW14
alexaName Rollo Wohnzimmer; Rollladen Wohnzimmer
eep A5-3F-7F
event-on-change-reading .*
genericDeviceType blind
gwCmd blindCmd
manufID 00D
model Eltako_FSB_ACK
mqttPublish *:topic={"/out/$device/$reading"}
mqttSubscribe *:stopic={"/in/$device/$reading"}
room EnOcean
settingAccuracy high
shutTime 19
shutTimeCloses 35
stateFormat position
subDef 00100010
subType manufProfile
userattr structexclude structure_rollo_unten structure_rollo_unten_map
webCmd up:stop:down:position
defmod alexa.channel.kueche dummy
attr alexa.channel.kueche alexaName Test
attr alexa.channel.kueche genericDeviceType media
attr alexa.channel.kueche homebridgeMapping ChannelController:reading=channel:BOSE_B0D5CCAFB416:channel,cmd=channel
attr alexa.channel.kueche room 99_System@alexa
defmod alexa.channel.kueche dummy
attr alexa.channel.kueche alexaName Test
attr alexa.channel.kueche genericDeviceType blind
attr alexa.channel.kueche homebridgeMapping TargetTemperature=desired-temp:BOSE_B0D5CCAFB416:channel,cmd=channel,minValue=1,maxValue=6,minStep=1
attr alexa.channel.kueche room 99_System@alexa
[7.7.2019, 19:03:52] [FHEM] alexa.channel.kueche is media
[7.7.2019, 19:03:52] [FHEM] alexa.channel.kueche has
[7.7.2019, 19:03:52] [FHEM] ChannelController [channel:BOSE_B0D5CCAFB416:channel]
alexaFHEM
running /usr/bin/alexa-fhem
[2019-7-9 21:04:35] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-9 21:04:35] os.homedir()=/opt/fhem
[2019-7-9 21:04:35] this is alexa-fhem 0.5.28
[2019-7-9 21:04:35] connecting to FHEM ...
[2019-7-9 21:04:36] [FHEM] trying longpoll to listen for fhem events
[2019-7-9 21:04:36] [FHEM] starting longpoll: https://127.0.0.1:9999/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562699076123
Zitat von: Esjay am 29 März 2019, 15:05:24
Lösch mal im Homeverzeichniss von fhem im .ssh Ordner die Datein id_rsa und id_rsa.pub. Und starte Alexa danach nochmal durch!
Danach wieder ins Log schauen!
Grüße
[2019-7-10 15:12:38] Got SIGTERM, shutting down alexa-fhem...
[2019-7-10 15:12:38] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-7-10 15:12:39] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-10 15:12:40] os.homedir()=/opt/fhem
[2019-7-10 15:12:40] this is alexa-fhem 0.5.28
[2019-7-10 15:12:40] connecting to FHEM ...
[2019-7-10 15:12:40] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 15:12:40] [FHEM] starting longpoll: https://127.0.0.1:9999/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562764360645
alexa-fhem -D -c /opt/fhem/alexa-fhem.cfg > debug.log
alexaFHEM.ProxyConnection
running; SSH connected
2019-07-10 17:11:03
alexaFHEM.bearerToken
crypt:xxxxxx
2019-07-10 16:43:38
alexaFHEM.skillRegKey
crypt:xxxxxxxxx
2019-07-10 16:43:38
Internals:
DEF 000A98A9A74B9B
FUUID 5d2292fd-f33f-291f-d778-ef3cd9da5f5d1106
IODev d_ccu
NAME HM_TH01_WohnZ
NR 330
STATE Initialized
TYPE HMCCUDEV
ccuaddr 000A98A9A74B9B
ccudevstate active
ccuif HmIP-RF
ccuname TH01_WohnZ
ccutype HmIP-WTH-2
channels 8
statevals devstate
READINGS:
2019-07-10 17:05:00 0.CONFIG_PENDING 0
2019-07-10 16:54:53 0.DUTY_CYCLE false
2019-07-10 16:54:53 0.INSTALL_TEST true
2019-07-10 16:54:53 0.OPERATING_VOLTAGE 2.7
2019-07-10 16:54:53 0.OPERATING_VOLTAGE_STATUS 0
2019-07-10 17:05:00 0.RSSI_DEVICE -65
2019-07-10 16:54:53 0.RSSI_PEER 193
2019-07-10 17:05:00 0.UNREACH 0
2019-07-10 16:54:53 0.UPDATE_PENDING false
2019-07-10 16:54:53 1.ACTIVE_PROFILE 3
2019-07-10 16:54:53 1.ACTUAL_TEMPERATURE 24.5
2019-07-10 16:54:53 1.ACTUAL_TEMPERATURE_STATUS 0
2019-07-10 16:44:34 1.BOOST_MODE 0
2019-07-10 16:54:53 1.BOOST_TIME 0
2019-07-10 16:54:53 1.FROST_PROTECTION false
2019-07-10 16:54:53 1.HEATING_COOLING 0
2019-07-10 16:54:53 1.HUMIDITY 37
2019-07-10 16:54:53 1.HUMIDITY_STATUS 0
2019-07-10 16:54:53 1.PARTY_MODE false
2019-07-10 16:54:53 1.PARTY_SET_POINT_TEMPERATURE 0.0
2019-07-10 16:54:53 1.PARTY_TIME_END
2019-07-10 16:54:53 1.PARTY_TIME_START
2019-07-10 16:54:53 1.QUICK_VETO_TIME 0
2019-07-10 16:54:53 1.SET_POINT_MODE 0
2019-07-10 16:54:53 1.SET_POINT_TEMPERATURE 12.0
2019-07-10 16:54:53 1.SWITCH_POINT_OCCURED false
2019-07-10 16:54:53 1.WINDOW_STATE open
2019-07-10 16:54:53 battery false
2019-07-10 16:54:53 control 12.0
2019-07-10 17:05:00 hmstate 12.0
2019-07-10 17:06:31 state Initialized
hmccu:
devspec 000A98A9A74B9B
Attributes:
IODev d_ccu
alexaName Wohnzimmerthermostat
ccureadingfilter .*
controldatapoint 1.SET_POINT_TEMPERATURE
eventMap /datapoint 1.BOOST_MODE true:Boost/datapoint 1.CONTROL_MODE 0:Auto/datapoint 1.CONTROL_MODE 1:Manual/datapoint 1.CONTROL_MODE 2:Holiday/datapoint 1.SET_POINT_TEMPERATURE 4.5:off/datapoint 1.SET_POINT_TEMPERATURE 30.5:on/
genericDeviceType thermostat
homebridgeMapping clear TargetTemperature=1.SET_POINT_TEMPERATURE::1.SET_POINT_TEMPERATURE,minValue=5,maxValue=30,minStep=0.5,cmd=control,nocache=true CurrentTemperature=1.ACTUAL_TEMPERATURE CurrentHeatingCoolingState=1.SET_POINT_MODE,values=Manual:1;Holiday:2;Auto:0
icon hm-tc-it-wm-w-eu
room 15_WohnZ
stateFormat Ist: 1.ACTUAL_TEMPERATURE° Soll: 1.SET_POINT_TEMPERATURE° Feuchte: 1.HUMIDITY%
statedatapoint 1.SET_POINT_TEMPERATURE
stripnumber 1
substexcl control
substitute SET_POINT_TEMPERATURE!#0-4.5:off,#30.5-40:on;WINDOW_STATE!(0|false):closed,(1|true):open
webCmd control:Boost:Auto:Manual:Holiday:on:off
widgetOverride control:slider,4.5,0.5,30.5,1
[2019-7-10 17:06:33] [FHEM] HM_TH01_WohnZ is thermostat
[2019-7-10 17:06:33] [FHEM] HM_TH01_WohnZ has
[2019-7-10 17:06:33] [FHEM] TargetTemperature [1.SET_POINT_TEMPERATURE]
[2019-7-10 17:06:33] [FHEM] CurrentTemperature [1.ACTUAL_TEMPERATURE]
[2019-7-10 17:06:33] [FHEM] CurrentHeatingCoolingState [1.SET_POINT_MODE]
2019-07-10 17:06:33 caching: HM_TH01_WohnZ-1.ACTUAL_TEMPERATURE: 24.5
2019-07-10 17:06:33 caching: HM_TH01_WohnZ-1.SET_POINT_MODE: 0
[2019-7-10 17:16:37] >>>> [ssh] {"directive":{"header":{"namespace":"Alexa","name":"ReportState","payloadVersion":"3","messageId":"39e80f48-2017-4ffe-9848-8b07f7ab1a90","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"bla-blaxxxxx"},"endpointId":"000A98A9A74B9B","cookie":{"fuuid":"5d2292fd-f33f-291f-d778-ef3cd9da5f5d1106","device":"HM_TH01_WohnZ"}},"payload":{}}}
[2019-7-10 17:16:37] [FHEM] caching: TargetTemperature: 12.0 (as string; from '12.0')
[2019-7-10 17:16:37] [FHEM] caching: CurrentTemperature: 24.5 (as string; from '24.5')
[2019-7-10 17:16:37] <<<< [ssh] {"context":{"properties":[{"namespace":"Alexa.ThermostatController","name":"targetSetpoint","value":{"value":12,"scale":"CELSIUS"},"timeOfSample":"2019-07-10T15:16:37.899Z","uncertaintyInMilliseconds":500},{"namespace":"Alexa.TemperatureSensor","name":"temperature","value":{"value":24.5,"scale":"CELSIUS"},"timeOfSample":"2019-07-10T15:16:37.899Z","uncertaintyInMilliseconds":500}]},"event":{"header":{"namespace":"Alexa","name":"StateReport","payloadVersion":"3","messageId":"cd5c54ab-96fe-4faa-abe3-d5753d638d68","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"8DFE63D2-604727C1219F11B0"},"endpointId":"000A98A9A74B9B"},"payload":{}}}
alexa-fhem /opt/fhem/alexa-fhem.cfg
alexaFHEM.ProxyConnection
running; SSH connected
running /usr/bin/alexa-fhem
ls -la /usr/bin/alexa-fhem
sudo -su fhem bash
*** CONFIG: parsed completely
[2019-7-10 15:12:02] os.homedir()=/opt/fhem
[2019-7-10 15:12:02] this is alexa-fhem 0.5.28
[2019-7-10 15:12:02] connecting to FHEM ...
[2019-7-10 15:12:02] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 15:12:02] [FHEM] starting longpoll: https://127.0.0.1:9999/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562764322635
[2019-7-10 15:12:38] Got SIGTERM, shutting down alexa-fhem...
[2019-7-10 15:12:38] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-7-10 15:12:39] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-10 15:12:40] os.homedir()=/opt/fhem
[2019-7-10 15:12:40] this is alexa-fhem 0.5.28
[2019-7-10 15:12:40] connecting to FHEM ...
[2019-7-10 15:12:40] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 15:12:40] [FHEM] starting longpoll: https://127.0.0.1:9999/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562764360645
[2019-7-10 15:38:35] Got SIGTERM, shutting down alexa-fhem...
[2019-7-10 15:38:35] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-7-10 15:38:36] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-10 15:38:36] os.homedir()=/opt/fhem
[2019-7-10 15:38:36] this is alexa-fhem 0.5.28
[2019-7-10 15:38:36] connecting to FHEM ...
[2019-7-10 15:38:36] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 15:38:36] [FHEM] starting longpoll: https://127.0.0.1:8084/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562765916910
[2019-7-10 15:42:05] Got SIGTERM, shutting down alexa-fhem...
[2019-7-10 15:42:05] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-7-10 15:42:22] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-10 15:42:22] os.homedir()=/opt/fhem
[2019-7-10 15:42:22] this is alexa-fhem 0.5.28
[2019-7-10 15:42:22] connecting to FHEM ...
[2019-7-10 15:42:22] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 15:42:22] [FHEM] starting longpoll: https://127.0.0.1:8084/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562766142847
[2019-7-10 15:44:59] Got SIGTERM, shutting down alexa-fhem...
[2019-7-10 15:44:59] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-7-10 15:45:44] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-10 15:45:44] os.homedir()=/opt/fhem
[2019-7-10 15:45:44] this is alexa-fhem 0.5.28
[2019-7-10 15:45:44] connecting to FHEM ...
[2019-7-10 15:45:45] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 15:45:45] [FHEM] starting longpoll: https://127.0.0.1:8084/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562766345281
[2019-7-10 16:40:20] Got SIGTERM, shutting down alexa-fhem...
[2019-7-10 16:40:20] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-7-10 16:43:18] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-10 16:43:18] os.homedir()=/opt/fhem
[2019-7-10 16:43:18] this is alexa-fhem 0.5.28
[2019-7-10 16:43:18] connecting to FHEM ...
[2019-7-10 16:43:18] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 16:43:18] [FHEM] starting longpoll: https://127.0.0.1:9999/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562769798827
[2019-7-10 16:43:27] Got SIGTERM, shutting down alexa-fhem...
[2019-7-10 16:43:27] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-7-10 17:02:55] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-10 17:02:55] os.homedir()=/opt/fhem
[2019-7-10 17:02:55] this is alexa-fhem 0.5.28
[2019-7-10 17:02:55] connecting to FHEM ...
[2019-7-10 17:02:55] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 17:02:55] [FHEM] starting longpoll: https://127.0.0.1:9999/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562770975856
[2019-7-10 17:07:18] Got SIGTERM, shutting down alexa-fhem...
[2019-7-10 17:07:18] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-7-10 17:07:18] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-10 17:07:18] os.homedir()=/opt/fhem
[2019-7-10 17:07:18] this is alexa-fhem 0.5.28
[2019-7-10 17:07:18] connecting to FHEM ...
[2019-7-10 17:07:19] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 17:07:19] [FHEM] starting longpoll: https://127.0.0.1:9999/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562771239445
[2019-7-10 17:10:56] Got SIGTERM, shutting down alexa-fhem...
[2019-7-10 17:10:56] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-7-10 17:17:46] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-10 17:17:46] os.homedir()=/opt/fhem
[2019-7-10 17:17:46] this is alexa-fhem 0.5.28
[2019-7-10 17:17:46] connecting to FHEM ...
[2019-7-10 17:17:46] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 17:17:46] [FHEM] starting longpoll: https://127.0.0.1:9999/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562771866993
[2019-7-10 17:24:10] Got SIGTERM, shutting down alexa-fhem...
[2019-7-10 17:24:10] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-7-10 17:24:11] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-10 17:24:11] os.homedir()=/opt/fhem
[2019-7-10 17:24:11] this is alexa-fhem 0.5.28
[2019-7-10 17:24:11] connecting to FHEM ...
[2019-7-10 17:24:12] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 17:24:12] [FHEM] starting longpoll: https://127.0.0.1:9999/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562772252107
[2019-7-10 17:50:59] Got SIGTERM, shutting down alexa-fhem...
[2019-7-10 17:50:59] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-7-10 17:51:00] using config from ./alexa-fhem.cfg
{
"sshproxy" : {
"description" : "FHEM Connector",
"ssh" : "/usr/bin/ssh"
},
"connections" : [
{
"server" : "127.0.0.1",
"webname" : "fhem",
"name" : "FHEM",
"filter" : "alexaName=..*",
"uid" : 999,
"port" : "9999"
}
]
}
lrwxrwxrwx 1 root root 40 Jul 10 15:00 /usr/bin/alexa-fhem -> ../lib/node_modules/alexa-fhem/bin/alexa
fhem@FhemServer:~$ alexa-fhem /opt/fhem/alexa-fhem.cfg
[2019-7-10 20:41:25] os.homedir()=/opt/fhem
[2019-7-10 20:41:25] using config from /opt/fhem/.alexa/config.json[2019-7-10 20:41:25] Couldn't find a config file at '/opt/fhem/.alexa/config.json'. Look at config-sample.json for an example.
fhem@FhemServer:~$ alexa-fhem -c /opt/fhem/alexa-fhem.cfg [2019-7-10 20:42:00] using config from /opt/fhem/alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-10 20:42:00] os.homedir()=/opt/fhem
[2019-7-10 20:42:00] this is alexa-fhem 0.5.28
[2019-7-10 20:42:00] connecting to FHEM ...
[2019-7-10 20:42:01] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 20:42:01] [FHEM] starting longpoll: http://127.0.0.1:9999/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562784121189
[2019-7-10 20:42:02] [FHEM] got csrfToken:
[2019-7-10 20:42:02] [FHEM] Checking devices and attributes...
[2019-7-10 20:42:02] [FHEM] executing: http://127.0.0.1:9999/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-7-10 20:42:02] [FHEM] executing: http://127.0.0.1:9999/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-7-10 20:42:02] [FHEM] waiting for events ...
[2019-7-10 20:42:02] [FHEM] Fetching FHEM devices...
[2019-7-10 20:42:02] [FHEM] fetching: http://127.0.0.1:9999/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-7-10 20:42:03] [FHEM] alexa device is alexa
[2019-7-10 20:42:03] [FHEM] executing: http://127.0.0.1:9999/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.28%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-7-10 20:42:03] [FHEM] executing: http://127.0.0.1:9999/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-7-10 20:42:03] [FHEM] executing: http://127.0.0.1:9999/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-7-10 20:42:03] Server listening on: http://127.0.0.1:35963 for proxy connections
[2019-7-10 20:42:03] *** SSH: checking proxy configuration
[2019-7-10 20:42:03] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=/opt/fhem/alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-7-10 20:42:03] Passed config: {"sshproxy":{"description":"FHEM Connector","ssh":"/usr/bin/ssh","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":35963},"connections":[{"server":"127.0.0.1","webname":"fhem","name":"FHEM","filter":"alexaName=..*","uid":999,"port":"9999"}]}
[2019-7-10 20:42:03] sshautoconf: *** Error: Your Homedirectory is writable by group/other. This will not work with SSH
[2019-7-10 20:42:03] sshautoconf: aborted with user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[2019-7-10 20:42:03] *** SSH: proxy configuration failed: user homedir writable by group/other ('chmod 755 /opt/fhem' required)
*** FHEM: connected
[2019-7-10 20:42:04] [FHEM] got: 25 results
[2019-7-10 20:42:04] [FHEM] Aquarium_Leuchtturm is switch
[2019-7-10 20:42:04] [FHEM] Aquarium_Leuchtturm has
[2019-7-10 20:42:04] [FHEM] On [state;on,off]
2019-07-10 20:42:04 caching: Aquarium_Leuchtturm-state: Swi: on
[2019-7-10 20:42:04] [FHEM] Aquarium_Licht is switch
[2019-7-10 20:42:04] [FHEM] Aquarium_Licht has
[2019-7-10 20:42:04] [FHEM] On [state;on,off]
2019-07-10 20:42:04 caching: Aquarium_Licht-state: Swi: off
[2019-7-10 20:42:04] [FHEM] Aquarium_Pumpe_Heizung is switch
[2019-7-10 20:42:04] [FHEM] Aquarium_Pumpe_Heizung has
[2019-7-10 20:42:04] [FHEM] On [state;on,off]
2019-07-10 20:42:04 caching: Aquarium_Pumpe_Heizung-state: Swi: on
[2019-7-10 20:42:04] [FHEM] Bewegungsmelder_Flur is security
[2019-7-10 20:42:04] [FHEM] Bewegungsmelder_Flur has
[2019-7-10 20:42:04] [FHEM] On [state;on,off]
2019-07-10 20:42:04 caching: Bewegungsmelder_Flur-state: off
[2019-7-10 20:42:04] [FHEM] ESP1_DHT22 is thermometer
[2019-7-10 20:42:04] [FHEM] ESP1_DHT22 has
[2019-7-10 20:42:04] [FHEM] CurrentTemperature [temperature]
fhem@FhemServer:~$ alexa-fhem /opt/fhem/alexa-fhem.cfg
[2019-7-10 21:43:08] os.homedir()=/opt/fhem
[2019-7-10 21:43:08] using config from /opt/fhem/.alexa/config.json[2019-7-10 21:43:08] Couldn't find a config file at '/opt/fhem/.alexa/config.json'. Look at config-sample.json for an example.
fhem@FhemServer:~$ alexa-fhem -c /opt/fhem/alexa-fhem.cfg
[2019-7-10 21:43:15] using config from /opt/fhem/alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-7-10 21:43:15] os.homedir()=/opt/fhem
[2019-7-10 21:43:15] this is alexa-fhem 0.5.28
[2019-7-10 21:43:15] connecting to FHEM ...
[2019-7-10 21:43:16] [FHEM] trying longpoll to listen for fhem events
[2019-7-10 21:43:16] [FHEM] starting longpoll: http://127.0.0.1:9999/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1562787796293
[2019-7-10 21:43:16] [FHEM] got csrfToken:
[2019-7-10 21:43:16] [FHEM] Checking devices and attributes...
[2019-7-10 21:43:16] [FHEM] executing: http://127.0.0.1:9999/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-7-10 21:43:16] [FHEM] executing: http://127.0.0.1:9999/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-7-10 21:43:16] [FHEM] waiting for events ...
[2019-7-10 21:43:16] [FHEM] Fetching FHEM devices...
[2019-7-10 21:43:16] [FHEM] fetching: http://127.0.0.1:9999/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-7-10 21:43:16] [FHEM] alexa device is alexa
[2019-7-10 21:43:16] [FHEM] executing: http://127.0.0.1:9999/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.28%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-7-10 21:43:16] [FHEM] executing: http://127.0.0.1:9999/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-7-10 21:43:16] [FHEM] executing: http://127.0.0.1:9999/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-7-10 21:43:16] Server listening on: http://127.0.0.1:45031 for proxy connections
[2019-7-10 21:43:16] *** SSH: checking proxy configuration
[2019-7-10 21:43:16] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=/opt/fhem/alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-7-10 21:43:16] Passed config: {"sshproxy":{"description":"FHEM Connector","ssh":"/usr/bin/ssh","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":45031},"connections":[{"server":"127.0.0.1","webname":"fhem","name":"FHEM","filter":"alexaName=..*","uid":999,"port":"9999"}]}
[2019-7-10 21:43:16] sshautoconf: SSH key seems to exist
[2019-7-10 21:43:17] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-7-10 21:43:17] [FHEM] executing: http://127.0.0.1:9999/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
*** FHEM: connected
[2019-7-10 21:43:17] [FHEM] got: 25 results
sudo npm uninstall alexa-fhem
Zitat von: Device specific help bzw. commandref
alexaFHEM-cmd
The command to use as alexa-fhem.
alexaFHEM-config
The config file to use for alexa-fhem.
alexaFHEM-params
Additional alexa-fhem cmdline params.
attr AlexaDevice alexaFHEM-config /opt/fhem/alexa-fhem.cfg
Zitat von: Tueftler1983 am 10 Juli 2019, 22:26:07
Ist eig noch alles aus dem 1. Post notwendig oder gehe ich eig nur nach dem WIKI vor um den Alexa den Skill FHEMconnector verwenden zu können?
Mir raucht Grade leicht der kopf
Internals:
CHANGED
DEF 31
FUUID 5c56b865-f33f-a374-75b3-6e321d21e42b3875
IODev JLLaCrosse
JLLaCrosse_MSGCNT 1500
JLLaCrosse_RAWMSG OK 9 49 1 4 212 48
JLLaCrosse_TIME 2019-07-11 19:54:47
LASTInputDev JLLaCrosse
LaCrosse_lastRcv 2019-07-11 19:54:47
MSGCNT 1499
NAME TempWohnzimmer
NR 32
STATE T: 23.6 H: 48
TYPE LaCrosse
addr 31
battery_new 0
corr1 0
corr2 0
previousH 48
previousT 23.6
sensorType 0=T(H)
READINGS:
2019-07-11 19:54:47 battery ok
2019-07-11 19:54:47 humidity 48
2019-07-11 19:15:38 state T: 23.6 H: 48
2019-07-11 19:54:47 temperature 23.6
Attributes:
IODev JLLaCrosse
alexaName Temperatur Wohnzimmer
alias Klima Wohnzimmer
event-min-interval state:600,battery:3600,temperature:300,humidity:300
genericDeviceType thermometer
group Temperaturen
homebridgeMapping clear CurrentRelativeHumidity=humidity StatusLowBattery=battery,values=ok:BATTERY_LEVEL_NORMAL;;/^.*/:BATTERY_LEVEL_LOW CurrentTemperature=temperature
room Geräte->Temperaturen,Wohnzimmer
siriName Sensor Wohnzimmer
Internals:
FD 28
FUUID 5d2c7edb-f33f-6a35-5bca-60c833307ec38ed0
FVERSION 39_alexa.pm:0.190980/2019-04-02
LAST_START 2019-07-18 02:16:59
LAST_STOP 2019-07-18 02:16:53
NAME alexa
NOTIFYDEV global,global:npmjs.*alexa-fhem.*
NR 596
NTFY_ORDER 50-alexa
PARTIAL
PID 31936
STARTS 2
STATE running /usr/local/bin/alexa-fhem
TYPE alexa
active 0
alexa-fhem version 0.5.28
currentlogfile ./log/alexa-2019-07-18.log
logfile ./log/alexa-%Y-%m-%d.log
CoProcess:
cmdFn alexa_getCMD
name alexaFHEM
state running /usr/local/bin/alexa-fhem
READINGS:
2019-07-18 02:17:00 alexaFHEM running /usr/local/bin/alexa-fhem
2019-07-18 02:17:09 alexaFHEM.ProxyConnection running; SSH connected
2019-07-15 15:48:29 alexaFHEM.bearerToken crypt:037559777e02762500705d577201020d
2019-07-15 15:48:29 alexaFHEM.skillRegKey crypt:0d75250f0d060452190356520707030c777155527d075b7753490f255a7876547172557400077150010b
helper:
Attributes:
alexaFHEM-auth crypt:664611575c5d5c010e5457487c5045585a5c45
alexaFHEM-config ./alexa-fhem.cfg
alexaFHEM-log ./log/alexa-%Y-%m-%d.log
alexaMapping #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
alexaTypes #Type=<alias>[,<alias2>[,...]]
light=licht,lampen
blind=rolladen,rolläden,jalousie,jalousien,rollo,rollos
devStateIcon stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop
echoRooms #<deviceId>=<room>
fhemIntents #IntentName=<sample utterance>
gutenMorgen=guten morgen
guteNacht=gute nacht
nrarchive 1
room Homekit,System
stateFormat alexaFHEM
Internals:
CHANGED
DEF 45CC9E02
FUUID 5c42f8dd-f33f-6a35-ac36-980e15543357333d
FVERSION 10_CUL_HM.pm:0.198290/2019-07-14
NAME SchlafzimmerOG.Thermostat_Climate
NOTIFYDEV global
NR 65
NTFY_ORDER 50-SchlafzimmerOG.Thermostat_Climate
STATE T: 25.1 desired: 10.0
TYPE CUL_HM
chanNo 02
device SchlafzimmerOG.Thermostat
READINGS:
2019-07-18 10:00:01 CommandAccepted yes
2017-09-28 18:27:04 H 0
2017-09-27 23:52:34 R-dayTemp 21 C
2017-09-27 23:52:34 R-daylightSaveTime on
2017-09-27 23:52:34 R-heatCool heating
2017-09-27 23:52:34 R-modePrioManu all
2017-09-27 23:52:34 R-modePrioParty all
2017-09-27 23:52:34 R-nightTemp 17 C
2017-09-27 23:52:34 R-noMinMax4Manu off
2017-09-27 23:52:34 R-sendWeatherData on
2017-10-17 11:36:12 R-showHumidity tempHum
2017-09-27 23:52:34 R-showInfo time
2017-09-27 23:52:34 R-showSetTemp actTemp
2017-09-27 23:52:30 R-sign off
2017-09-27 23:52:34 R-tempOffset 0.0K
2017-09-27 23:52:34 R-weekPrgSel prog1
2017-09-27 23:52:34 R-winOpnBoost off
2019-04-09 14:59:35 R_P1_0_tempListSat 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_1_tempListSun 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_2_tempListMon 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_3_tempListTue 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_4_tempListWed 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_5_tempListThu 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_6_tempListFri 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_tempList_State verified
2019-04-09 14:59:38 R_P2_0_tempListSat 24:00 17.0
2019-04-09 14:59:38 R_P2_1_tempListSun 24:00 17.0
2019-04-09 14:59:38 R_P2_2_tempListMon 24:00 17.0
2019-04-09 14:59:38 R_P2_3_tempListTue 24:00 17.0
2019-04-09 14:59:38 R_P2_4_tempListWed 24:00 17.0
2019-04-09 14:59:38 R_P2_5_tempListThu 24:00 17.0
2019-04-09 14:59:38 R_P2_6_tempListFri 24:00 17.0
2019-04-09 14:59:38 R_P2_tempList_State verified
2019-04-09 14:59:42 R_P3_0_tempListSat 24:00 17.0
2019-04-09 14:59:42 R_P3_1_tempListSun 24:00 17.0
2019-04-09 14:59:42 R_P3_2_tempListMon 24:00 17.0
2019-04-09 14:59:42 R_P3_3_tempListTue 24:00 17.0
2019-04-09 14:59:42 R_P3_4_tempListWed 24:00 17.0
2019-04-09 14:59:42 R_P3_5_tempListThu 24:00 17.0
2019-04-09 14:59:42 R_P3_6_tempListFri 24:00 17.0
2019-04-09 14:59:42 R_P3_tempList_State verified
2019-04-09 14:59:30 RegL_01. 00:00 08:00
2019-04-09 14:59:35 RegL_07. 00:00 01:2A 02:22 03:09 04:3D 05:00 06:00 07:00 08:00 09:C7 0A:30 0B:00 0C:00 0D:00 0E:01 0F:04 10:00 11:00 12:09 13:00 14:4C 15:60 16:40 17:D8 18:51 19:20 1A:45 1B:20 1C:45 1D:20 1E:45 1F:20 20:45 21:20 22:45 23:20 24:45 25:20 26:45 27:20 28:45 29:20 2A:45 2B:20 2C:45 2D:20 2E:4C 2F:60 30:40 31:D8 32:51 33:20 34:45 35:20 36:45 37:20 38:45 39:20 3A:45 3B:20 3C:45 3D:20 3E:45 3F:20 40:45 41:20 42:45 43:20 44:45 45:20 46:45 47:20 48:4C 49:60 4A:40 4B:D8 4C:51 4D:20 4E:55 4F:08 50:45 51:20 52:45 53:20 54:45 55:20 56:45 57:20 58:45 59:20 5A:45 5B:20 5C:45 5D:20 5E:45 5F:20 60:45 61:20 62:4C 63:60 64:40 65:D8 66:51 67:20 68:55 69:08 6A:45 6B:20 6C:45 6D:20 6E:45 6F:20 70:45 71:20 72:45 73:20 74:45 75:20 76:45 77:20 78:45 79:20 7A:45 7B:20 7C:4C 7D:60 7E:40 7F:D8 80:51 81:20 82:55 83:08 84:45 85:20 86:45 87:20 88:45 89:20 8A:45 8B:20 8C:45 8D:20 8E:45 8F:20 90:45 91:20 92:45 93:20 94:45 95:20 96:4C 97:60 98:40 99:D8 9A:51 9B:20 9C:55 9D:08 9E:45 9F:20 A0:45 A1:20 A2:45 A3:20 A4:45 A5:20 A6:45 A7:20 A8:45 A9:20 AA:45 AB:20 AC:45 AD:20 AE:45 AF:20 B0:4C B1:60 B2:40 B3:D8 B4:51 B5:20 B6:55 B7:08 B8:45 B9:20 BA:45 BB:20 BC:45 BD:20 BE:45 BF:20 C0:45 C1:20 C2:45 C3:20 C4:45 C5:20 C6:45 C7:20 C8:45 C9:20 CA:00 CB:00 CC:00 CD:00 CE:00 CF:00
2019-04-09 14:59:38 RegL_08. 00:00 01:00 02:00 03:00 04:00 05:00 06:00 07:00 08:00 09:00 0A:00 0B:00 0C:00 0D:00 0E:00 0F:00 10:00 11:00 12:00 13:00 14:45 15:20 16:45 17:20 18:45 19:20 1A:45 1B:20 1C:45 1D:20 1E:45 1F:20 20:45 21:20 22:45 23:20 24:45 25:20 26:45 27:20 28:45 29:20 2A:45 2B:20 2C:45 2D:20 2E:45 2F:20 30:45 31:20 32:45 33:20 34:45 35:20 36:45 37:20 38:45 39:20 3A:45 3B:20 3C:45 3D:20 3E:45 3F:20 40:45 41:20 42:45 43:20 44:45 45:20 46:45 47:20 48:45 49:20 4A:45 4B:20 4C:45 4D:20 4E:45 4F:20 50:45 51:20 52:45 53:20 54:45 55:20 56:45 57:20 58:45 59:20 5A:45 5B:20 5C:45 5D:20 5E:45 5F:20 60:45 61:20 62:45 63:20 64:45 65:20 66:45 67:20 68:45 69:20 6A:45 6B:20 6C:45 6D:20 6E:45 6F:20 70:45 71:20 72:45 73:20 74:45 75:20 76:45 77:20 78:45 79:20 7A:45 7B:20 7C:45 7D:20 7E:45 7F:20 80:45 81:20 82:45 83:20 84:45 85:20 86:45 87:20 88:45 89:20 8A:45 8B:20 8C:45 8D:20 8E:45 8F:20 90:45 91:20 92:45 93:20 94:45 95:20 96:45 97:20 98:45 99:20 9A:45 9B:20 9C:45 9D:20 9E:45 9F:20 A0:45 A1:20 A2:45 A3:20 A4:45 A5:20 A6:45 A7:20 A8:45 A9:20 AA:45 AB:20 AC:45 AD:20 AE:45 AF:20 B0:45 B1:20 B2:45 B3:20 B4:45 B5:20 B6:45 B7:20 B8:45 B9:20 BA:45 BB:20 BC:45 BD:20 BE:45 BF:20 C0:45 C1:20 C2:45 C3:20 C4:45 C5:20 C6:45 C7:20 C8:45 C9:20 CA:00 CB:00 CC:00 CD:00 CE:00 CF:00
2019-04-09 14:59:42 RegL_09. 00:00 01:00 02:00 03:00 04:00 05:00 06:00 07:00 08:00 09:00 0A:00 0B:00 0C:00 0D:00 0E:00 0F:00 10:00 11:00 12:00 13:00 14:45 15:20 16:45 17:20 18:45 19:20 1A:45 1B:20 1C:45 1D:20 1E:45 1F:20 20:45 21:20 22:45 23:20 24:45 25:20 26:45 27:20 28:45 29:20 2A:45 2B:20 2C:45 2D:20 2E:45 2F:20 30:45 31:20 32:45 33:20 34:45 35:20 36:45 37:20 38:45 39:20 3A:45 3B:20 3C:45 3D:20 3E:45 3F:20 40:45 41:20 42:45 43:20 44:45 45:20 46:45 47:20 48:45 49:20 4A:45 4B:20 4C:45 4D:20 4E:45 4F:20 50:45 51:20 52:45 53:20 54:45 55:20 56:45 57:20 58:45 59:20 5A:45 5B:20 5C:45 5D:20 5E:45 5F:20 60:45 61:20 62:45 63:20 64:45 65:20 66:45 67:20 68:45 69:20 6A:45 6B:20 6C:45 6D:20 6E:45 6F:20 70:45 71:20 72:45 73:20 74:45 75:20 76:45 77:20 78:45 79:20 7A:45 7B:20 7C:45 7D:20 7E:45 7F:20 80:45 81:20 82:45 83:20 84:45 85:20 86:45 87:20 88:45 89:20 8A:45 8B:20 8C:45 8D:20 8E:45 8F:20 90:45 91:20 92:45 93:20 94:45 95:20 96:45 97:20 98:45 99:20 9A:45 9B:20 9C:45 9D:20 9E:45 9F:20 A0:45 A1:20 A2:45 A3:20 A4:45 A5:20 A6:45 A7:20 A8:45 A9:20 AA:45 AB:20 AC:45 AD:20 AE:45 AF:20 B0:45 B1:20 B2:45 B3:20 B4:45 B5:20 B6:45 B7:20 B8:45 B9:20 BA:45 BB:20 BC:45 BD:20 BE:45 BF:20 C0:45 C1:20 C2:45 C3:20 C4:45 C5:20 C6:45 C7:20 C8:45 C9:20 CA:00 CB:00 CC:00 CD:00 CE:00 CF:00
2017-09-29 17:57:15 T 0
2017-09-28 18:36:15 absFeuchte 2.7
2019-07-18 15:40:34 boostTime -
2019-07-18 15:40:34 commReporting off
2019-07-18 15:40:34 controlMode manual
2019-07-18 16:18:31 desired-temp 10.0
2017-09-28 18:36:15 dewpoint -8.6
2019-07-18 16:18:31 humidity 42
2019-07-18 16:18:31 measured-temp 25.1
2019-07-18 10:00:01 recentStateType ack
2019-07-18 16:18:31 state T: 25.1 desired: 10.0
2019-07-18 01:27:27 tempTmplSet none
2017-09-28 18:27:04 temperature 0
2019-07-18 15:40:34 winOpenReporting on
helper:
peerFriend peerRtTc
peerOpt p:thermostat
regLst 1,7,8,9
expert:
def 1
det 0
raw 1
tpl 0
role:
chn 1
shRegR:
07 00
tmpl:
Attributes:
alexaName Temperatur Schlafzimmer
event-on-change-reading measured-temp:0.1,desired-temp:0.2,state,humidity,boostTime,commReporting,controlMode,winOpenReporting
genericDeviceType thermostat
group Thermostate
homebridgeMapping TargetTemperature=SchlafzimmerOG.Thermostat_Climate:desired-temp,cmd=desired-temp,minValue=10,maxValue=35,minStep=0.5
CurrentTemperature=SchlafzimmerOG.Thermostat_Climate:measured-temp
model HM-TC-IT-WM-W-EU
peerIDs 00000000,
room Homekit,OG Schlafzimmer,Thermostate
tempListTmpl none
Zitat von: Supadone am 18 Juli 2019, 16:22:11
Servus, ich hab anscheinend, glaub ich zumindest, auch ein kleines Problem bei der Installation.
Ich hatte noch vor FHEM Connector mich mal mit der Alexa-Integration (alexa-fhem 0.3.4) versucht, habs dann aber irgendwann aufgegeben.
Mit FHEM Connector läufts prinzipiell, nur manche Abfrage wie hier im Thread geschrieben funktionieren nicht, Alexa sagt dass zum Beispiel auf die Frage "Wie warm ist es im Schlafzimmer": Das wird noch nicht unterstützt. Mir ist auch aufgefallen dass ich einige neuere genericdeviceType-Attribute nicht auswählen kann. Ich habe nur switch, outlet, light, blind, speaker und thermostat zur Verfügung, laut Wiki sollten da ja mittlerweile mehrere möglich sein. Laut alexa-Device habe ich aber die aktuelle alexa-fhem Version 0.5.28.
Hier mal ein List vom alexa-DeviceCode AuswählenInternals:
FD 28
FUUID 5d2c7edb-f33f-6a35-5bca-60c833307ec38ed0
FVERSION 39_alexa.pm:0.190980/2019-04-02
LAST_START 2019-07-18 02:16:59
LAST_STOP 2019-07-18 02:16:53
NAME alexa
NOTIFYDEV global,global:npmjs.*alexa-fhem.*
NR 596
NTFY_ORDER 50-alexa
PARTIAL
PID 31936
STARTS 2
STATE running /usr/local/bin/alexa-fhem
TYPE alexa
active 0
alexa-fhem version 0.5.28
currentlogfile ./log/alexa-2019-07-18.log
logfile ./log/alexa-%Y-%m-%d.log
CoProcess:
cmdFn alexa_getCMD
name alexaFHEM
state running /usr/local/bin/alexa-fhem
READINGS:
2019-07-18 02:17:00 alexaFHEM running /usr/local/bin/alexa-fhem
2019-07-18 02:17:09 alexaFHEM.ProxyConnection running; SSH connected
2019-07-15 15:48:29 alexaFHEM.bearerToken crypt:037559777e02762500705d577201020d
2019-07-15 15:48:29 alexaFHEM.skillRegKey crypt:0d75250f0d060452190356520707030c777155527d075b7753490f255a7876547172557400077150010b
helper:
Attributes:
alexaFHEM-auth crypt:664611575c5d5c010e5457487c5045585a5c45
alexaFHEM-config ./alexa-fhem.cfg
alexaFHEM-log ./log/alexa-%Y-%m-%d.log
alexaMapping #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
alexaTypes #Type=<alias>[,<alias2>[,...]]
light=licht,lampen
blind=rolladen,rolläden,jalousie,jalousien,rollo,rollos
devStateIcon stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop
echoRooms #<deviceId>=<room>
fhemIntents #IntentName=<sample utterance>
gutenMorgen=guten morgen
guteNacht=gute nacht
nrarchive 1
room Homekit,System
stateFormat alexaFHEM
und List vom betreffenden ThermostatCode AuswählenInternals:
CHANGED
DEF 45CC9E02
FUUID 5c42f8dd-f33f-6a35-ac36-980e15543357333d
FVERSION 10_CUL_HM.pm:0.198290/2019-07-14
NAME SchlafzimmerOG.Thermostat_Climate
NOTIFYDEV global
NR 65
NTFY_ORDER 50-SchlafzimmerOG.Thermostat_Climate
STATE T: 25.1 desired: 10.0
TYPE CUL_HM
chanNo 02
device SchlafzimmerOG.Thermostat
READINGS:
2019-07-18 10:00:01 CommandAccepted yes
2017-09-28 18:27:04 H 0
2017-09-27 23:52:34 R-dayTemp 21 C
2017-09-27 23:52:34 R-daylightSaveTime on
2017-09-27 23:52:34 R-heatCool heating
2017-09-27 23:52:34 R-modePrioManu all
2017-09-27 23:52:34 R-modePrioParty all
2017-09-27 23:52:34 R-nightTemp 17 C
2017-09-27 23:52:34 R-noMinMax4Manu off
2017-09-27 23:52:34 R-sendWeatherData on
2017-10-17 11:36:12 R-showHumidity tempHum
2017-09-27 23:52:34 R-showInfo time
2017-09-27 23:52:34 R-showSetTemp actTemp
2017-09-27 23:52:30 R-sign off
2017-09-27 23:52:34 R-tempOffset 0.0K
2017-09-27 23:52:34 R-weekPrgSel prog1
2017-09-27 23:52:34 R-winOpnBoost off
2019-04-09 14:59:35 R_P1_0_tempListSat 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_1_tempListSun 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_2_tempListMon 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_3_tempListTue 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_4_tempListWed 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_5_tempListThu 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_6_tempListFri 08:00 19.0 18:00 16.0 24:00 20.0
2019-04-09 14:59:35 R_P1_tempList_State verified
2019-04-09 14:59:38 R_P2_0_tempListSat 24:00 17.0
2019-04-09 14:59:38 R_P2_1_tempListSun 24:00 17.0
2019-04-09 14:59:38 R_P2_2_tempListMon 24:00 17.0
2019-04-09 14:59:38 R_P2_3_tempListTue 24:00 17.0
2019-04-09 14:59:38 R_P2_4_tempListWed 24:00 17.0
2019-04-09 14:59:38 R_P2_5_tempListThu 24:00 17.0
2019-04-09 14:59:38 R_P2_6_tempListFri 24:00 17.0
2019-04-09 14:59:38 R_P2_tempList_State verified
2019-04-09 14:59:42 R_P3_0_tempListSat 24:00 17.0
2019-04-09 14:59:42 R_P3_1_tempListSun 24:00 17.0
2019-04-09 14:59:42 R_P3_2_tempListMon 24:00 17.0
2019-04-09 14:59:42 R_P3_3_tempListTue 24:00 17.0
2019-04-09 14:59:42 R_P3_4_tempListWed 24:00 17.0
2019-04-09 14:59:42 R_P3_5_tempListThu 24:00 17.0
2019-04-09 14:59:42 R_P3_6_tempListFri 24:00 17.0
2019-04-09 14:59:42 R_P3_tempList_State verified
2019-04-09 14:59:30 RegL_01. 00:00 08:00
2019-04-09 14:59:35 RegL_07. 00:00 01:2A 02:22 03:09 04:3D 05:00 06:00 07:00 08:00 09:C7 0A:30 0B:00 0C:00 0D:00 0E:01 0F:04 10:00 11:00 12:09 13:00 14:4C 15:60 16:40 17:D8 18:51 19:20 1A:45 1B:20 1C:45 1D:20 1E:45 1F:20 20:45 21:20 22:45 23:20 24:45 25:20 26:45 27:20 28:45 29:20 2A:45 2B:20 2C:45 2D:20 2E:4C 2F:60 30:40 31:D8 32:51 33:20 34:45 35:20 36:45 37:20 38:45 39:20 3A:45 3B:20 3C:45 3D:20 3E:45 3F:20 40:45 41:20 42:45 43:20 44:45 45:20 46:45 47:20 48:4C 49:60 4A:40 4B:D8 4C:51 4D:20 4E:55 4F:08 50:45 51:20 52:45 53:20 54:45 55:20 56:45 57:20 58:45 59:20 5A:45 5B:20 5C:45 5D:20 5E:45 5F:20 60:45 61:20 62:4C 63:60 64:40 65:D8 66:51 67:20 68:55 69:08 6A:45 6B:20 6C:45 6D:20 6E:45 6F:20 70:45 71:20 72:45 73:20 74:45 75:20 76:45 77:20 78:45 79:20 7A:45 7B:20 7C:4C 7D:60 7E:40 7F:D8 80:51 81:20 82:55 83:08 84:45 85:20 86:45 87:20 88:45 89:20 8A:45 8B:20 8C:45 8D:20 8E:45 8F:20 90:45 91:20 92:45 93:20 94:45 95:20 96:4C 97:60 98:40 99:D8 9A:51 9B:20 9C:55 9D:08 9E:45 9F:20 A0:45 A1:20 A2:45 A3:20 A4:45 A5:20 A6:45 A7:20 A8:45 A9:20 AA:45 AB:20 AC:45 AD:20 AE:45 AF:20 B0:4C B1:60 B2:40 B3:D8 B4:51 B5:20 B6:55 B7:08 B8:45 B9:20 BA:45 BB:20 BC:45 BD:20 BE:45 BF:20 C0:45 C1:20 C2:45 C3:20 C4:45 C5:20 C6:45 C7:20 C8:45 C9:20 CA:00 CB:00 CC:00 CD:00 CE:00 CF:00
2019-04-09 14:59:38 RegL_08. 00:00 01:00 02:00 03:00 04:00 05:00 06:00 07:00 08:00 09:00 0A:00 0B:00 0C:00 0D:00 0E:00 0F:00 10:00 11:00 12:00 13:00 14:45 15:20 16:45 17:20 18:45 19:20 1A:45 1B:20 1C:45 1D:20 1E:45 1F:20 20:45 21:20 22:45 23:20 24:45 25:20 26:45 27:20 28:45 29:20 2A:45 2B:20 2C:45 2D:20 2E:45 2F:20 30:45 31:20 32:45 33:20 34:45 35:20 36:45 37:20 38:45 39:20 3A:45 3B:20 3C:45 3D:20 3E:45 3F:20 40:45 41:20 42:45 43:20 44:45 45:20 46:45 47:20 48:45 49:20 4A:45 4B:20 4C:45 4D:20 4E:45 4F:20 50:45 51:20 52:45 53:20 54:45 55:20 56:45 57:20 58:45 59:20 5A:45 5B:20 5C:45 5D:20 5E:45 5F:20 60:45 61:20 62:45 63:20 64:45 65:20 66:45 67:20 68:45 69:20 6A:45 6B:20 6C:45 6D:20 6E:45 6F:20 70:45 71:20 72:45 73:20 74:45 75:20 76:45 77:20 78:45 79:20 7A:45 7B:20 7C:45 7D:20 7E:45 7F:20 80:45 81:20 82:45 83:20 84:45 85:20 86:45 87:20 88:45 89:20 8A:45 8B:20 8C:45 8D:20 8E:45 8F:20 90:45 91:20 92:45 93:20 94:45 95:20 96:45 97:20 98:45 99:20 9A:45 9B:20 9C:45 9D:20 9E:45 9F:20 A0:45 A1:20 A2:45 A3:20 A4:45 A5:20 A6:45 A7:20 A8:45 A9:20 AA:45 AB:20 AC:45 AD:20 AE:45 AF:20 B0:45 B1:20 B2:45 B3:20 B4:45 B5:20 B6:45 B7:20 B8:45 B9:20 BA:45 BB:20 BC:45 BD:20 BE:45 BF:20 C0:45 C1:20 C2:45 C3:20 C4:45 C5:20 C6:45 C7:20 C8:45 C9:20 CA:00 CB:00 CC:00 CD:00 CE:00 CF:00
2019-04-09 14:59:42 RegL_09. 00:00 01:00 02:00 03:00 04:00 05:00 06:00 07:00 08:00 09:00 0A:00 0B:00 0C:00 0D:00 0E:00 0F:00 10:00 11:00 12:00 13:00 14:45 15:20 16:45 17:20 18:45 19:20 1A:45 1B:20 1C:45 1D:20 1E:45 1F:20 20:45 21:20 22:45 23:20 24:45 25:20 26:45 27:20 28:45 29:20 2A:45 2B:20 2C:45 2D:20 2E:45 2F:20 30:45 31:20 32:45 33:20 34:45 35:20 36:45 37:20 38:45 39:20 3A:45 3B:20 3C:45 3D:20 3E:45 3F:20 40:45 41:20 42:45 43:20 44:45 45:20 46:45 47:20 48:45 49:20 4A:45 4B:20 4C:45 4D:20 4E:45 4F:20 50:45 51:20 52:45 53:20 54:45 55:20 56:45 57:20 58:45 59:20 5A:45 5B:20 5C:45 5D:20 5E:45 5F:20 60:45 61:20 62:45 63:20 64:45 65:20 66:45 67:20 68:45 69:20 6A:45 6B:20 6C:45 6D:20 6E:45 6F:20 70:45 71:20 72:45 73:20 74:45 75:20 76:45 77:20 78:45 79:20 7A:45 7B:20 7C:45 7D:20 7E:45 7F:20 80:45 81:20 82:45 83:20 84:45 85:20 86:45 87:20 88:45 89:20 8A:45 8B:20 8C:45 8D:20 8E:45 8F:20 90:45 91:20 92:45 93:20 94:45 95:20 96:45 97:20 98:45 99:20 9A:45 9B:20 9C:45 9D:20 9E:45 9F:20 A0:45 A1:20 A2:45 A3:20 A4:45 A5:20 A6:45 A7:20 A8:45 A9:20 AA:45 AB:20 AC:45 AD:20 AE:45 AF:20 B0:45 B1:20 B2:45 B3:20 B4:45 B5:20 B6:45 B7:20 B8:45 B9:20 BA:45 BB:20 BC:45 BD:20 BE:45 BF:20 C0:45 C1:20 C2:45 C3:20 C4:45 C5:20 C6:45 C7:20 C8:45 C9:20 CA:00 CB:00 CC:00 CD:00 CE:00 CF:00
2017-09-29 17:57:15 T 0
2017-09-28 18:36:15 absFeuchte 2.7
2019-07-18 15:40:34 boostTime -
2019-07-18 15:40:34 commReporting off
2019-07-18 15:40:34 controlMode manual
2019-07-18 16:18:31 desired-temp 10.0
2017-09-28 18:36:15 dewpoint -8.6
2019-07-18 16:18:31 humidity 42
2019-07-18 16:18:31 measured-temp 25.1
2019-07-18 10:00:01 recentStateType ack
2019-07-18 16:18:31 state T: 25.1 desired: 10.0
2019-07-18 01:27:27 tempTmplSet none
2017-09-28 18:27:04 temperature 0
2019-07-18 15:40:34 winOpenReporting on
helper:
peerFriend peerRtTc
peerOpt p:thermostat
regLst 1,7,8,9
expert:
def 1
det 0
raw 1
tpl 0
role:
chn 1
shRegR:
07 00
tmpl:
Attributes:
alexaName Temperatur Schlafzimmer
event-on-change-reading measured-temp:0.1,desired-temp:0.2,state,humidity,boostTime,commReporting,controlMode,winOpenReporting
genericDeviceType thermostat
group Thermostate
homebridgeMapping TargetTemperature=SchlafzimmerOG.Thermostat_Climate:desired-temp,cmd=desired-temp,minValue=10,maxValue=35,minStep=0.5
CurrentTemperature=SchlafzimmerOG.Thermostat_Climate:measured-temp
model HM-TC-IT-WM-W-EU
peerIDs 00000000,
room Homekit,OG Schlafzimmer,Thermostate
tempListTmpl none
Kann es sein dass da bei mir noch irgendwo alte Reste der 0.3.4 versteckt sind oder hab ich irgendwas komplett falsch gemacht? ;D
Zitat von: MadMax-FHEM am 18 Juli 2019, 17:44:02Ah, ich dachte immer dass die "neuen" Attribute einfach zu dem Dropdown-Feld hinzugefügt werden, dadurch mein Verdacht dass irgendwas nicht aktualisiert wurde. Aber wunderbar, dann ist mit meiner Installation also alles korrekt.
Die bekannten aber nicht per dropdown angezeigten genericDeviceType kannst du entweder einfach im FhemWeb eintippen:
Zitat von: redsnake88 am 21 Juli 2019, 18:18:02
vl bin ich auch einfach schon zu brain afk aber ich bekomme es einfach nicht gebacken das modul zu installieren ... vl kann mir jemand von euch weiterhelfen ich mache alles laut wiki jedoch kommt im reading immer alexaFHEM
stopped; alexa-fhem not installed. install with 'sudo npm install -g alexa-fhem'.
node -v
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/lib/node_modules/alexa-fhem/bin/alexa:17:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
/usr/lib/node_modules/alexa-fhem/lib/cli.js:15
let startupPromise = new Promise(function (resolve) {
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/lib/node_modules/alexa-fhem/bin/alexa:17:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
node --version
sudo -u fhem node --version
Zitat von: FlatTV am 07 Juli 2019, 18:31:16
Ich verzweifle an der Einrichtung meiner Bose Preset/Kanal Tasten.
So findet alexa nichts:Code Auswählendefmod alexa.channel.kueche dummy
attr alexa.channel.kueche alexaName Test
attr alexa.channel.kueche genericDeviceType media
attr alexa.channel.kueche homebridgeMapping ChannelController:reading=channel:BOSE_B0D5CCAFB416:channel,cmd=channel
attr alexa.channel.kueche room 99_System@alexa
Wenn ich das über genericDevice blind mache, so wie bei einem Thermostat, geht es eigentlich.Code Auswählendefmod alexa.channel.kueche dummy
attr alexa.channel.kueche alexaName Test
attr alexa.channel.kueche genericDeviceType blind
attr alexa.channel.kueche homebridgeMapping TargetTemperature=desired-temp:BOSE_B0D5CCAFB416:channel,cmd=channel,minValue=1,maxValue=6,minStep=1
attr alexa.channel.kueche room 99_System@alexa
Bei ,,alexa, stelle Test auf 5" sagt mir Alexa dann leider immer ,,Test wurde auf 5 Grad gestellt"
Findet da jemand einen Fehler?Code Auswählen[7.7.2019, 19:03:52] [FHEM] alexa.channel.kueche is media
[7.7.2019, 19:03:52] [FHEM] alexa.channel.kueche has
[7.7.2019, 19:03:52] [FHEM] ChannelController [channel:BOSE_B0D5CCAFB416:channel]
defmod alexa.channel.kueche dummy
attr alexa.channel.kueche alexaName Küchenradio Preset
attr alexa.channel.kueche genericDeviceType blind
attr alexa.channel.kueche homebridgeMapping CurrentPosition=channel:BOSE_B0D5CCAFB416:channel TargetPosition=channel:BOSE_B0D5CCAFB416:channel,cmd=channel,minValue=1,maxValue=6,minStep=1
attr alexa.channel.kueche room 99_System@alexa
[2019-7-24 14:50:49] BearerToken '...4ACF5' read from Alexa
[2019-7-24 14:50:49] [FHEM] got .eventToken
[2019-7-24 14:50:49] refreshing token
[2019-7-24 14:50:49] Reading alexaFHEM.ProxyConnection set to error;; Reverse Proxy replied with neither registered nor unregistered status: out: err:ssh: Could not resolve hostname fhem-va.fhem.de: Temporary failure in name resolution
[2019-7-24 14:50:49] [FHEM] executing: https://127.0.0.1:8085/fhem?cmd=%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20Alexa%20alexaFHEM.ProxyConnection%20error%3B%3B%20Reverse%20Proxy%20replied%20with%20neither%20registered%20nor%20unregistered%20status%3A%20out%3A%20%20err%3Assh%3A%20Could%20not%20resolve%20hostname%20fhem-va.fhem.de%3A%20Temporary%20failure%20in%20name%20resolution%0D%0A%3B%7B%24defs%7BAlexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
Zitat von: MarkusN am 31 Juli 2019, 10:20:10
Gibt es mit den derzeitigen FHEM-Alexa implementationen eine Möglichkeit herauszufinden welches Echo Device das letzte Kommando abgesetzt hat (so wie hier (https://wennez.wordpress.com/light-on-with-alexa-for-each-room/))?
Ich würde gerne diverse Kommandos auf bestimmte Alexa Geräte beschränken, oder eine Routine unterschiedliche Dinge tun lassen, abhängig davon auf welchem Echo das Kommando abgesetzt wurde.
Zitat von: MadMax-FHEM am 31 Juli 2019, 10:45:41
Ginge mit dem echodevice-Modul: https://forum.fhem.de/index.php/topic,82631.msg747482.html#msg747482
Ist auch in dem Thread (mehrfach) beschrieben wie dann der Ablauf wäre.
Hier grob:
Dummy in fhem der "Alexa-fähig" ist -> Routine in der Alexa-App (dort dann definieren was du sagen willst) -> Dummy wird am Ende der Routine geschaltet (optional Alexa sowas wie: einen Moment bitte sagen lassen ;) )-> Notify auf den Dummy -> (dann get status oder so beim Account-Device / sollte eigentlich nicht mehr nötig sein, da eigentlich per Attribut das voice-Reading schneller abgefragt werden kann / manche haben aber Probleme oder es funktioniert nicht mehr wie gedacht) -> Notify auf "voice-Reading", dabie kommt auch der Echo mit, der "die Ansage bekommen hat" -> prüfen, ausführen, etc. -> Antwort an genau diesen Echo zurück (wenn gewünscht): set ECHO speak Text...
Gruß, Joachim
Internals:
FUUID 5c5e94b4-f33f-bcbf-5d99-a244a1134bc78536
NAME powerpi.wz.wandlampe
NR 174
STATE off
TYPE dummy
READINGS:
2019-08-09 06:55:10 state off
Attributes:
alexaName Lampe Sofa
alias Wandleuchten Sofa
genericDeviceType switch
group Beleuchtung
room Wohnzimmer
setList state:on,off
userattr powerpi.wz.stehlampe powerpi.wz.stehlampe_map structexclude
webCmd on:off
Zitat von: Adriano am 09 August 2019, 14:38:00
Sind Leerzeichen im Namen und Alexa überhaupt erlaubt?
ZitatHabe ich dort etwas übersehen?
Zitat von: TomLee am 09 August 2019, 15:23:26
Hallo,
sicher. Schwer vorstellbar das dir das, auch nach nur kurzer Suche, passiern konnte !?
Bin sicher wenn du weiter suchst findest es auch gleich :P
Gruß
Thomas
setList state:on,off[code]
Oder stört das "erste" an der Stelle?
Gruß, Thorsten
set powerpi.wz.wandlampe on
set powerpi.wz.wandlampe off
schalten?
Zitat von: commandref->dummy
setList
Liste mit Werten durch Leerzeichen getrennt. Diese Liste wird mit "set name ?" ausgegeben. Damit kann das FHEMWEB-Frontend Auswahl-Menüs oder Schalter erzeugen.
Beispiel: attr dummyName setList on off
setlist on off
homebridgemapping On=state,cmdOn=on,cmdOff=off,valueOn=on,valueOff=off
[2019-8-10 13:22:16] [FHEM] powerpi.wz.wandlampe is switch
[2019-8-10 13:22:16] [FHEM] powerpi.wz.wandlampe has
[2019-8-10 13:25:08] [FHEM] powerpi.wz.wandlampe is switch
[2019-8-10 13:25:08] [FHEM] powerpi.wz.wandlampe has
[2019-8-10 13:25:08] [FHEM] On [state;on,off]
2019-08-10 13:25:08 caching: powerpi.wz.wandlampe-state:
Internals:
FUUID 5c5e94b4-f33f-bcbf-5d99-a244a1134bc78536
NAME powerpi.wz.wandlampe
NR 174
STATE off
TYPE dummy
READINGS:
2019-08-10 13:30:31 state off
Attributes:
alexaName Lampe Sofa
alias Wandleuchten Sofa
genericDeviceType switch
group Beleuchtung
homebridgeMapping On=state,cmdOn=on,cmdOff=off,valueOn=on,valueOff=off
room Wohnzimmer
setList state:on,off
userattr powerpi.wz.stehlampe powerpi.wz.stehlampe_map structexclude
webCmd on:off
Zitat von: thoweiss am 10 August 2019, 13:36:42
Bei mir musste ich zusätzlich das homebridgemapping setzen.
pi@FhemServer:/opt/fhem $ node -v
v8.11.3
pi@FhemServer:/opt/fhem $ ps -ef | egrep '(alexa|ssh)'
root 492 1 0 Aug11 ? 00:00:00 /usr/sbin/sshd -D
root 10931 492 0 07:58 ? 00:00:00 sshd: pi [priv]
pi 10958 10931 0 07:58 ? 00:00:00 sshd: pi@pts/0
pi 11851 10961 0 08:11 pts/0 00:00:00 grep -E --color=auto (alexa|ssh)
pi@FhemServer:/opt/fhem $ sudo ls -l /opt/fhem/.ssh
insgesamt 12
-rw------- 1 fhem dialout 1823 Aug 6 07:59 id_rsa
-rw-r--r-- 1 fhem dialout 397 Aug 6 07:59 id_rsa.pub
-rw-r--r-- 1 fhem dialout 884 Aug 6 07:59 known_hosts
pi@FhemServer:/opt/fhem $ sudo -u fhem ssh -p 58824 fhem-va.fhem.de status
Unregistered.
Your SSH key ist not registered.
pi@FhemServer:~ $ sudo npm install -g alexa-fhem
Speicherzugriffsfehler
2019.08.12 08:06:02 3: alexa: starting
2019.08.12 08:06:02 3: alexa: using logfile: ./log/alexa-2019-08-12.log
2019.08.12 08:06:03 3: alexa: read: end of file reached while sysread
2019.08.12 08:06:03 3: alexa: stopped
jump to the end
[2019-9-8 20:07:23] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-9-8 20:07:23] os.homedir()=/opt/fhem
[2019-9-8 20:07:23] this is alexa-fhem 0.5.28
[2019-9-8 20:07:23] connecting to FHEM ...
[2019-9-8 20:07:24] [FHEM] trying longpoll to listen for fhem events
[2019-9-8 20:07:24] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1567966044780
[2019-9-8 20:07:24] [FHEM] got csrfToken:
[2019-9-8 20:07:24] [FHEM] Checking devices and attributes...
[2019-9-8 20:07:24] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-9-8 20:07:24] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-9-8 20:07:24] [FHEM] waiting for events ...
[2019-9-8 20:07:24] [FHEM] Fetching FHEM devices...
[2019-9-8 20:07:24] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-9-8 20:07:24] [FHEM] alexa device is alexa
[2019-9-8 20:07:25] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.28%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:07:25] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:07:25] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:07:25] Server listening on: http://127.0.0.1:39211 for proxy connections
[2019-9-8 20:07:25] *** SSH: checking proxy configuration
[2019-9-8 20:07:25] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-9-8 20:07:25] sshautoconf: env={"OLDPWD":"/","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","LANG":"de_DE.UTF-8","PWD":"/opt/fhem"}
[2019-9-8 20:07:25] sshautoconf: Creating directory /opt/fhem/.alexa
[2019-9-8 20:07:25] Passed config: {"connections":[{"port":"8083","filter":"alexaName=..*","server":"127.0.0.1","uid":999,"name":"FHEM","webname":"fhem"}],"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":39211}}
[2019-9-8 20:07:25] sshautoconf: No SSH public key found, we have to generate one.
[2019-9-8 20:07:26] sshautoconf: Generating public/private rsa key pair.
Created directory '/opt/fhem/.ssh'.
Your identification has been saved in /opt/fhem/.ssh/id_rsa.
Your public key has been saved in /opt/fhem/.ssh/id_rsa.pub.
The key fingerprint is:
5c:af:f6:60:8a:ec:56:4f:5c:af:f6:60:8a:ec:56:4f fhem@raspberrypi
The key's randomart image is:
+---[RSA 2048]----+
| E |
| . |
| . o |
| o + . |
| . S. . |
| oo +. |
| .oo== |
| .o* +.o |
| +*.o . |
+-----------------+
[2019-9-8 20:07:27] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:07:27] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%20addToAttrList(%20%22homebridgeMapping%3AtextField-long%22%20)%20%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:07:27] [FHEM] homebridgeMapping attribute created.
[2019-9-8 20:07:27] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7BaddToAttrList(%20%22genericDeviceType%3Asecurity%2Cignore%2Cswitch%2Coutlet%2Clight%2Cblind%2Cthermometer%2Cthermostat%2Ccontact%2Cgarage%2Cwindow%2Clock%2Cscene%22%20)%20%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
*** FHEM: connected
[2019-9-8 20:07:27] [FHEM] got: 0 results
[2019-9-8 20:07:27] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-9-8 20:07:27] 39_alexa.pm is new version: true
[2019-9-8 20:07:28] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bset%20alexa%20proxyToken%205DA5E545D11364AC%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:07:28] [FHEM] genericDeviceType attribute was not known. please restart.
[2019-9-8 20:07:48] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-9-8 20:07:48] os.homedir()=/opt/fhem
[2019-9-8 20:07:48] this is alexa-fhem 0.5.28
[2019-9-8 20:07:48] connecting to FHEM ...
[2019-9-8 20:07:49] [FHEM] trying longpoll to listen for fhem events
[2019-9-8 20:07:49] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1567966069337
[2019-9-8 20:07:49] [FHEM] got csrfToken:
[2019-9-8 20:07:49] [FHEM] Checking devices and attributes...
[2019-9-8 20:07:49] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-9-8 20:07:49] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-9-8 20:07:49] [FHEM] waiting for events ...
[2019-9-8 20:07:49] [FHEM] Fetching FHEM devices...
[2019-9-8 20:07:49] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-9-8 20:07:49] [FHEM] alexa device is alexa
[2019-9-8 20:07:49] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.28%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:07:49] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:07:49] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:07:49] Server listening on: http://127.0.0.1:42385 for proxy connections
[2019-9-8 20:07:49] *** SSH: checking proxy configuration
[2019-9-8 20:07:49] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-9-8 20:07:49] Passed config: {"connections":[{"port":"8083","filter":"alexaName=..*","server":"127.0.0.1","uid":999,"name":"FHEM","webname":"fhem"}],"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":42385}}
[2019-9-8 20:07:49] sshautoconf: SSH key seems to exist
[2019-9-8 20:07:50] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-9-8 20:07:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
*** FHEM: connected
[2019-9-8 20:07:50] [FHEM] got: 0 results
[2019-9-8 20:07:50] BearerToken '...364AC' read from alexa
[2019-9-8 20:07:50] 39_alexa.pm is new version: true
[2019-9-8 20:07:50] sshautoconf: completed successfully
[2019-9-8 20:07:50] *** SSH: proxy configuration set up done
[2019-9-8 20:07:50] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-9-8 20:07:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:07:50] Starting SSH with -R 1234:127.0.0.1:42385 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[2019-9-8 20:07:50] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-9-8 20:07:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:07:50] *** SSH: proxy connection established
[2019-9-8 20:07:50] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[2019-9-8 20:20:29] Got SIGTERM, shutting down alexa-fhem...
[2019-9-8 20:20:29] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-9-8 20:20:29] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:20:29] Stopping SSH ...
[2019-9-8 20:20:29] Reading alexaFHEM.ProxyConnection set to stopped
[2019-9-8 20:20:29] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopped%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:20:29] *** SSH: exited with 143
[2019-9-8 20:20:49] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-9-8 20:20:49] os.homedir()=/opt/fhem
[2019-9-8 20:20:49] this is alexa-fhem 0.5.28
[2019-9-8 20:20:49] connecting to FHEM ...
[2019-9-8 20:20:50] [FHEM] trying longpoll to listen for fhem events
[2019-9-8 20:20:50] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1567966850368
[2019-9-8 20:20:57] [FHEM] got csrfToken:
[2019-9-8 20:20:57] [FHEM] Checking devices and attributes...
[2019-9-8 20:20:57] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-9-8 20:20:57] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-9-8 20:20:57] [FHEM] waiting for events ...
[2019-9-8 20:20:57] [FHEM] Fetching FHEM devices...
[2019-9-8 20:20:57] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-9-8 20:20:57] [FHEM] alexa device is alexa
[2019-9-8 20:20:57] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.28%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:20:57] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:20:57] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:20:57] Server listening on: http://127.0.0.1:44161 for proxy connections
[2019-9-8 20:20:57] *** SSH: checking proxy configuration
[2019-9-8 20:20:57] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-9-8 20:20:57] Passed config: {"connections":[{"port":"8083","filter":"alexaName=..*","server":"127.0.0.1","uid":999,"name":"FHEM","webname":"fhem"}],"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":44161}}
[2019-9-8 20:20:57] sshautoconf: SSH key seems to exist
[2019-9-8 20:20:58] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-9-8 20:20:58] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
*** FHEM: connected
[2019-9-8 20:20:58] [FHEM] got: 0 results
[2019-9-8 20:20:58] 39_alexa.pm is new version: true
[2019-9-8 20:20:58] sshautoconf: completed successfully
[2019-9-8 20:20:58] *** SSH: proxy configuration set up done
[2019-9-8 20:20:58] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-9-8 20:20:58] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:20:58] Starting SSH with -R 1234:127.0.0.1:44161 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[2019-9-8 20:20:58] BearerToken '...364AC' read from alexa
[2019-9-8 20:20:59] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-9-8 20:20:59] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:20:59] *** SSH: proxy connection established
[2019-9-8 20:20:59] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[2019-9-8 20:46:15] Got SIGTERM, shutting down alexa-fhem...
[2019-9-8 20:46:15] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-9-8 20:46:15] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:46:15] Stopping SSH ...
[2019-9-8 20:46:15] Reading alexaFHEM.ProxyConnection set to stopped
[2019-9-8 20:46:15] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopped%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:46:15] *** SSH: exited with 143
[2019-9-8 20:46:37] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-9-8 20:46:37] os.homedir()=/opt/fhem
[2019-9-8 20:46:37] this is alexa-fhem 0.5.28
[2019-9-8 20:46:37] connecting to FHEM ...
[2019-9-8 20:46:38] [FHEM] trying longpoll to listen for fhem events
[2019-9-8 20:46:38] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1567968398034
[2019-9-8 20:46:46] [FHEM] got csrfToken:
[2019-9-8 20:46:46] [FHEM] Checking devices and attributes...
[2019-9-8 20:46:46] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-9-8 20:46:46] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-9-8 20:46:46] [FHEM] waiting for events ...
[2019-9-8 20:46:46] [FHEM] Fetching FHEM devices...
[2019-9-8 20:46:46] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-9-8 20:46:46] [FHEM] alexa device is alexa
[2019-9-8 20:46:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.28%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:46:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:46:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:46:47] Server listening on: http://127.0.0.1:43983 for proxy connections
[2019-9-8 20:46:47] *** SSH: checking proxy configuration
[2019-9-8 20:46:47] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-9-8 20:46:47] Passed config: {"connections":[{"port":"8083","filter":"alexaName=..*","server":"127.0.0.1","uid":999,"name":"FHEM","webname":"fhem"}],"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":43983}}
[2019-9-8 20:46:47] sshautoconf: SSH key seems to exist
[2019-9-8 20:46:47] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-9-8 20:46:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
*** FHEM: connected
[2019-9-8 20:46:47] [FHEM] got: 0 results
[2019-9-8 20:46:47] BearerToken '...364AC' read from alexa
[2019-9-8 20:46:47] 39_alexa.pm is new version: true
[2019-9-8 20:46:47] sshautoconf: completed successfully
[2019-9-8 20:46:47] *** SSH: proxy configuration set up done
[2019-9-8 20:46:47] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-9-8 20:46:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:46:47] Starting SSH with -R 1234:127.0.0.1:43983 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[2019-9-8 20:46:49] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-9-8 20:46:49] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 20:46:49] *** SSH: proxy connection established
[2019-9-8 20:46:49] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[2019-9-8 21:11:02] reloading http://127.0.0.1:8083/fhem
[2019-9-8 21:11:02] [FHEM] Fetching FHEM devices...
[2019-9-8 21:11:02] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
*** FHEM: connected
[2019-9-8 21:11:02] [FHEM] got: 0 results
[2019-9-8 21:11:33] reloading http://127.0.0.1:8083/fhem
[2019-9-8 21:11:33] [FHEM] Fetching FHEM devices...
[2019-9-8 21:11:33] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
*** FHEM: connected
[2019-9-8 21:11:33] [FHEM] got: 0 results
[2019-9-8 21:20:44] Got SIGTERM, shutting down alexa-fhem...
[2019-9-8 21:20:44] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-9-8 21:20:44] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 21:20:44] Stopping SSH ...
[2019-9-8 21:20:44] Reading alexaFHEM.ProxyConnection set to stopped
[2019-9-8 21:20:44] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopped%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 21:20:44] *** SSH: exited with 143
[2019-9-8 21:20:47] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-9-8 21:20:47] os.homedir()=/opt/fhem
[2019-9-8 21:20:47] this is alexa-fhem 0.5.28
[2019-9-8 21:20:47] connecting to FHEM ...
[2019-9-8 21:20:47] [FHEM] trying longpoll to listen for fhem events
[2019-9-8 21:20:47] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1567970447883
[2019-9-8 21:20:47] [FHEM] got csrfToken:
[2019-9-8 21:20:47] [FHEM] Checking devices and attributes...
[2019-9-8 21:20:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-9-8 21:20:47] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-9-8 21:20:47] [FHEM] waiting for events ...
[2019-9-8 21:20:47] [FHEM] Fetching FHEM devices...
[2019-9-8 21:20:47] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-9-8 21:20:48] [FHEM] alexa device is alexa
[2019-9-8 21:20:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.28%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 21:20:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 21:20:48] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 21:20:48] Server listening on: http://127.0.0.1:41505 for proxy connections
[2019-9-8 21:20:48] *** SSH: checking proxy configuration
[2019-9-8 21:20:48] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-9-8 21:20:48] Passed config: {"sshproxy":{"description":"FHEM Connector","ssh":"/usr/bin/ssh","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":41505},"connections":[{"uid":999,"name":"FHEM","filter":"alexaName=..*","server":"127.0.0.1","webname":"fhem","port":"8083"}]}
[2019-9-8 21:20:48] sshautoconf: SSH key seems to exist
[2019-9-8 21:20:49] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2019-9-8 21:20:49] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
*** FHEM: connected
[2019-9-8 21:20:49] [FHEM] got: 0 results
[2019-9-8 21:20:50] BearerToken '...364AC' read from alexa
[2019-9-8 21:20:50] 39_alexa.pm is new version: true
[2019-9-8 21:20:50] sshautoconf: completed successfully
[2019-9-8 21:20:50] *** SSH: proxy configuration set up done
[2019-9-8 21:20:50] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2019-9-8 21:20:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 21:20:50] Starting SSH with -R 1234:127.0.0.1:41505 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[2019-9-8 21:20:50] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[2019-9-8 21:20:50] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-9-8 21:20:50] *** SSH: proxy connection established
[2019-9-8 21:20:50] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
jump to the top
get alexa proxyKey
(bitte die Key nicht hier kopieren...)
2019.09.08 22:26:16 4 : Connection accepted from WEB_192.168.0.149_56505
2019.09.08 22:26:16 4 : WEB_192.168.0.149_56505 POST /fhem?cmd=get%20alexa%20proxyKey&XHR=1&fw_id=1234; BUFLEN:0
2019.09.08 22:26:16 5 : Cmd: >get alexa proxyKey<
2019.09.08 22:26:16 4 : WEB: /fhem?cmd=get%20alexa%20proxyKey&XHR=1&fw_id=1234 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip / Cache-Control: no-cache, no-store, must-revalidate
2019.09.08 22:26:16 4 : Connection closed for WEB_192.168.0.149_56505: EOF
Zitat von: wikiIm Logfile (über den link Logfile in der Detail-Ansicht über set, oder über den Namen bei <it>currentlogfile</it> in den Internals) findest Du idealerweise selber Hinweise, wo es hakt, oder kannst im Forum nachfragen.
root@raspi3:~# node -v
v8.16.1
root@raspi3:~# npm -v
6.4.1
stopped; alexa-fhem not installed. install with 'sudo npm install -g alexa-fhem'.
sudo npm install -g alexa-fhem
root@raspi3:~# sudo npm install -g alexa-fhem
/opt/nodejs/bin/alexa-fhem -> /opt/nodejs/lib/node_modules/alexa-fhem/bin/alexa
+ alexa-fhem@0.5.28
updated 1 package in 13.829s
Zitat von: masterpete23 am 09 September 2019, 17:36:07
Hallo,
ich hoffe, ich bin hier richtig.
Ich habe npm auf meinem raspberry pi mit wheezy über https://github.com/audstanley/NodeJs-Raspberry-Pi/ auf eine aktuelle Version gebracht :Code Auswählenroot@raspi3:~# node -v
v8.16.1
root@raspi3:~# npm -v
6.4.1
Nach einem set alexa alexa steht nun folgendes im state:Code Auswählenstopped; alexa-fhem not installed. install with 'sudo npm install -g alexa-fhem'.
Ich hatte früher eine alte Version aber davon hoffe ich alles gelöscht zu haben.
beimCode Auswählensudo npm install -g alexa-fhem
kommt immerCode Auswählenroot@raspi3:~# sudo npm install -g alexa-fhem
/opt/nodejs/bin/alexa-fhem -> /opt/nodejs/lib/node_modules/alexa-fhem/bin/alexa
+ alexa-fhem@0.5.28
updated 1 package in 13.829s
Zeit variiert.
Aber ich bekomm es nicht lauffähig.
Hat jemand eine Idee? Braucht ihr mehr Infos oder reicht es so?
EDIT:
root@raspi3:~# cd /opt/node-v8.16.1-linux-armv7l/lib/node_modules/alexa-fhem/bin/
root@raspi3:/opt/node-v8.16.1-linux-armv7l/lib/node_modules/alexa-fhem/bin# ./alexa
[2019-9-9 17:56:11] os.homedir()=/root
[2019-9-9 17:56:11] using config from /root/.alexa/config.json
[2019-9-9 17:56:11] Couldn't find a config file at '/root/.alexa/config.json'. Look at config-sample.json for an example.
Zitat von: grappa24 am 15 September 2019, 12:39:10
Gibt es denn in FHEM eine Möglichkeit, sich alle Devices, für die man Alexa-Namen angelegt hat, auflisten zu lassen?
Zitat von: amenomade am 15 September 2019, 12:43:58
Grr... 2.
Zitat von: masterpete23 am 13 September 2019, 14:58:22
habe ja viel vermutet.
Letztendlich half ein link von meiner alexa bin aus dem node lib dir nach /usr/bin/alexa-fhem
Zitat von: bechermaus am 16 September 2019, 18:20:11
Hallo masterpete23,
kannst Du mir genau erklären, wie Du Dein Problem behoben hast?
Danke - Maik
ZitatalexaFHEM-paramssteht dazu nicht. ;)
Additional alexa-fhem cmdline params.
hombridgeMapping On:cmdOn=closed,cmdOff=open
Zitat von: grappa24 am 27 September 2019, 09:08:27
Niemand einen (Lese)Tipp für mich zum Einsatz von homebridgeMapping und genericDeviceType? Insb. im Zusammenhang mit einem MultiRoomSpeaker (Steuerung des PlayStatus, Auswahl des Channels, ...)? Oder bin ich hier falsch im thread?
Über genericDeviceType media - den find ich allerdings bei mir nicht, wo kommt der denn her?
Einfach über die Kommandozeile eingeben "attr Heos genericDeviceType media" Nur weil es in dem Drop-Down nicht ist, heißt es nicht, dass es nicht da ist ;-)InputController:reading=playStatus,cmd=channel,values=1;2;usw
PlaybackController:playback,values=play;stop;
Zitat von: grappa24 am 27 September 2019, 09:08:27
Niemand einen (Lese)Tipp für mich zum Einsatz von homebridgeMapping und genericDeviceType? Insb. im Zusammenhang mit einem MultiRoomSpeaker (Steuerung des PlayStatus, Auswahl des Channels, ...)? Oder bin ich hier falsch im thread?
PlaybackController:playback,values=play;stop ChannelController:reading=Channel,cmd=1;2;3
[9/27/2019, 4:23:05 PM] [FHEM] HEOSPlayer376628887 is media
[9/27/2019, 4:23:05 PM] [FHEM] HEOSPlayer376628887 has
[9/27/2019, 4:23:05 PM] [FHEM] Custom Volume [volume;cached]
[9/27/2019, 4:23:05 PM] [FHEM] Mute [mute]
[9/27/2019, 4:23:05 PM] [FHEM] PlaybackController [playback]
[9/27/2019, 4:23:05 PM] [FHEM] ChannelController [Channel]
2019-09-27 16:23:05 caching: HEOSPlayer376628887-volume: 14
[9/27/2019, 4:23:05 PM] [FHEM] caching: Custom Volume: 14 (as number; from '14')
2019-09-27 16:23:05 caching: HEOSPlayer376628887-mute: off
hombridgeMapping InputController:reading=<reading>,cmd=<cmd>,values=HDMI+1;HDMI+2;XBOX
defmod dreamscreen_dummy dummy
attr dreamscreen_dummy alexaName Umschalter
attr dreamscreen_dummy alexaRoom Wohnzimmer
attr dreamscreen_dummy alias DreamScreen 4K
attr dreamscreen_dummy genericDeviceType media
attr dreamscreen_dummy group TV
attr dreamscreen_dummy homebridgeMapping InputController:reading=state,cmd=WebCmd,values=HDMI+1;;HDMI+2;;XBOX
attr dreamscreen_dummy room Wohnzimmer
attr dreamscreen_dummy setList HDMI 1 HDMI 2 HDMI 3 XBOX
attr dreamscreen_dummy webCmd HDMI 1:HDMI 2:XBOX
Internals:
FUUID 5d8f1ac4-f33f-206e-8f3a-8c547ad6c4781d3e
NAME dreamscreen_dummy
NR 680
STATE Musik
TYPE dummy
READINGS:
2019-09-29 10:43:10 state Musik
Attributes:
alexaName Umschalter
alexaRoom Wohnzimmer
alias DreamScreen 4K
genericDeviceType media
group TV
readingList HDMI 1 HDMI 2 HDMI 3 PHONO VIDEO 1
room Wohnzimmer
setList HDMI 1 HDMI 2 HDMI 3 PHONO VIDEO 1
Internals:
DEF ([dreamscreen_dummy] eq "Video 1") (({system('/opt/fhem/DreamScreenComander.py -m 1&');;}))
DOELSEIF ([dreamscreen_dummy] eq "PHONO") ({system('/opt/fhem/DreamScreenComander.py -m 2&');;})
DOELSEIF ([dreamscreen_dummy] eq "HDMI 1") ({system('/opt/fhem/DreamScreenComander.py -s 0&');;})
DOELSEIF ([dreamscreen_dummy] eq "HDMI 2") ({system('/opt/fhem/DreamScreenComander.py -s 1&');;})
DOELSEIF ([dreamscreen_dummy] eq "HDMI 3") ({system('/opt/fhem/DreamScreenComander.py -s 2&');;})
FUUID 5d8f1c00-f33f-206e-db8c-6cc062b1435738c0
MODEL FHEM
NAME dreamscreen_doif
NR 681
NTFY_ORDER 50-dreamscreen_doif
STATE initialized
TYPE DOIF
VERSION 19786 2019-07-05 21:47:08
READINGS:
2019-09-29 18:47:58 cmd 0
2019-09-29 18:47:58 mode enabled
2019-09-29 18:47:58 state initialized
Regex:
accu:
attr:
cmdState:
wait:
waitdel:
condition:
0 ::InternalDoIf($hash,'dreamscreen_dummy','STATE') eq "Video 1"
1 ::InternalDoIf($hash,'dreamscreen_dummy','STATE') eq "PHONO"
2 ::InternalDoIf($hash,'dreamscreen_dummy','STATE') eq "HDMI 1"
3 ::InternalDoIf($hash,'dreamscreen_dummy','STATE') eq "HDMI 2"
4 ::InternalDoIf($hash,'dreamscreen_dummy','STATE') eq "HDMI 3"
devices:
0 dreamscreen_dummy
1 dreamscreen_dummy
2 dreamscreen_dummy
3 dreamscreen_dummy
4 dreamscreen_dummy
all dreamscreen_dummy
do:
0:
0 ({system('/opt/fhem/DreamScreenComander.py -m 1&');;})
1:
0 {system('/opt/fhem/DreamScreenComander.py -m 2&');;}
2:
0 {system('/opt/fhem/DreamScreenComander.py -s 0&');;}
3:
0 {system('/opt/fhem/DreamScreenComander.py -s 1&');;}
4:
0 {system('/opt/fhem/DreamScreenComander.py -s 2&');;}
5:
helper:
globalinit 1
last_timer 0
sleeptimer -1
internals:
0 dreamscreen_dummy:STATE
1 dreamscreen_dummy:STATE
2 dreamscreen_dummy:STATE
3 dreamscreen_dummy:STATE
4 dreamscreen_dummy:STATE
all dreamscreen_dummy:STATE
itimer:
uiState:
uiTable:
Attributes:
group Sonstiges
room DOIFs
ZitatWeiß jetzt nicht was man da macht, evtl. HDMI.1wie im wiki geschrieben: mit +
Zitat von: justme1968 am 29 September 2019, 19:22:59
wie im wiki geschrieben: mit +
wenn du sagen möchtest 'schalte den kanal ...': ChannelController
wenn du sagen möchtest 'schalte den eingang ...': InputController
welche eingänge möglich sind: siehe den link im wiki: https://developer.amazon.com/de/docs/device-apis/alexa-property-schemas.html#input (https://developer.amazon.com/de/docs/device-apis/alexa-property-schemas.html#input)
Zitat von: justme1968 am 29 September 2019, 19:33:49
hab ich doch oben schon beantwortet :)
es sollte gehen.
Internals:
FUUID 5d8f1ac4-f33f-206e-8f3a-8c547ad6c4781d3e
NAME dreamscreen_dummy
NR 680
STATE AUX 2
TYPE dummy
READINGS:
2019-09-29 22:02:56 state AUX 2
Attributes:
alexaName Umschalter
alexaRoom Wohnzimmer
alias DreamScreen 4K
comment Alexa schalte Umschalter auf (INPUT)
genericDeviceType media
group TV
homebridgeMapping InputController:reading=state,values=HDMI+1;HDMI+2;HDMI+3;AUX+1;AUX+2
room Wohnzimmer
webCmd HDMI 1:HDMI 2:HDMI 3:AUX 1:AUX 2
Internals:
DEF ([dreamscreen_dummy] eq "AUX 2") (({system('/opt/fhem/DreamScreenComander.py -m 1&');;}))
DOELSEIF ([dreamscreen_dummy] eq "AUX 1") ({system('/opt/fhem/DreamScreenComander.py -m 2&');;})
DOELSEIF ([dreamscreen_dummy] eq "HDMI 1") ({system('/opt/fhem/DreamScreenComander.py -s 0&');;})
DOELSEIF ([dreamscreen_dummy] eq "HDMI 2") ({system('/opt/fhem/DreamScreenComander.py -s 1&');;})
DOELSEIF ([dreamscreen_dummy] eq "HDMI 3") ({system('/opt/fhem/DreamScreenComander.py -s 2&');;})
FUUID 5d8f1c00-f33f-206e-db8c-6cc062b1435738c0
MODEL FHEM
NAME dreamscreen_doif
NR 681
NTFY_ORDER 50-dreamscreen_doif
STATE cmd_1
TYPE DOIF
VERSION 19786 2019-07-05 21:47:08
READINGS:
2019-09-29 22:02:56 Device dreamscreen_dummy
2019-09-29 22:02:56 cmd 1
2019-09-29 22:02:56 cmd_event dreamscreen_dummy
2019-09-29 22:02:56 cmd_nr 1
2019-09-29 22:02:56 e_dreamscreen_dummy_STATE AUX 2
2019-09-29 22:02:56 error {system('/opt/fhem/DreamScreenComander.py -m 1&');;}: -1
2019-09-29 22:02:12 mode enabled
2019-09-29 22:02:56 state cmd_1
Regex:
accu:
attr:
cmdState:
wait:
waitdel:
condition:
0 ::InternalDoIf($hash,'dreamscreen_dummy','STATE') eq "AUX 2"
1 ::InternalDoIf($hash,'dreamscreen_dummy','STATE') eq "AUX 1"
2 ::InternalDoIf($hash,'dreamscreen_dummy','STATE') eq "HDMI 1"
3 ::InternalDoIf($hash,'dreamscreen_dummy','STATE') eq "HDMI 2"
4 ::InternalDoIf($hash,'dreamscreen_dummy','STATE') eq "HDMI 3"
devices:
0 dreamscreen_dummy
1 dreamscreen_dummy
2 dreamscreen_dummy
3 dreamscreen_dummy
4 dreamscreen_dummy
all dreamscreen_dummy
do:
0:
0 ({system('/opt/fhem/DreamScreenComander.py -m 1&');;})
1:
0 {system('/opt/fhem/DreamScreenComander.py -m 2&');;}
2:
0 {system('/opt/fhem/DreamScreenComander.py -s 0&');;}
3:
0 {system('/opt/fhem/DreamScreenComander.py -s 1&');;}
4:
0 {system('/opt/fhem/DreamScreenComander.py -s 2&');;}
5:
helper:
event AUX 2
globalinit 1
last_timer 0
sleeptimer -1
timerdev dreamscreen_dummy
timerevent AUX 2
triggerDev dreamscreen_dummy
DOIF_eventas:
cmd_nr: 1
cmd: 1
cmd_event: dreamscreen_dummy
error: {system('/opt/fhem/DreamScreenComander.py -m 1&');;}: -1
state: cmd_1
timerevents:
AUX 2
timereventsState:
state: AUX 2
triggerEvents:
AUX 2
triggerEventsState:
state: AUX 2
internals:
0 dreamscreen_dummy:STATE
1 dreamscreen_dummy:STATE
2 dreamscreen_dummy:STATE
3 dreamscreen_dummy:STATE
4 dreamscreen_dummy:STATE
all dreamscreen_dummy:STATE
itimer:
readings:
trigger:
uiState:
uiTable:
Attributes:
group Sonstiges
room DOIFs
#IntentName=<sample utterance>\
gutenMorgen=guten morgen\
guteNacht=gute nacht\
{alexastatusBatterie()}=ob batterien leer sind|welche batterien leer sind|sind batterien leer
define KUE.Deckenlampe KNX 0/0/1:dpt1.001
setuuid KUE.Deckenlampe 5c711dab-f33f-438e-97fe-e9484a5b8d9b93ba
attr KUE.Deckenlampe IODev KNX
attr KUE.Deckenlampe alexaName Kuechenlicht
attr KUE.Deckenlampe alias Deckenlampe
attr KUE.Deckenlampe devStateIcon (on)|([Ee]in):general_an:Aus (off)|([Aa]us):general_aus:Ein
attr KUE.Deckenlampe eventMap /g1 on:Ein/g1 off:Aus/
attr KUE.Deckenlampe genericDeviceType light
attr KUE.Deckenlampe icon light_wall_1
attr KUE.Deckenlampe room alexa,Homekit,Kueche
#attr KUE.Deckenlampe verbose 5
attr KUE.Deckenlampe webCmd on:off
Internals:
DEF 0/0/1:dpt1.001
DEVNAME KUE.Deckenlampe
FIRSTGADNAME g1
FUUID 5c711dab-f33f-438e-97fe-e9484a5b8d9b93ba
GETSTRING g1:noArg
IODev KNX
NAME KUE.Deckenlampe
NR 31
NTFY_ORDER 50-KUE.Deckenlampe
SETSTRING g1:off,on
STATE on
TYPE KNX
GADDETAILS:
g1:
CODE 00001
GROUP 0/0/1
MODEL dpt1.001
NO 1
OPTION
RDNAMEGET getG1
RDNAMEPUT putG1
RDNAMESET setG1
SETLIST :off,on
GADTABLE:
00001 g1
READINGS:
2019-10-06 23:19:06 last-sender fhem
2019-10-06 23:17:34 readonly-set off
2019-10-06 23:19:06 setG1 on
2019-10-06 23:19:06 state on
Attributes:
IODev KNX
alexaName Kuechenlicht
alias Deckenlampe
devStateIcon (on)|([Ee]in):general_an:Aus (off)|([Aa]us):general_aus:Ein
eventMap /g1 on:Ein/g1 off:Aus/
genericDeviceType light
icon light_wall_1
room alexa,Homekit,Kueche
verbose 5
webCmd on:off
define Fluter dummy
attr Fluter alexaName Deckenfluter
attr Fluter alexaRoom Kueche
attr Fluter alias Deckenfluter
attr Fluter event-on-change-reading .*
attr Fluter icon light_wall_1
attr Fluter room alexa,Kueche
attr Fluter setList off on
attr Fluter devStateIcon (on)|([Ee]in):general_an:Aus (off)|([Aa]us):general_aus:Ein
Internals:
FUUID 5d9a59ed-f33f-438e-0a11-40d9f84ad999c3e7
NAME Fluter
NR 68
STATE on
TYPE dummy
READINGS:
2019-10-06 23:19:06 state on
Attributes:
alexaName Deckenfluter
alexaRoom Kueche
alias Deckenfluter
devStateIcon (on)|([Ee]in):general_an:Aus (off)|([Aa]us):general_aus:Ein
event-on-change-reading .*
icon light_wall_1
room alexa,Kueche
setList off on
define fluterchange notify Fluter.*:(off|on) { fhem "set KUE.Deckenlampe $EVENT" }
Internals:
FUUID 5c4ad8b6-f33f-206e-2fa4-6c1a7acc3f499cab
NAME wakeUp_dummy
NR 204
STATE 09:00
TYPE dummy
READINGS:
2019-10-08 00:30:00 state 09:00
Attributes:
alexaName Weckzeit
alexaRoom Schlafzimmer
alias Weckzeit
genericDeviceType wecker
group Weckereinstellung
homebridgeMapping Weckzeit=state,cmd=+
icon time_timer@yellow
room 1.5 Schlafzimmer
setList state:time
webCmd state
Zitat von: justme1968 am 08 Oktober 2019, 10:50:44
aktuell nur mit einem custom skill.
eventuell mit etwas tricksen über das andere alexa modul.
Checking your key:
Status ActivationKey: Good Key
Checking connection status:
Status SSH: NOT online - no SSH session established
Status Reverse-Portmapping: -
Status nodejs-Connectivity: -
Status nodejs-Interaction: -
Zitat von: gandi1791 am 17 Oktober 2019, 17:23:24
Servus beinand,
meine Geräte reagieren nicht mehr.
Ein reaktivieren des Skills schlägt fehl.
Nach Eingabe des Proxy Keys hier (https://va.fhem.de/register/check.html) erhalte ich folgende Meldung:Code AuswählenChecking your key:
Status ActivationKey: Good Key
Checking connection status:
Status SSH: NOT online - no SSH session established
Status Reverse-Portmapping: -
Status nodejs-Connectivity: -
Status nodejs-Interaction: -
Ist der SSH Status auf den Vereinsserver oder auf meinen Host bezogen?
Zitat von: gandi1791 am 17 Oktober 2019, 20:37:06
::) ::) ::)
Mein Fehler!
Lösung folgt sobald wieder alles läuft.
{ getUniqueId() }
define alexa alexa
[11/11/2019, 3:59:03 PM] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11/11/2019, 3:59:03 PM] os.homedir()=/root
[11/11/2019, 3:59:03 PM] this is alexa-fhem 0.5.31
[11/11/2019, 3:59:03 PM] connecting to FHEM ...
[11/11/2019, 3:59:03 PM] [FHEM] trying longpoll to listen for fhem events
[11/11/2019, 3:59:03 PM] [FHEM] starting longpoll: http://127.0.0.1:8084/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1573484343541
[11/11/2019, 3:59:03 PM] [FHEM] got csrfToken: csrf_198685993275989
[11/11/2019, 3:59:03 PM] [FHEM] Checking devices and attributes...
[11/11/2019, 3:59:03 PM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=csrf_198685993275989&XHR=1
[11/11/2019, 3:59:03 PM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_198685993275989&XHR=1
[11/11/2019, 3:59:03 PM] [FHEM] waiting for events ...
[11/11/2019, 3:59:03 PM] [FHEM] Fetching FHEM devices...
[11/11/2019, 3:59:03 PM] [FHEM] fetching: http://127.0.0.1:8084/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=csrf_198685993275989&XHR=1
[11/11/2019, 3:59:03 PM] [FHEM] alexa device is alexa
[11/11/2019, 3:59:03 PM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.31%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=
csrf_198685993275989&XHR=1
[11/11/2019, 3:59:03 PM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_198685993275989&XHR=1
[11/11/2019, 3:59:03 PM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_198685993275989&XHR=1
[11/11/2019, 3:59:03 PM] Server listening on: http://127.0.0.1:39051 for proxy connections
[11/11/2019, 3:59:03 PM] *** SSH: checking proxy configuration
[11/11/2019, 3:59:03 PM] sshautoconf: home=/root, spath=/root/.alexa, cpath=./alexa-fhem.cfg, sshpath=/root/.ssh
[11/11/2019, 3:59:03 PM] Passed config: {"connections":[{"port":"8084","filter":"alexaName=..*","server":"127.0.0.1","webname":"fhem","name":"FHEM","uid":0}],"sshproxy":{"description":"FHEM Connector","ssh":"/usr/bin/ssh","options":["-i","/root/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.
0.1","port":39051}}
[11/11/2019, 3:59:03 PM] sshautoconf: SSH key seems to exist
[11/11/2019, 3:59:03 PM] sshautoconf: Our SSH key is known at the reverse proxy, good!
[11/11/2019, 3:59:03 PM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_198685993275989&XHR=1
[11/11/2019, 3:59:03 PM] [FHEM] There was a problem connecting to FHEM
*** FHEM: connection failed
[11/11/2019, 3:59:03 PM] Got SIGTERM, shutting down alexa-fhem...
[11/11/2019, 3:59:03 PM] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[11/11/2019, 3:59:03 PM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7
D&fwcsrf=csrf_198685993275989&XHR=1
jsonlist2 alexa
{
"Arg":"alexa",
"Results": [
{
"Name":"alexa",
"PossibleSets":"add createDefaultConfig:noArg reload:noArg skillId start:noArg stop:noArg restart:noArg",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 alexaMapping:textField-long alexaTypes:textField-long fhemIntents:textField-long articles prepositions echoRooms:textField-long alexaConfirmationLevel:2,1,0 alexaStatusLevel:2,1 skillId:textField alexaFHEM-cmd alexaFHEM-config alexaFHEM-home alexaFHEM-log alexaFHEM-params alexaFHEM-auth alexaFHEM-host alexaFHEM-sshUser nrarchive disable:1 disabledForIntervals event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"FD": "115",
"FUUID": "5dc54b28-f33f-ed65-edb9-8b5a2d39fc75bbca",
"FVERSION": "39_alexa.pm:0.190980/2019-04-02",
"LAST_START": "2019-11-11 16:19:38",
"LAST_STOP": "2019-11-11 15:59:03",
"NAME": "alexa",
"NOTIFYDEV": "global,global:npmjs.*alexa-fhem.*",
"NR": "456",
"NTFY_ORDER": "50-alexa",
"PARTIAL": "",
"PID": "18344",
"STARTS": "21",
"STATE": "running /usr/local/bin/alexa-fhem",
"TYPE": "alexa",
"active": "0",
"alexa-fhem version": "0.5.31",
"currentlogfile": "./log/alexa-2019-11-11.log",
"logfile": "./log/alexa-%Y-%m-%d.log"
},
"Readings": {
"alexaFHEM": { "Value":"running /usr/local/bin/alexa-fhem", "Time":"2019-11-11 16:19:38" },
"alexaFHEM.ProxyConnection": { "Value":"running; SSH connected", "Time":"2019-11-11 18:07:52" },
"alexaFHEM.bearerToken": { "Value":"crypt:71725c5d73777421572600000f542407", "Time":"2019-11-08 12:02:00" },
"alexaFHEM.skillRegKey": { "Value":"crypt:0d045d567577745b4c25790f0f56207651010274560c0106754f727c0a0d2370707452200e0c09512356", "Time":"2019-11-08 12:02:00" }
},
"Attributes": {
"alexaFHEM-config": "./alexa-fhem.cfg",
"alexaFHEM-log": "./log/alexa-%Y-%m-%d.log",
"alexaMapping": "#Characteristic=<name>=<value>,...\nOn=verb=schalte,valueOn=an;ein,valueOff=aus,valueToggle=um\n\nBrightness=verb=stelle,property=helligkeit,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent\n\nHue=verb=stelle,valuePrefix=auf,values=rot:0;grün:128;blau:200\nHue=verb=färbe,values=rot:0;grün:120;blau:220\n\nSaturation=verb=stelle,property=sättigung,valuePrefix=auf,values=AMAZON.NUMBER\nSaturation=verb=sättige,values=AMAZON.NUMBER\n\nTargetPosition=verb=mach,articles=den;die,values=auf:100;zu:0\nTargetPosition=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent\n\nTargetTemperature=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=grad\n\nVolume:verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent\n\n#Weckzeit=verb=stelle,valuePrefix=auf;für,values=AMAZON.TIME,valueSuffix=uhr",
"alexaTypes": "#Type=<alias>[,<alias2>[,...]]\nlight=licht,lampen\nblind=rolladen,rolläden,jalousie,jalousien,rollo,rollos",
"devStateIcon": "stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop",
"echoRooms": "#<deviceId>=<room>\n",
"fhemIntents": "#IntentName=<sample utterance>\ngutenMorgen=guten morgen\nguteNacht=gute nacht",
"room": "Wohnzimmer",
"stateFormat": "alexaFHEM"
}
} ],
"totalResultsReturned":1
}[hr]
{
"Arg":"alexa",
"Results": [
{
"Name":"alexa",
"PossibleSets":"add createDefaultConfig:noArg reload:noArg skillId start:noArg stop:noArg restart:noArg",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 alexaMapping:textField-long alexaTypes:textField-long fhemIntents:textField-long articles prepositions echoRooms:textField-long alexaConfirmationLevel:2,1,0 alexaStatusLevel:2,1 skillId:textField alexaFHEM-cmd alexaFHEM-config alexaFHEM-home alexaFHEM-log alexaFHEM-params alexaFHEM-auth alexaFHEM-host alexaFHEM-sshUser nrarchive disable:1 disabledForIntervals event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"FUUID": "5dc54b28-f33f-ed65-edb9-8b5a2d39fc75bbca",
"FVERSION": "39_alexa.pm:0.190980/2019-04-02",
"LAST_START": "2019-11-11 18:48:27",
"LAST_STOP": "2019-11-11 18:48:27",
"NAME": "alexa",
"NOTIFYDEV": "global,global:npmjs.*alexa-fhem.*",
"NR": "456",
"NTFY_ORDER": "50-alexa",
"PARTIAL": "",
"STARTS": "22",
"STATE": "stopped; failed to connect to fhem",
"TYPE": "alexa",
"active": "0",
"alexa-fhem version": "0.5.31",
"logfile": "./log/alexa-%Y-%m-%d.log"
},
"Readings": {
"alexaFHEM": { "Value":"stopped; failed to connect to fhem", "Time":"2019-11-11 18:48:27" },
"alexaFHEM.ProxyConnection": { "Value":"stopped; Terminated with Killed by signal 15. , ssh will restart at 18:48:56", "Time":"2019-11-11 18:48:22" },
"alexaFHEM.bearerToken": { "Value":"crypt:71725c5d73777421572600000f542407", "Time":"2019-11-08 12:02:00" },
"alexaFHEM.skillRegKey": { "Value":"crypt:0d045d567577745b4c25790f0f56207651010274560c0106754f727c0a0d2370707452200e0c09512356", "Time":"2019-11-08 12:02:00" }
},
"Attributes": {
"alexaFHEM-config": "./alexa-fhem.cfg",
"alexaFHEM-log": "./log/alexa-%Y-%m-%d.log",
"alexaMapping": "#Characteristic=<name>=<value>,...\nOn=verb=schalte,valueOn=an;ein,valueOff=aus,valueToggle=um\n\nBrightness=verb=stelle,property=helligkeit,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent\n\nHue=verb=stelle,valuePrefix=auf,values=rot:0;grün:128;blau:200\nHue=verb=färbe,values=rot:0;grün:120;blau:220\n\nSaturation=verb=stelle,property=sättigung,valuePrefix=auf,values=AMAZON.NUMBER\nSaturation=verb=sättige,values=AMAZON.NUMBER\n\nTargetPosition=verb=mach,articles=den;die,values=auf:100;zu:0\nTargetPosition=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent\n\nTargetTemperature=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=grad\n\nVolume:verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent\n\n#Weckzeit=verb=stelle,valuePrefix=auf;für,values=AMAZON.TIME,valueSuffix=uhr",
"alexaTypes": "#Type=<alias>[,<alias2>[,...]]\nlight=licht,lampen\nblind=rolladen,rolläden,jalousie,jalousien,rollo,rollos",
"devStateIcon": "stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop",
"echoRooms": "#<deviceId>=<room>\n",
"fhemIntents": "#IntentName=<sample utterance>\ngutenMorgen=guten morgen\nguteNacht=gute nacht",
"room": "Wohnzimmer",
"stateFormat": "alexaFHEM"
}
} ],
"totalResultsReturned":1
}
Internals:
DEF 24
FUUID 5c66caa7-f33f-ed65-e003-714bbff053428343
IODev myJeeLink
LASTInputDev myJeeLink
LaCrosse_lastRcv 2019-11-11 18:53:28
MSGCNT 1588
NAME LaCrosse_24
NR 84
STATE T: 20.8 H: 49
TYPE LaCrosse
addr 24
battery_new 0
corr1 0
corr2 0
myJeeLink_MSGCNT 1588
myJeeLink_RAWMSG OK 9 36 1 4 184 49
myJeeLink_TIME 2019-11-11 18:53:28
previousH 49
previousT 20.8
sensorType 0=T(H)
READINGS:
2019-11-11 18:53:28 battery ok
2019-11-11 18:53:28 humidity 49
2018-11-17 22:07:20 rain 1055.5
2019-11-11 16:06:13 state T: 20.8 H: 49
2019-11-11 18:53:28 temperature 20.8
2018-11-17 22:07:20 windDirectionDegree 270
2018-11-17 22:07:20 windDirectionText W
2018-11-17 22:07:20 windGust 48.2
2018-11-17 22:07:20 windSpeed 21.7
Attributes:
IODev myJeeLink
alexaName KuechenTemperatur
alias Temperatur Küche
fp_Fichtenstatus 40,164,4,LaCrosse_24,
fp_Fichtenweg 67,282,4,Kueche,
genericDeviceType thermometer
icon sani_heating
room Küche,LaCrosse
{
"Arg":"LaCrosse_24",
"Results": [
{
"Name":"LaCrosse_24",
"PossibleSets":"replaceBatteryForSec",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev ignore:1,0 doAverage:1,0 doDewpoint:1,0 filterThreshold resolution event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"DEF": "24",
"FUUID": "5c66caa7-f33f-ed65-e003-714bbff053428343",
"LASTInputDev": "myJeeLink",
"LaCrosse_lastRcv": "2019-11-11 18:55:19",
"MSGCNT": "1593",
"NAME": "LaCrosse_24",
"NR": "84",
"STATE": "T: 20.8 H: 49",
"TYPE": "LaCrosse",
"addr": "24",
"battery_new": "0",
"corr1": "0",
"corr2": "0",
"myJeeLink_MSGCNT": "1593",
"myJeeLink_RAWMSG": "OK 9 36 1 4 184 49",
"myJeeLink_TIME": "2019-11-11 18:55:19",
"previousH": "49",
"previousT": "20.8",
"sensorType": "0=T(H)"
},
"Readings": {
"battery": { "Value":"ok", "Time":"2019-11-11 18:55:19" },
"humidity": { "Value":"49", "Time":"2019-11-11 18:55:19" },
"rain": { "Value":"1055.5", "Time":"2018-11-17 22:07:20" },
"state": { "Value":"T: 20.8 H: 49", "Time":"2019-11-11 16:06:13" },
"temperature": { "Value":"20.8", "Time":"2019-11-11 18:55:19" },
"windDirectionDegree": { "Value":"270", "Time":"2018-11-17 22:07:20" },
"windDirectionText": { "Value":"W", "Time":"2018-11-17 22:07:20" },
"windGust": { "Value":"48.2", "Time":"2018-11-17 22:07:20" },
"windSpeed": { "Value":"21.7", "Time":"2018-11-17 22:07:20" }
},
"Attributes": {
"IODev": "myJeeLink",
"alexaName": "KuechenTemperatur",
"alias": "Temperatur Küche",
"fp_Fichtenstatus": "40,164,4,LaCrosse_24,",
"fp_Fichtenweg": "67,282,4,Kueche,",
"genericDeviceType": "thermometer",
"icon": "sani_heating",
"room": "Küche,LaCrosse"
}
} ],
"totalResultsReturned":1
}
{
"Arg":"alexaName=KuechenTemperatur",
"Results": [
{
"Name":"LaCrosse_24",
"PossibleSets":"replaceBatteryForSec",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev ignore:1,0 doAverage:1,0 doDewpoint:1,0 filterThreshold resolution event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"DEF": "24",
"FUUID": "5c66caa7-f33f-ed65-e003-714bbff053428343",
"LASTInputDev": "myJeeLink",
"LaCrosse_lastRcv": "2019-11-11 19:00:28",
"MSGCNT": "1609",
"NAME": "LaCrosse_24",
"NR": "84",
"STATE": "T: 20.8 H: 49",
"TYPE": "LaCrosse",
"addr": "24",
"battery_new": "0",
"corr1": "0",
"corr2": "0",
"myJeeLink_MSGCNT": "1609",
"myJeeLink_RAWMSG": "OK 9 36 1 4 184 49",
"myJeeLink_TIME": "2019-11-11 19:00:28",
"previousH": "49",
"previousT": "20.8",
"sensorType": "0=T(H)"
},
"Readings": {
"battery": { "Value":"ok", "Time":"2019-11-11 19:00:28" },
"humidity": { "Value":"49", "Time":"2019-11-11 19:00:28" },
"rain": { "Value":"1055.5", "Time":"2018-11-17 22:07:20" },
"state": { "Value":"T: 20.8 H: 49", "Time":"2019-11-11 16:06:13" },
"temperature": { "Value":"20.8", "Time":"2019-11-11 19:00:28" },
"windDirectionDegree": { "Value":"270", "Time":"2018-11-17 22:07:20" },
"windDirectionText": { "Value":"W", "Time":"2018-11-17 22:07:20" },
"windGust": { "Value":"48.2", "Time":"2018-11-17 22:07:20" },
"windSpeed": { "Value":"21.7", "Time":"2018-11-17 22:07:20" }
},
"Attributes": {
"IODev": "myJeeLink",
"alexaName": "KuechenTemperatur",
"alias": "Temperatur Küche",
"fp_Fichtenstatus": "40,164,4,LaCrosse_24,",
"fp_Fichtenweg": "67,282,4,Kueche,",
"genericDeviceType": "thermometer",
"icon": "sani_heating",
"room": "Küche,LaCrosse"
}
} ],
"totalResultsReturned":1
}
{
"Arg":"alexaName=..*",
"Results": [
{
"Name":"LaCrosse_24",
"PossibleSets":"replaceBatteryForSec",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev ignore:1,0 doAverage:1,0 doDewpoint:1,0 filterThreshold resolution event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"DEF": "24",
"FUUID": "5c66caa7-f33f-ed65-e003-714bbff053428343",
"LASTInputDev": "myJeeLink",
"LaCrosse_lastRcv": "2019-11-11 19:18:31",
"MSGCNT": "1674",
"NAME": "LaCrosse_24",
"NR": "84",
"STATE": "T: 20.8 H: 49",
"TYPE": "LaCrosse",
"addr": "24",
"battery_new": "0",
"corr1": "0",
"corr2": "0",
"myJeeLink_MSGCNT": "1674",
"myJeeLink_RAWMSG": "OK 9 36 1 4 184 49",
"myJeeLink_TIME": "2019-11-11 19:18:31",
"previousH": "49",
"previousT": "20.8",
"sensorType": "0=T(H)"
},
"Readings": {
"battery": { "Value":"ok", "Time":"2019-11-11 19:18:31" },
"humidity": { "Value":"49", "Time":"2019-11-11 19:18:31" },
"rain": { "Value":"1055.5", "Time":"2018-11-17 22:07:20" },
"state": { "Value":"T: 20.8 H: 49", "Time":"2019-11-11 19:15:10" },
"temperature": { "Value":"20.8", "Time":"2019-11-11 19:18:31" },
"windDirectionDegree": { "Value":"270", "Time":"2018-11-17 22:07:20" },
"windDirectionText": { "Value":"W", "Time":"2018-11-17 22:07:20" },
"windGust": { "Value":"48.2", "Time":"2018-11-17 22:07:20" },
"windSpeed": { "Value":"21.7", "Time":"2018-11-17 22:07:20" }
},
"Attributes": {
"IODev": "myJeeLink",
"alexaName": "KuechenTemperatur",
"alias": "Temperatur Küche",
"fp_Fichtenstatus": "40,164,4,LaCrosse_24,",
"fp_Fichtenweg": "67,282,4,Kueche,",
"genericDeviceType": "thermometer",
"icon": "sani_heating",
"room": "Küche,LaCrosse"
}
},
{
"Name":"Wandthermostat.Joerg",
"PossibleSets":"wakeUp factoryReset groupid associate:Fenster.Kueche.L,Wohnungstuer,Heizungsthermostat.Flur,Fenster.Laura.l,Heizungsthermostat.Kueche,Balkontuer.Wohnzimmer,Fenster.Laura.r,Heizungsthermostat.Bad,Fenster.Joerg.l,Fenster.Kueche.r,Heizungsthermostat.Wohnzimmer,Fenster.Joerg.r,Heizungsthermostat.Joerg,Heizungsthermostat.Laura,fakeShutterContact deassociate:Fenster.Kueche.L,Wohnungstuer,Heizungsthermostat.Flur,Fenster.Laura.l,Heizungsthermostat.Kueche,Balkontuer.Wohnzimmer,Fenster.Laura.r,Heizungsthermostat.Bad,Fenster.Joerg.l,Fenster.Kueche.r,Heizungsthermostat.Wohnzimmer,Fenster.Joerg.r,Heizungsthermostat.Joerg,Heizungsthermostat.Laura,fakeShutterContact displayActualTemperature:0,1 desiredTemperature:eco,comfort,boost,auto,off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on ecoTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on comfortTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on maximumTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on minimumTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on measurementOffset:-3.5,-3.0,-2.5,-2.0,-1.5,-1.0,-0.5,0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5 windowOpenTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on boostDuration:0,30,20,60,25,5,15,10 boostValveposition ",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev do_not_notify:1,0 ignore:0,1 dummy:0,1 showtime:1,0 keepAuto:0,1 scanTemp:0,1 event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"DEF": "WallMountedThermostat 01d2a3",
"FUUID": "5c66caa8-f33f-ed65-7907-720c3f3ff189a646",
"LASTInputDev": "cm",
"MSGCNT": "177",
"NAME": "Wandthermostat.Joerg",
"NR": "143",
"RSSI": "-67.5",
"STATE": "15.0 °C",
"TYPE": "MAX",
"addr": "01d2a3",
"backend": "cm",
"cm_MSGCNT": "177",
"cm_TIME": "2019-11-11 19:18:08",
"rferror": "0",
"type": "WallMountedThermostat"
},
"Readings": {
"RSSI": { "Value":"-67.5", "Time":"2019-11-11 19:18:08" },
"TimeInformationHour": { "Value":"2", "Time":"2017-10-10 21:07:07" },
"battery": { "Value":"ok", "Time":"2019-11-11 18:56:44" },
"batteryState": { "Value":"ok", "Time":"2019-11-11 18:56:44" },
"boostDuration": { "Value":"25", "Time":"2017-10-10 20:24:07" },
"boostValveposition": { "Value":"80", "Time":"2017-10-10 20:24:07" },
"comfortTemperature": { "Value":"21.0", "Time":"2017-10-10 20:24:07" },
"desiredTemperature": { "Value":"15.0", "Time":"2019-11-11 19:18:08" },
"displayActualTemperature": { "Value":"1", "Time":"2019-11-11 18:56:44" },
"ecoTemperature": { "Value":"17.0", "Time":"2017-10-10 20:24:07" },
"firmware": { "Value":"1.0", "Time":"2019-10-02 16:54:26" },
"groupid": { "Value":"0", "Time":"2019-10-02 16:54:26" },
"maximumTemperature": { "Value":"on", "Time":"2017-10-10 20:24:07" },
"measurementOffset": { "Value":"0.0", "Time":"2017-10-10 20:24:07" },
"minimumTemperature": { "Value":"off", "Time":"2017-10-10 20:24:07" },
"mode": { "Value":"manual", "Time":"2019-11-11 18:56:44" },
"msgcnt": { "Value":"45", "Time":"2019-11-11 18:56:43" },
"panel": { "Value":"unlocked", "Time":"2019-11-11 18:56:44" },
"rferror": { "Value":"0", "Time":"2019-11-11 18:56:44" },
"state": { "Value":"15.0 °C", "Time":"2019-11-11 19:18:08" },
"temperature": { "Value":"19.7", "Time":"2019-11-11 19:18:08" },
"testresult": { "Value":"255", "Time":"2019-10-02 16:54:26" },
"weekprofile-0-Sat-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 19.0 °C / 21.0 °C / 21.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-0-Sat-time": { "Value":"00:00-08:00 / 08:00-10:00 / 10:00-19:00 / 19:00-21:30 / 21:30-22:30 / 22:30-23:15 / 23:15-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-1-Sun-temp": { "Value":"20.0 °C / 18.0 °C / 20.0 °C / 17.0 °C / 18.0 °C / 18.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-1-Sun-time": { "Value":"00:00-01:00 / 01:00-08:00 / 08:00-10:30 / 10:30-19:00 / 19:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-2-Mon-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 19.0 °C / 20.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-2-Mon-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-3-Tue-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 19.0 °C / 20.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-3-Tue-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-4-Wed-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 17.0 °C / 18.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-4-Wed-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-23:15 / 23:15-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-5-Thu-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 17.0 °C / 20.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-5-Thu-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-6-Fri-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 19.0 °C / 19.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-6-Fri-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"windowOpenTemperature": { "Value":"12.0", "Time":"2017-10-10 20:24:07" }
},
"Attributes": {
"IODev": "cm",
"alexaName": "SchlafzimmerThermostat",
"alias": "Joerg-Thermostat",
"fp_Fichtenstatus": "269,582,0,Wandthermostat.Joerg,",
"fp_Fichtenweg": "358,905,5,Wandthermostat.Joerg,",
"genericDeviceType": "thermostate",
"icon": "max_wandthermostat",
"room": "Joerg,MAX,Thermostate"
}
},
{
"Name":"Wandthermostat.Kueche",
"PossibleSets":"wakeUp factoryReset groupid associate:Fenster.Kueche.L,Wohnungstuer,Heizungsthermostat.Flur,Fenster.Laura.l,Heizungsthermostat.Kueche,Balkontuer.Wohnzimmer,Fenster.Laura.r,Heizungsthermostat.Bad,Fenster.Joerg.l,Fenster.Kueche.r,Heizungsthermostat.Wohnzimmer,Fenster.Joerg.r,Heizungsthermostat.Joerg,Heizungsthermostat.Laura,fakeShutterContact deassociate:Fenster.Kueche.L,Wohnungstuer,Heizungsthermostat.Flur,Fenster.Laura.l,Heizungsthermostat.Kueche,Balkontuer.Wohnzimmer,Fenster.Laura.r,Heizungsthermostat.Bad,Fenster.Joerg.l,Fenster.Kueche.r,Heizungsthermostat.Wohnzimmer,Fenster.Joerg.r,Heizungsthermostat.Joerg,Heizungsthermostat.Laura,fakeShutterContact displayActualTemperature:0,1 desiredTemperature:eco,comfort,boost,auto,off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on ecoTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on comfortTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on maximumTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on minimumTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on measurementOffset:-3.5,-3.0,-2.5,-2.0,-1.5,-1.0,-0.5,0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5 windowOpenTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on boostDuration:0,30,20,60,25,5,15,10 boostValveposition ",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev do_not_notify:1,0 ignore:0,1 dummy:0,1 showtime:1,0 keepAuto:0,1 scanTemp:0,1 event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"DEF": "WallMountedThermostat 01cd01",
"FUUID": "5c66caa8-f33f-ed65-9f3c-e9132b1d40c9cfd1",
"LASTInputDev": "cm",
"MSGCNT": "173",
"NAME": "Wandthermostat.Kueche",
"NR": "147",
"RSSI": "-64.5",
"STATE": "10.0 °C",
"TYPE": "MAX",
"addr": "01cd01",
"backend": "cm",
"cm_MSGCNT": "173",
"cm_TIME": "2019-11-11 19:16:41",
"rferror": "0",
"type": "WallMountedThermostat"
},
"Readings": {
"RSSI": { "Value":"-64.5", "Time":"2019-11-11 19:16:41" },
"TimeInformationHour": { "Value":"3", "Time":"2017-10-10 21:07:07" },
"battery": { "Value":"ok", "Time":"2019-11-11 19:04:12" },
"batteryState": { "Value":"ok", "Time":"2019-11-11 19:04:12" },
"boostDuration": { "Value":"25", "Time":"2017-10-10 20:32:48" },
"boostValveposition": { "Value":"80", "Time":"2017-10-10 20:32:48" },
"comfortTemperature": { "Value":"21.0", "Time":"2017-10-10 20:32:48" },
"desiredTemperature": { "Value":"10.0", "Time":"2019-11-11 19:16:41" },
"displayActualTemperature": { "Value":"1", "Time":"2019-11-11 19:04:12" },
"ecoTemperature": { "Value":"17.0", "Time":"2017-10-10 20:32:48" },
"firmware": { "Value":"1.0", "Time":"2019-04-21 12:09:53" },
"groupid": { "Value":"0", "Time":"2019-04-21 12:09:53" },
"maximumTemperature": { "Value":"on", "Time":"2017-10-10 20:32:48" },
"measurementOffset": { "Value":"0.0", "Time":"2017-10-10 20:32:48" },
"minimumTemperature": { "Value":"off", "Time":"2017-10-10 20:32:48" },
"mode": { "Value":"manual", "Time":"2019-11-11 19:04:12" },
"msgcnt": { "Value":"250", "Time":"2019-11-11 19:04:11" },
"panel": { "Value":"unlocked", "Time":"2019-11-11 19:04:12" },
"rferror": { "Value":"0", "Time":"2019-11-11 19:04:12" },
"state": { "Value":"10.0 °C", "Time":"2019-11-11 19:16:41" },
"temperature": { "Value":"21.9", "Time":"2019-11-11 19:16:41" },
"testresult": { "Value":"255", "Time":"2019-04-21 12:09:53" },
"weekprofile-0-Sat-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-0-Sat-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-1-Sun-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-1-Sun-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-2-Mon-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-2-Mon-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-3-Tue-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-3-Tue-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-4-Wed-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-4-Wed-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-5-Thu-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-5-Thu-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-6-Fri-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-6-Fri-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"windowOpenTemperature": { "Value":"12.0", "Time":"2017-10-10 20:32:48" }
},
"Attributes": {
"IODev": "cm",
"alexaName": "KuechenThermostat",
"alias": "Kueche-Thermostat",
"fp_Fichtenstatus": "138,188,0,Wandthermostat.Kueche,",
"fp_Fichtenweg": "341,461,5,Wandthermostat.Kueche,",
"genericDeviceType": "thermostate",
"icon": "max_wandthermostat",
"room": "Küche,MAX,Thermostate"
}
} ],
"totalResultsReturned":3
}
{
"Arg":"alexaName=..*",
"Results": [
{
"Name":"LaCrosse_24",
"PossibleSets":"replaceBatteryForSec",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev ignore:1,0 doAverage:1,0 doDewpoint:1,0 filterThreshold resolution event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"DEF": "24",
"FUUID": "5c66caa7-f33f-ed65-e003-714bbff053428343",
"LASTInputDev": "myJeeLink",
"LaCrosse_lastRcv": "2019-11-11 19:45:12",
"MSGCNT": "1776",
"NAME": "LaCrosse_24",
"NR": "84",
"STATE": "T: 20.8 H: 50",
"TYPE": "LaCrosse",
"addr": "24",
"battery_new": "0",
"corr1": "0",
"corr2": "0",
"myJeeLink_MSGCNT": "1776",
"myJeeLink_RAWMSG": "OK 9 36 1 4 184 50",
"myJeeLink_TIME": "2019-11-11 19:45:12",
"previousH": "50",
"previousT": "20.8",
"sensorType": "0=T(H)"
},
"Readings": {
"battery": { "Value":"ok", "Time":"2019-11-11 19:45:12" },
"humidity": { "Value":"50", "Time":"2019-11-11 19:45:12" },
"rain": { "Value":"1055.5", "Time":"2018-11-17 22:07:20" },
"state": { "Value":"T: 20.8 H: 50", "Time":"2019-11-11 19:45:12" },
"temperature": { "Value":"20.8", "Time":"2019-11-11 19:45:12" },
"windDirectionDegree": { "Value":"270", "Time":"2018-11-17 22:07:20" },
"windDirectionText": { "Value":"W", "Time":"2018-11-17 22:07:20" },
"windGust": { "Value":"48.2", "Time":"2018-11-17 22:07:20" },
"windSpeed": { "Value":"21.7", "Time":"2018-11-17 22:07:20" }
},
"Attributes": {
"IODev": "myJeeLink",
"alexaName": "KuechenTemperatur",
"alias": "Temperatur Küche",
"fp_Fichtenstatus": "40,164,4,LaCrosse_24,",
"fp_Fichtenweg": "67,282,4,Kueche,",
"genericDeviceType": "thermometer",
"icon": "sani_heating",
"room": "Küche,LaCrosse"
}
},
{
"Name":"Wandthermostat.Joerg",
"PossibleSets":"wakeUp factoryReset groupid associate:Fenster.Kueche.L,Wohnungstuer,Heizungsthermostat.Flur,Fenster.Laura.l,Heizungsthermostat.Kueche,Balkontuer.Wohnzimmer,Fenster.Laura.r,Heizungsthermostat.Bad,Fenster.Joerg.l,Fenster.Kueche.r,Heizungsthermostat.Wohnzimmer,Fenster.Joerg.r,Heizungsthermostat.Joerg,Heizungsthermostat.Laura,fakeShutterContact deassociate:Fenster.Kueche.L,Wohnungstuer,Heizungsthermostat.Flur,Fenster.Laura.l,Heizungsthermostat.Kueche,Balkontuer.Wohnzimmer,Fenster.Laura.r,Heizungsthermostat.Bad,Fenster.Joerg.l,Fenster.Kueche.r,Heizungsthermostat.Wohnzimmer,Fenster.Joerg.r,Heizungsthermostat.Joerg,Heizungsthermostat.Laura,fakeShutterContact displayActualTemperature:0,1 desiredTemperature:eco,comfort,boost,auto,off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on ecoTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on comfortTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on maximumTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on minimumTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on measurementOffset:-3.5,-3.0,-2.5,-2.0,-1.5,-1.0,-0.5,0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5 windowOpenTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on boostDuration:0,30,20,60,25,5,15,10 boostValveposition ",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev do_not_notify:1,0 ignore:0,1 dummy:0,1 showtime:1,0 keepAuto:0,1 scanTemp:0,1 event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"DEF": "WallMountedThermostat 01d2a3",
"FUUID": "5c66caa8-f33f-ed65-7907-720c3f3ff189a646",
"LASTInputDev": "cm",
"MSGCNT": "186",
"NAME": "Wandthermostat.Joerg",
"NR": "143",
"RSSI": "-68",
"STATE": "15.0 °C",
"TYPE": "MAX",
"addr": "01d2a3",
"backend": "cm",
"cm_MSGCNT": "186",
"cm_TIME": "2019-11-11 19:43:36",
"rferror": "0",
"type": "WallMountedThermostat"
},
"Readings": {
"RSSI": { "Value":"-68", "Time":"2019-11-11 19:43:36" },
"TimeInformationHour": { "Value":"2", "Time":"2017-10-10 21:07:07" },
"battery": { "Value":"ok", "Time":"2019-11-11 18:56:44" },
"batteryState": { "Value":"ok", "Time":"2019-11-11 18:56:44" },
"boostDuration": { "Value":"25", "Time":"2017-10-10 20:24:07" },
"boostValveposition": { "Value":"80", "Time":"2017-10-10 20:24:07" },
"comfortTemperature": { "Value":"21.0", "Time":"2017-10-10 20:24:07" },
"desiredTemperature": { "Value":"15.0", "Time":"2019-11-11 19:43:36" },
"displayActualTemperature": { "Value":"1", "Time":"2019-11-11 18:56:44" },
"ecoTemperature": { "Value":"17.0", "Time":"2017-10-10 20:24:07" },
"firmware": { "Value":"1.0", "Time":"2019-10-02 16:54:26" },
"groupid": { "Value":"0", "Time":"2019-10-02 16:54:26" },
"maximumTemperature": { "Value":"on", "Time":"2017-10-10 20:24:07" },
"measurementOffset": { "Value":"0.0", "Time":"2017-10-10 20:24:07" },
"minimumTemperature": { "Value":"off", "Time":"2017-10-10 20:24:07" },
"mode": { "Value":"manual", "Time":"2019-11-11 18:56:44" },
"msgcnt": { "Value":"45", "Time":"2019-11-11 18:56:43" },
"panel": { "Value":"unlocked", "Time":"2019-11-11 18:56:44" },
"rferror": { "Value":"0", "Time":"2019-11-11 18:56:44" },
"state": { "Value":"15.0 °C", "Time":"2019-11-11 19:43:36" },
"temperature": { "Value":"19.5", "Time":"2019-11-11 19:43:36" },
"testresult": { "Value":"255", "Time":"2019-10-02 16:54:26" },
"weekprofile-0-Sat-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 19.0 °C / 21.0 °C / 21.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-0-Sat-time": { "Value":"00:00-08:00 / 08:00-10:00 / 10:00-19:00 / 19:00-21:30 / 21:30-22:30 / 22:30-23:15 / 23:15-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-1-Sun-temp": { "Value":"20.0 °C / 18.0 °C / 20.0 °C / 17.0 °C / 18.0 °C / 18.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-1-Sun-time": { "Value":"00:00-01:00 / 01:00-08:00 / 08:00-10:30 / 10:30-19:00 / 19:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-2-Mon-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 19.0 °C / 20.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-2-Mon-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-3-Tue-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 19.0 °C / 20.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-3-Tue-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-4-Wed-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 17.0 °C / 18.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-4-Wed-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-23:15 / 23:15-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-5-Thu-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 17.0 °C / 20.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-5-Thu-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-6-Fri-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 19.0 °C / 19.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-6-Fri-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"windowOpenTemperature": { "Value":"12.0", "Time":"2017-10-10 20:24:07" }
},
"Attributes": {
"IODev": "cm",
"alexaName": "SchlafzimmerThermostat",
"alias": "Joerg-Thermostat",
"fp_Fichtenstatus": "269,582,0,Wandthermostat.Joerg,",
"fp_Fichtenweg": "358,905,5,Wandthermostat.Joerg,",
"genericDeviceType": "thermostat",
"icon": "max_wandthermostat",
"room": "Joerg,MAX,Thermostate"
}
},
{
"Name":"Wandthermostat.Kueche",
"PossibleSets":"wakeUp factoryReset groupid associate:Fenster.Kueche.L,Wohnungstuer,Heizungsthermostat.Flur,Fenster.Laura.l,Heizungsthermostat.Kueche,Balkontuer.Wohnzimmer,Fenster.Laura.r,Heizungsthermostat.Bad,Fenster.Joerg.l,Fenster.Kueche.r,Heizungsthermostat.Wohnzimmer,Fenster.Joerg.r,Heizungsthermostat.Joerg,Heizungsthermostat.Laura,fakeShutterContact deassociate:Fenster.Kueche.L,Wohnungstuer,Heizungsthermostat.Flur,Fenster.Laura.l,Heizungsthermostat.Kueche,Balkontuer.Wohnzimmer,Fenster.Laura.r,Heizungsthermostat.Bad,Fenster.Joerg.l,Fenster.Kueche.r,Heizungsthermostat.Wohnzimmer,Fenster.Joerg.r,Heizungsthermostat.Joerg,Heizungsthermostat.Laura,fakeShutterContact displayActualTemperature:0,1 desiredTemperature:eco,comfort,boost,auto,off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on ecoTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on comfortTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on maximumTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on minimumTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on measurementOffset:-3.5,-3.0,-2.5,-2.0,-1.5,-1.0,-0.5,0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5 windowOpenTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on boostDuration:0,30,20,60,25,5,15,10 boostValveposition ",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev do_not_notify:1,0 ignore:0,1 dummy:0,1 showtime:1,0 keepAuto:0,1 scanTemp:0,1 event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"DEF": "WallMountedThermostat 01cd01",
"FUUID": "5c66caa8-f33f-ed65-9f3c-e9132b1d40c9cfd1",
"LASTInputDev": "cm",
"MSGCNT": "182",
"NAME": "Wandthermostat.Kueche",
"NR": "147",
"RSSI": "-63.5",
"STATE": "10.0 °C",
"TYPE": "MAX",
"addr": "01cd01",
"backend": "cm",
"cm_MSGCNT": "182",
"cm_TIME": "2019-11-11 19:42:35",
"rferror": "0",
"type": "WallMountedThermostat"
},
"Readings": {
"RSSI": { "Value":"-63.5", "Time":"2019-11-11 19:42:35" },
"TimeInformationHour": { "Value":"3", "Time":"2017-10-10 21:07:07" },
"battery": { "Value":"ok", "Time":"2019-11-11 19:04:12" },
"batteryState": { "Value":"ok", "Time":"2019-11-11 19:04:12" },
"boostDuration": { "Value":"25", "Time":"2017-10-10 20:32:48" },
"boostValveposition": { "Value":"80", "Time":"2017-10-10 20:32:48" },
"comfortTemperature": { "Value":"21.0", "Time":"2017-10-10 20:32:48" },
"desiredTemperature": { "Value":"10.0", "Time":"2019-11-11 19:42:35" },
"displayActualTemperature": { "Value":"1", "Time":"2019-11-11 19:04:12" },
"ecoTemperature": { "Value":"17.0", "Time":"2017-10-10 20:32:48" },
"firmware": { "Value":"1.0", "Time":"2019-04-21 12:09:53" },
"groupid": { "Value":"0", "Time":"2019-04-21 12:09:53" },
"maximumTemperature": { "Value":"on", "Time":"2017-10-10 20:32:48" },
"measurementOffset": { "Value":"0.0", "Time":"2017-10-10 20:32:48" },
"minimumTemperature": { "Value":"off", "Time":"2017-10-10 20:32:48" },
"mode": { "Value":"manual", "Time":"2019-11-11 19:04:12" },
"msgcnt": { "Value":"250", "Time":"2019-11-11 19:04:11" },
"panel": { "Value":"unlocked", "Time":"2019-11-11 19:04:12" },
"rferror": { "Value":"0", "Time":"2019-11-11 19:04:12" },
"state": { "Value":"10.0 °C", "Time":"2019-11-11 19:42:35" },
"temperature": { "Value":"21.9", "Time":"2019-11-11 19:42:35" },
"testresult": { "Value":"255", "Time":"2019-04-21 12:09:53" },
"weekprofile-0-Sat-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-0-Sat-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-1-Sun-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-1-Sun-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-2-Mon-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-2-Mon-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-3-Tue-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-3-Tue-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-4-Wed-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-4-Wed-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-5-Thu-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-5-Thu-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-6-Fri-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-6-Fri-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"windowOpenTemperature": { "Value":"12.0", "Time":"2017-10-10 20:32:48" }
},
"Attributes": {
"IODev": "cm",
"alexaName": "KuechenThermostat",
"alias": "Kueche-Thermostat",
"fp_Fichtenstatus": "138,188,0,Wandthermostat.Kueche,",
"fp_Fichtenweg": "341,461,5,Wandthermostat.Kueche,",
"genericDeviceType": "thermostat",
"icon": "max_wandthermostat",
"room": "Küche,MAX,Thermostate"
}
} ],
"totalResultsReturned":3
}
2019.11.12 09:02:28 3: FHEMWEB IWEB CSRF error: ne csrf_353481580921152 for client IWEB_127.0.0.1_43772 / command jsonlist2 alexaName=..*. For details see the csrfToken FHEMWEB attribute.
{
"Arg":"alexaName=..*",
"Results": [
{
"Name":"LaCrosse_24",
"PossibleSets":"replaceBatteryForSec",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev ignore:1,0 doAverage:1,0 doDewpoint:1,0 filterThreshold resolution event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"DEF": "24",
"FUUID": "5c66caa7-f33f-ed65-e003-714bbff053428343",
"LASTInputDev": "myJeeLink",
"LaCrosse_lastRcv": "2019-11-12 10:19:35",
"MSGCNT": "8",
"NAME": "LaCrosse_24",
"NR": "86",
"STATE": "T: 20.4 H: 48",
"TYPE": "LaCrosse",
"addr": "24",
"battery_new": "0",
"corr1": "0",
"corr2": "0",
"myJeeLink_MSGCNT": "8",
"myJeeLink_RAWMSG": "OK 9 36 1 4 180 48",
"myJeeLink_TIME": "2019-11-12 10:19:35",
"previousH": "48",
"previousT": "20.4",
"sensorType": "0=T(H)"
},
"Readings": {
"battery": { "Value":"ok", "Time":"2019-11-12 10:19:35" },
"humidity": { "Value":"48", "Time":"2019-11-12 10:19:35" },
"rain": { "Value":"1055.5", "Time":"2018-11-17 22:07:20" },
"state": { "Value":"T: 20.4 H: 48", "Time":"2019-11-12 09:55:19" },
"temperature": { "Value":"20.4", "Time":"2019-11-12 10:19:35" },
"windDirectionDegree": { "Value":"270", "Time":"2018-11-17 22:07:20" },
"windDirectionText": { "Value":"W", "Time":"2018-11-17 22:07:20" },
"windGust": { "Value":"48.2", "Time":"2018-11-17 22:07:20" },
"windSpeed": { "Value":"21.7", "Time":"2018-11-17 22:07:20" }
},
"Attributes": {
"IODev": "myJeeLink",
"alexaName": "KuechenThermometer",
"alias": "Temperatur Küche",
"fp_Fichtenstatus": "40,164,4,LaCrosse_24,",
"fp_Fichtenweg": "67,282,4,Kueche,",
"genericDeviceType": "thermometer",
"icon": "sani_heating",
"room": "Küche,LaCrosse"
}
},
{
"Name":"Wandthermostat.Joerg",
"PossibleSets":"wakeUp factoryReset groupid associate:Fenster.Kueche.r,Fenster.Kueche.L,Heizungsthermostat.Wohnzimmer,Fenster.Laura.r,Balkontuer.Wohnzimmer,Fenster.Laura.l,Wohnungstuer,Heizungsthermostat.Laura,Fenster.Joerg.l,Heizungsthermostat.Joerg,Fenster.Joerg.r,Heizungsthermostat.Kueche,Heizungsthermostat.Flur,Heizungsthermostat.Bad,fakeShutterContact deassociate:Fenster.Kueche.r,Fenster.Kueche.L,Heizungsthermostat.Wohnzimmer,Fenster.Laura.r,Balkontuer.Wohnzimmer,Fenster.Laura.l,Wohnungstuer,Heizungsthermostat.Laura,Fenster.Joerg.l,Heizungsthermostat.Joerg,Fenster.Joerg.r,Heizungsthermostat.Kueche,Heizungsthermostat.Flur,Heizungsthermostat.Bad,fakeShutterContact displayActualTemperature:0,1 desiredTemperature:eco,comfort,boost,auto,off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on ecoTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on comfortTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on maximumTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on minimumTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on measurementOffset:-3.5,-3.0,-2.5,-2.0,-1.5,-1.0,-0.5,0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5 windowOpenTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on boostDuration:5,15,0,60,20,25,10,30 boostValveposition ",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev do_not_notify:1,0 ignore:0,1 dummy:0,1 showtime:1,0 keepAuto:0,1 scanTemp:0,1 event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"DEF": "WallMountedThermostat 01d2a3",
"FUUID": "5c66caa8-f33f-ed65-7907-720c3f3ff189a646",
"NAME": "Wandthermostat.Joerg",
"NR": "145",
"STATE": "9.0 °C",
"TYPE": "MAX",
"addr": "01d2a3",
"type": "WallMountedThermostat"
},
"Readings": {
"RSSI": { "Value":"-68", "Time":"2019-11-12 10:17:36" },
"TimeInformationHour": { "Value":"2", "Time":"2017-10-10 21:07:07" },
"battery": { "Value":"ok", "Time":"2019-11-12 09:56:48" },
"batteryState": { "Value":"ok", "Time":"2019-11-12 09:56:48" },
"boostDuration": { "Value":"25", "Time":"2017-10-10 20:24:07" },
"boostValveposition": { "Value":"80", "Time":"2017-10-10 20:24:07" },
"comfortTemperature": { "Value":"21.0", "Time":"2017-10-10 20:24:07" },
"desiredTemperature": { "Value":"9.0", "Time":"2019-11-12 10:17:36" },
"displayActualTemperature": { "Value":"1", "Time":"2019-11-12 09:56:48" },
"ecoTemperature": { "Value":"17.0", "Time":"2017-10-10 20:24:07" },
"firmware": { "Value":"1.0", "Time":"2019-10-02 16:54:26" },
"groupid": { "Value":"0", "Time":"2019-10-02 16:54:26" },
"maximumTemperature": { "Value":"on", "Time":"2017-10-10 20:24:07" },
"measurementOffset": { "Value":"0.0", "Time":"2017-10-10 20:24:07" },
"minimumTemperature": { "Value":"off", "Time":"2017-10-10 20:24:07" },
"mode": { "Value":"manual", "Time":"2019-11-12 09:56:48" },
"msgcnt": { "Value":"94", "Time":"2019-11-12 09:56:41" },
"panel": { "Value":"unlocked", "Time":"2019-11-12 09:56:48" },
"rferror": { "Value":"0", "Time":"2019-11-12 09:56:48" },
"state": { "Value":"9.0 °C", "Time":"2019-11-12 10:17:36" },
"temperature": { "Value":"19.1", "Time":"2019-11-12 10:17:36" },
"testresult": { "Value":"255", "Time":"2019-10-02 16:54:26" },
"weekprofile-0-Sat-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 19.0 °C / 21.0 °C / 21.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-0-Sat-time": { "Value":"00:00-08:00 / 08:00-10:00 / 10:00-19:00 / 19:00-21:30 / 21:30-22:30 / 22:30-23:15 / 23:15-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-1-Sun-temp": { "Value":"20.0 °C / 18.0 °C / 20.0 °C / 17.0 °C / 18.0 °C / 18.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-1-Sun-time": { "Value":"00:00-01:00 / 01:00-08:00 / 08:00-10:30 / 10:30-19:00 / 19:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-2-Mon-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 19.0 °C / 20.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-2-Mon-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-3-Tue-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 19.0 °C / 20.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-3-Tue-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-4-Wed-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 17.0 °C / 18.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-4-Wed-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-23:15 / 23:15-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-5-Thu-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 17.0 °C / 20.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-5-Thu-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"weekprofile-6-Fri-temp": { "Value":"18.0 °C / 20.0 °C / 17.0 °C / 17.0 °C / 19.0 °C / 19.0 °C / 20.0 °C / 18.0 °C", "Time":"2019-11-09 10:03:53" },
"weekprofile-6-Fri-time": { "Value":"00:00-05:45 / 05:45-06:00 / 06:00-16:15 / 16:15-20:00 / 20:00-21:30 / 21:30-22:30 / 22:30-23:55 / 23:55-24:00", "Time":"2019-11-09 10:03:53" },
"windowOpenTemperature": { "Value":"12.0", "Time":"2017-10-10 20:24:07" }
},
"Attributes": {
"IODev": "cm",
"alexaName": "SchlafzimmerThermostat",
"alias": "Joerg-Thermostat",
"fp_Fichtenstatus": "269,582,0,Wandthermostat.Joerg,",
"fp_Fichtenweg": "358,905,5,Wandthermostat.Joerg,",
"genericDeviceType": "thermostat",
"icon": "max_wandthermostat",
"keepAuto": "0",
"room": "Joerg,MAX,Thermostate"
}
},
{
"Name":"Wandthermostat.Kueche",
"PossibleSets":"wakeUp factoryReset groupid associate:Fenster.Kueche.r,Fenster.Kueche.L,Heizungsthermostat.Wohnzimmer,Fenster.Laura.r,Balkontuer.Wohnzimmer,Fenster.Laura.l,Wohnungstuer,Heizungsthermostat.Laura,Fenster.Joerg.l,Heizungsthermostat.Joerg,Fenster.Joerg.r,Heizungsthermostat.Kueche,Heizungsthermostat.Flur,Heizungsthermostat.Bad,fakeShutterContact deassociate:Fenster.Kueche.r,Fenster.Kueche.L,Heizungsthermostat.Wohnzimmer,Fenster.Laura.r,Balkontuer.Wohnzimmer,Fenster.Laura.l,Wohnungstuer,Heizungsthermostat.Laura,Fenster.Joerg.l,Heizungsthermostat.Joerg,Fenster.Joerg.r,Heizungsthermostat.Kueche,Heizungsthermostat.Flur,Heizungsthermostat.Bad,fakeShutterContact displayActualTemperature:0,1 desiredTemperature:eco,comfort,boost,auto,off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on ecoTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on comfortTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on maximumTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on minimumTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on measurementOffset:-3.5,-3.0,-2.5,-2.0,-1.5,-1.0,-0.5,0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5 windowOpenTemperature:off,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0,on boostDuration:5,15,0,60,20,25,10,30 boostValveposition ",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev do_not_notify:1,0 ignore:0,1 dummy:0,1 showtime:1,0 keepAuto:0,1 scanTemp:0,1 event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading alexaName alexaRoom cmdIcon devStateIcfp_Vekehr devStateIcon devStateIcon:textField-long devStateStyle fp_Abfahrtmonitor fp_Fichtenstatus fp_Fichtenweg fp_G_Wlan_Teilnehmer fp_Pflanzen_monitor fp_Pflanzenmonitor fp_Termine fp_Verkehr fp_Wetter fp_Wettermonitor genericDeviceType homebridgeMapping:textField-long icon on sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
"Internals": {
"DEF": "WallMountedThermostat 01cd01",
"FUUID": "5c66caa8-f33f-ed65-9f3c-e9132b1d40c9cfd1",
"LASTInputDev": "cm",
"MSGCNT": "1",
"NAME": "Wandthermostat.Kueche",
"NR": "149",
"RSSI": "-62.5",
"STATE": "9.0 °C",
"TYPE": "MAX",
"addr": "01cd01",
"cm_MSGCNT": "1",
"cm_TIME": "2019-11-12 10:18:58",
"type": "WallMountedThermostat"
},
"Readings": {
"RSSI": { "Value":"-62.5", "Time":"2019-11-12 10:18:58" },
"TimeInformationHour": { "Value":"3", "Time":"2017-10-10 21:07:07" },
"battery": { "Value":"ok", "Time":"2019-11-12 10:08:04" },
"batteryState": { "Value":"ok", "Time":"2019-11-12 10:08:04" },
"boostDuration": { "Value":"25", "Time":"2017-10-10 20:32:48" },
"boostValveposition": { "Value":"80", "Time":"2017-10-10 20:32:48" },
"comfortTemperature": { "Value":"21.0", "Time":"2017-10-10 20:32:48" },
"desiredTemperature": { "Value":"9.0", "Time":"2019-11-12 10:18:58" },
"displayActualTemperature": { "Value":"1", "Time":"2019-11-12 10:08:04" },
"ecoTemperature": { "Value":"17.0", "Time":"2017-10-10 20:32:48" },
"firmware": { "Value":"1.0", "Time":"2019-04-21 12:09:53" },
"groupid": { "Value":"0", "Time":"2019-04-21 12:09:53" },
"maximumTemperature": { "Value":"on", "Time":"2017-10-10 20:32:48" },
"measurementOffset": { "Value":"0.0", "Time":"2017-10-10 20:32:48" },
"minimumTemperature": { "Value":"off", "Time":"2017-10-10 20:32:48" },
"mode": { "Value":"manual", "Time":"2019-11-12 10:08:04" },
"msgcnt": { "Value":"48", "Time":"2019-11-12 10:18:36" },
"panel": { "Value":"unlocked", "Time":"2019-11-12 10:08:04" },
"rferror": { "Value":"0", "Time":"2019-11-12 10:08:04" },
"state": { "Value":"9.0 °C", "Time":"2019-11-12 10:18:58" },
"temperature": { "Value":"21.2", "Time":"2019-11-12 10:18:58" },
"testresult": { "Value":"255", "Time":"2019-04-21 12:09:53" },
"weekprofile-0-Sat-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-0-Sat-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-1-Sun-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-1-Sun-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-2-Mon-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-2-Mon-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-3-Tue-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-3-Tue-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-4-Wed-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-4-Wed-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-5-Thu-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-5-Thu-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"weekprofile-6-Fri-temp": { "Value":"9.0 °C", "Time":"2019-10-10 21:43:37" },
"weekprofile-6-Fri-time": { "Value":"00:00-00:00", "Time":"2019-10-10 21:43:37" },
"windowOpenTemperature": { "Value":"12.0", "Time":"2017-10-10 20:32:48" }
},
"Attributes": {
"IODev": "cm",
"alexaName": "KuechenThermostat",
"alias": "Kueche-Thermostat",
"fp_Fichtenstatus": "138,188,0,Wandthermostat.Kueche,",
"fp_Fichtenweg": "341,461,5,Wandthermostat.Kueche,",
"genericDeviceType": "thermostat",
"icon": "max_wandthermostat",
"keepAuto": "0",
"room": "Küche,MAX,Thermostate"
}
} ],
"totalResultsReturned":3
}
Zitat von: justme1968 am 27 Januar 2019, 13:40:31
@juemuc: du verwendest nicht die aktuelle version. bitte mach mal ein update und schau ob die meldung weg ist.
du kannst den öffentlichen skill nur ein mal aktivieren. und du solltest nur eine alexa-fhem installation für den öffentlichen skill laufen lassen.
diese eine installation sollte dann zwei connection eintrage in der config haben und bedient dann beide fhem installationen.
Zitat von: justme1968 am 12 November 2019, 12:54:31
die einfachste lösung ohne viel handarbeit: du lässt eine zweite fhem instanz für ihn laufen die nur das zweite alexa device enthält (am besten als eigener user). in der config dieses alexa-fhem trägst du aber trotzdem dein fhem mit einem passenden filter auf seine devices ein.
d.h. skill und alexa-fhem sind dann für ihn alleine, das eigene alexa-fhem steuert aber die devices die du ihm über den filter frei gibst.
{
"connections" : [
{
"name" : "FHEM",
"uid" : 999,
"port" : "8083",
"server" : "127.0.0.1",
"webname" : "fhem",
"filter" : "alexaName=..*"
}
],
"sshproxy" : {
"ssh" : "/usr/bin/ssh",
"description" : "FHEM Connector"
}
}
[11/13/2019, 8:00:55 AM] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11/13/2019, 8:00:55 AM] os.homedir()=/root
[11/13/2019, 8:00:55 AM] this is alexa-fhem 0.5.31
[11/13/2019, 8:00:55 AM] connecting to FHEM ...
[11/13/2019, 8:00:55 AM] [FHEM] trying longpoll to listen for fhem events
[11/13/2019, 8:00:55 AM] [FHEM] starting longpoll: http://127.0.0.1:8084/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1573628455981
[11/13/2019, 8:00:55 AM] [FHEM] got csrfToken:
[11/13/2019, 8:00:55 AM] [FHEM] Checking devices and attributes...
[11/13/2019, 8:00:55 AM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[11/13/2019, 8:00:55 AM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[11/13/2019, 8:00:55 AM] [FHEM] waiting for events ...
[11/13/2019, 8:00:55 AM] [FHEM] Fetching FHEM devices...
[11/13/2019, 8:00:55 AM] [FHEM] fetching: http://127.0.0.1:8084/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[11/13/2019, 8:00:56 AM] [FHEM] alexa device is alexa
[11/13/2019, 8:00:56 AM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22
%7D%20%3D%20%220.5.31%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[11/13/2019, 8:00:56 AM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7
B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[11/13/2019, 8:00:56 AM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E
%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[11/13/2019, 8:00:56 AM] Server listening on: http://127.0.0.1:37695 for proxy connections
[11/13/2019, 8:00:56 AM] *** SSH: checking proxy configuration
[11/13/2019, 8:00:56 AM] sshautoconf: home=/root, spath=/root/.alexa, cpath=./alexa-fhem.cfg, sshpath=/root/.ssh
[11/13/2019, 8:00:56 AM] Passed config: {"connections":[{"port":"8084","filter":"alexaName=..*","server":"127.0.0.1","webname":"fhem","name":"FHEM","uid":0}],"sshproxy":{"description":"FHEM Connector"
,"ssh":"/usr/bin/ssh","options":["-i","/root/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":37695}}
[11/13/2019, 8:00:56 AM] sshautoconf: SSH key seems to exist
[11/13/2019, 8:00:56 AM] sshautoconf: Our SSH key is known at the reverse proxy, good!
[11/13/2019, 8:00:56 AM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22act
ive%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[11/13/2019, 8:00:56 AM] [FHEM] There was a problem connecting to FHEM
*** FHEM: connection failed
[11/13/2019, 8:00:56 AM] Got SIGTERM, shutting down alexa-fhem...
[11/13/2019, 8:00:56 AM] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[11/13/2019, 8:00:56 AM] [FHEM] executing: http://127.0.0.1:8084/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopp
ing%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[14.11.2019, 11:02:34] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[14.11.2019, 11:02:34] os.homedir()=/opt/fhem
[14.11.2019, 11:02:34] this is alexa-fhem 0.5.34
[14.11.2019, 11:02:34] connecting to FHEM ...
[14.11.2019, 11:02:39] [FHEM] trying longpoll to listen for fhem events
[14.11.2019, 11:02:39] [FHEM] starting longpoll: https://192.168.0.250:8081/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1573725759013
[14.11.2019, 11:02:40] [FHEM] got csrfToken: 0
[14.11.2019, 11:02:40] [FHEM] Checking devices and attributes...
[14.11.2019, 11:02:40] [FHEM] executing: https://192.168.0.250:8081/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=0&XHR=1
[14.11.2019, 11:02:40] [FHEM] executing: https://192.168.0.250:8081/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=0&XHR=1
[14.11.2019, 11:02:40] [FHEM] waiting for events ...
[14.11.2019, 11:02:40] [FHEM] Fetching FHEM devices...
[14.11.2019, 11:02:40] [FHEM] fetching: https://192.168.0.250:8081/fhem?cmd=jsonlist2%20alexaName2=..*&fwcsrf=0&XHR=1
[14.11.2019, 11:02:41] [FHEM] alexa device is alexa
[14.11.2019, 11:02:41] [FHEM] executing: https://192.168.0.250:8081/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.34%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=0&XHR=1
[14.11.2019, 11:02:41] [FHEM] executing: https://192.168.0.250:8081/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=0&XHR=1
[14.11.2019, 11:02:41] [FHEM] executing: https://192.168.0.250:8081/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=0&XHR=1
[14.11.2019, 11:02:42] Server listening on: http://127.0.0.1:35097 for proxy connections
[14.11.2019, 11:02:42] *** SSH: checking proxy configuration
[14.11.2019, 11:02:42] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[14.11.2019, 11:02:42] Passed config: {"connections":[{"webname":"fhem","uid":999,"server":"192.168.0.250","name":"FHEM","filter":"alexaName2=..*","port":"8081","ssl":true}],"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":35097}}
[14.11.2019, 11:02:42] sshautoconf: SSH key seems to exist
[14.11.2019, 11:02:43] sshautoconf: Our SSH key is known at the reverse proxy, good!
[14.11.2019, 11:02:43] [FHEM] executing: https://192.168.0.250:8081/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=0&XHR=1
*** FHEM: connected
[14.11.2019, 11:02:43] [FHEM] got: 1 results
[14.11.2019, 11:02:43] [FHEM] ug_wz_steckdose_1 is switch
[14.11.2019, 11:02:43] [FHEM] ug_wz_steckdose_1 has
[14.11.2019, 11:02:45] [FHEM] got .eventToken
[14.11.2019, 11:02:45] refreshing token
[14.11.2019, 11:02:45] BearerToken '...5EBB9' read from alexa
[14.11.2019, 11:02:45] 39_alexa.pm is new version: true
[14.11.2019, 11:02:45] sshautoconf: completed successfully
[14.11.2019, 11:02:45] *** SSH: proxy configuration set up done
[14.11.2019, 11:02:45] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[14.11.2019, 11:02:45] [FHEM] executing: https://192.168.0.250:8081/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=0&XHR=1
[14.11.2019, 11:02:45] Starting SSH with -R 1234:127.0.0.1:35097 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[14.11.2019, 11:02:46] failed to refresh token: invalid_grant: 'The request has an invalid grant parameter : refresh_token'
[14.11.2019, 11:02:47] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[14.11.2019, 11:02:47] [FHEM] executing: https://192.168.0.250:8081/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=0&XHR=1
[14.11.2019, 11:02:47] *** SSH: proxy connection established
[14.11.2019, 11:02:47] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
{
"connections" : [
{
"webname" : "fhem",
"uid" : 999,
"server" : "192.168.0.250",
"name" : "FHEM",
"filter" : "alexaName2=..*",
"port" : "8081",
"ssl": true
}
],
"sshproxy" : {
"ssh" : "/usr/bin/ssh",
"description" : "FHEM Connector"
}
}
sudo rm -rf /opt/fhem/.ssh/id_rsa
{
"connections" : [
{
"uid" : 999,
"name" : "FHEM",
"webname" : "fhem",
"filter" : "alexaName2=..*",
"server" : "192.168.0.250",
"port" : "8081",
"ssl" : true
}
],
"sshproxy" : {
"description" : "FHEM Connector",
"ssh" : "/usr/bin/ssh"
}
}
{
"connections" : [
{
"name" : "FHEM",
"uid" : 999,
"port" : "8083",
"server" : "127.0.0.1",
"webname" : "fhem",
"filter" : "alexaName=..*"
}
],
"sshproxy" : {
"ssh" : "/usr/bin/ssh",
"description" : "FHEM Connector"
}
}
Zitat von: justme1968 am 16 November 2019, 10:45:27Habe ich doch. Auf einem andere Raspi im Netzwerk.... Oder geht das nicht?
ich hatte oben doch schon geschrieben das man ein zweites fhem braucht. da braucht außer alexa nichts weiter konfiguriert sein.
{
"connections" : [
{
"name" : "FHEM",
"uid" : 999,
"port" : "8083",
"server" : "127.0.0.1",
"webname" : "fhem",
"filter" : "alexaName=..*"
},
{
"name" : "FHEM",
"uid" : 999,
"port" : "8081",
"server" : "192.168.0.250",
"webname" : "fhem",
"filter" : "alexaUName=..*",
"ssl" : true
}
],
"sshproxy" : {
"description" : "FHEM Connector",
"ssh" : "/usr/bin/ssh"
}
TargetPosition=verb=mach,values=auf:100;zu:0
in alexaMapping führt nicht wie ich gehofft hätte, das ich einfach "Mach Rollo <name> auf" (Antwort: "Rollo <name> unterstützt das nicht") sagen kann. Auch nicht wenn ich es ins homeBridgeMapping des Device schreibe.Zitat von: gvzdus am 16 November 2019, 17:48:37Und den habe ich wohl immer noch, nachdem ich mir das durchgelesen habe... *lach* Nix gegen Dich, aber ich hab manchmal leichte Verständnisschwierigkeiten und mir fällt es schwer mich in solche Logiken hineinzuversetzen. Da brauche ich dann schon mal was länger bis ich das verstehe.
Super, aber Du hast noch einen Verständnisfehler:
Zitat von: bigtruite am 15 Juni 2019, 20:46:13
Ich habe eine Tasmota LED-Lampe "lc06" des Typs "TASMOTA_DEVICE" von Matthias Kleine (haus-automatisierung.com).
Habe Probleme mit dem Dimmen und der Farben.
Habe in meinem Device folgendes HomebridgeMapping:Code AuswählenHue=verb=stelle,valuePrefix=auf,values=rot:1;grün:2,blau:3
Brightness=Dimmer::prozent,minValue=0,maxValue=100
Folgendes Ergebnis:
"Echo schalte lc06 auf rot."
MQTT-publish: lc06/lc06/cmnd/Color Dimmer 100
benötigtes Ergebnis: lc06/lc06/cmnd/Color 1
Echo schalte lc06 auf 80%.
MQTT-publish: lc06/lc06/cmnd/Color Dimmer 80
benötigtes Ergebnis: lc06/lc06/cmnd/Dimmer 80
Was kann ich tun um damit es klappt?
Brightness=cmd+Dimmer::prozent,minValue=0,maxValue=100
Zitat von: MadMax-FHEM am 17 November 2019, 17:55:05
alexaRoom:
nur relevant für den Custom Skill bzw. im Smart Home Skill nur bei Strukturen oder Szenen (wenn ich richtig liege)...
Im Smart Home Skill werden Räume bzw. Raumzuordnungen (noch) mittels Gruppen in der Alexa-App gemacht (wenn man das will)...
Statt dem "Erfinden" eines userattr alexaUName hättest du auch die Devices (zusätzlich zu wo sie norm. sind/sein sollen) in verschiedene Räume stecken können: RaumA bzw. RaumB und dann eben den Filter auf RaumA bzw. RaumB setzen können ;)
Gruß, Joachim
Zitat von: gvzdus am 18 November 2019, 07:10:50
So, und nun noch einmal der Versuch, die Bedeutung von "alexaName" zu klären: Amazon will wissen, welchen Namen es für das Gerät verstehen soll. alexa-fhem zieht dafür stets und immer primär das Attribut "alexaName" heran, nicht, was im Filter steht. Wenn das Attribut alexaName für ein Gerät nicht gesetzt ist, wird hilfsweise das Attribut "alias" verwendet (so jedenfalls mein schnelles Lesen des Source). Und wenn das auch nicht gesetzt ist, der FHEM-Name, den es ja geben muss.
Zitat von: justme1968 am 26 November 2019, 12:31:30
nein.
wie genau sehen dienstältester geräte aus? erscheinen sie auch dann wieder wenn du sie in der app gelöscht hast?
pi@FhemServer:~ $ sudo npm install -g alexa-fhem
Speicherzugriffsfehler
pi@FhemServer:~ $ npm --version
Speicherzugriffsfehler
pi@FhemServer:~ $ node --version
v8.11.3
ZitatArbeitest du (immer noch) mit der Kopie!?
Eines vorweg, es hat schon einmal funktioniert, aber leider ist meine SD Karte dann immer langsamer geworden und ich habe eine Kopie davon erstellt.
pi@raspberrypi:~ $ node -v
v12.10.0
pi@raspberrypi:~ $ npm --version
6.10.3
pi:~ $ node --version
v10.3.0
pi:~ $ npm -v
6.1.0
Zitat von: MadMax-FHEM am 13 Dezember 2019, 07:16:45Dann bin ich ja einigermaßen beruhigt. Ich dachte schon, dass ich was falsch gemacht habe. ;D
Von dem "Phänomen" habe ich schon (öfter) gelesen und hatte ich auch schon...
define d_alexa_ogwz_AVR_input1 dummy
attr d_alexa_ogwz_AVR_input1 room (z1)Alexa
attr d_alexa_ogwz_AVR_input1 setList on off
attr d_alexa_ogwz_AVR_input1 alexaName Trigger Yamaha Input 1
attr d_alexa_ogwz_AVR_input1 alexaRoom OG Wohnzimmer
Zitat von: Floh22964 am 15 Dezember 2019, 15:55:57
Danach bin ich über edit files in die Fhem.cfg gegangen und habe alle Attribute reinkopiert, da es bei einigen Geräten wie beim Rollo 16 Attribute gewesen sind.
So bin ich zügig voran gekommen und habe dann auch gleich Schreibfehler ausgebügelt.
Zitat von: Floh22964 am 15 Dezember 2019, 15:55:57
Meine Frau ist wieder glücklich die nutz die Alexa nämlich mehr als ich.
Danke für Deine / Eure Hilfe hier im Forum, ohne Euch geht es nicht.
Allen noch einen schönen dritten Advent.
Kay
oot@cubie:~# npm install -g alexa-fhem
npm WARN npm npm does not support Node.js v10.15.2
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
/usr/local/bin/alexa-fhem -> /usr/local/lib/node_modules/alexa-fhem/bin/alexa
+ alexa-fhem@0.5.37
updated 1 package in 27.843s
root@cubie:~#
alexaFHEM
stopped; alexa-fhem not installed. install with 'sudo npm install -g alexa-fhem'.
2019-12-30 14:33:49
alexa-fhem version 0.5.24
FVERSION 39_alexa.pm:0.208560/2019-12-30
$ sudo npm install -g alexa-fhem
/usr/bin/alexa-fhem -> /usr/lib/node_modules/alexa-fhem/bin/alexa
+ alexa-fhem@0.5.37
updated 1 package in 15.011s
$ npm -v
6.13.4
$ nodejs -v
v8.17.0
$ sudo find / -name alexa-fhem -exec ls -lad {} \;
drwxr-xr-x 5 root root 4096 Jan 9 10:09 /usr/lib/node_modules/alexa-fhem
drwxr-sr-x 5 nobody pi 4096 Mär 1 2019 /usr/local/lib/node_modules/alexa-fhem
lrwxrwxrwx 1 root staff 40 Mär 1 2019 /usr/local/bin/alexa-fhem -> ../lib/node_modules/alexa-fhem/bin/alexa
lrwxrwxrwx 1 root root 40 Jan 9 10:09 /usr/bin/alexa-fhem -> ../lib/node_modules/alexa-fhem/bin/alexa
find: '/proc/sys/fs/binfmt_misc': Kein passendes Gerät gefunden
drwxr-xr-x 2 pi pi 4096 Jan 21 2019 /root/.npm/registry.npmjs.org/alexa-fhem
drwxr-xr-x 9 root root 4096 Mär 1 2019 /root/.npm/alexa-fhem
Internals:
CFGFN
FUUID 5e21de12-f33f-a08e-0ff9-49a5f31062c0b6fa
NAME du.soundbaralexa
NR 4209
STATE volume 20
TYPE dummy
READINGS:
2020-01-17 17:19:29 state volume 20
2020-01-17 17:18:10 volume 10
Attributes:
alexaName Soundbar
genericDeviceType speaker
room Test
Volume=volume,cmd=volume
Volume=volume,cmd=volume
Internals:
CFGFN
FUUID 5e25d2dc-f33f-a08e-657a-d320d66a76a0be0d
NAME du.WZ.Soundbar
NR 4547
STATE volume 20
TYPE dummy
READINGS:
2020-01-20 17:23:27 alexa.volume 10
2020-01-23 16:20:02 state volume 20
2020-01-23 16:16:41 volume 30
Attributes:
alexaName Soundbar
genericDeviceType speaker
homebridgeMapping Volume:reading=alexa.volume,cmd=alexa.volume
readingList alexa.volume
room Samsung,Test
homebridgeMapping Volume=alexa.volume,cmd=alexa.volume
probiert... leider nicht geklappt[2020-1-23 4:19:51 PM] {"event":{"header":{"namespace":"Alexa.Discovery","name":"AddOrUpdateReport","payloadVersion":"3","messageId":"359f0508-fa64-4e86-8bee-2f232906b67b"},"payload":{"endpoints":[{"endpointId":"5e25d2dc-f33f-a08e-657a-d320d66a76a0be0d","manufacturerName":"FHEMdummy","modelName":"FHEM<unknown>","version":"<unknown>","friendlyName":"soundbar","description":"n: du.WZ.Soundbar, r: samsung,test","actions":[],"capabilities":[{"type":"AlexaInterface","interface":"Alexa.Speaker","version":"3","properties":{"supported":[{"name":"volume"}],"proactivelyReported":false,"retrievable":true}}],"displayCategories":["SPEAKER"],"cookie":{"device":"du.WZ.Soundbar","fuuid":"5e25d2dc-f33f-a08e-657a-d320d66a76a0be0d"}}],"scope":{"type":"BearerToken","token":"access-token-from-Amazon"}}}}
[2020-1-23 4:33:28 PM] {"event":{"header":{"namespace":"Alexa.Discovery","name":"AddOrUpdateReport","payloadVersion":"3","messageId":"f51f2d05-878a-4ed1-bcc8-6086c10a3fd3"},"payload":{"endpoints":[{"endpointId":"5e25d2dc-f33f-a08e-657a-d320d66a76a0be0d","manufacturerName":"FHEMdummy","modelName":"FHEM<unknown>","version":"<unknown>","friendlyName":"soundbar","description":"n: du.WZ.Soundbar, r: samsung,test","actions":[],"capabilities":[],"displayCategories":[],"cookie":{"device":"du.WZ.Soundbar","fuuid":"5e25d2dc-f33f-a08e-657a-d320d66a76a0be0d"}}],"scope":{"type":"BearerToken","token":"access-token-from-Amazon"}}}}
homebridgeMapping Volume=alexa.volume,cmd=alexa.volume
sollte gehen. Es sein denn, er akzeptiert keinen Punkt im Readingsname
Internals:
FUUID 5e32f8ca-f33f-a08e-717e-69ce7f74e3acc7dc
NAME speakertest
NR 96
STATE volume 54
TYPE dummy
OLDREADINGS:
READINGS:
2020-01-30 16:49:50 alexaVolume 50
2020-01-30 16:55:26 state volume 54
2020-01-30 16:54:47 volume 44
Attributes:
alexaName testobjekt
genericDeviceType speaker
homebridgeMapping Volume:reading=alexaVolume,cmd=alexaVolume
readingList alexaVolume
room Samsung
Internals:
DEF MEQ1710717:1
FUUID 5e2e92ae-f33f-bc18-a3e4-307cca0d05382680
IODev RaspMatic
NAME ST2Dach1_Bett
NR 122
STATE off
TYPE HMCCUCHN
ccuaddr MEQ1710717:1
ccudevstate active
ccuif BidCos-RF
ccuname ST2KanalDach1
ccutype HM-LC-Sw2-FM
channels 1
chntype SWITCH
firmware 2.8
statevals devstate|on|off
READINGS:
2020-01-30 17:38:10 1.STATE off
2020-01-30 17:38:10 control off
2020-01-30 17:38:10 hmstate off
2020-01-30 17:38:10 state off
hmccu:
devspec MEQ1710717:1
dp:
0.AES_KEY:
OVAL 0
VAL 0
0.CONFIG_PENDING:
OVAL false
VAL false
0.DUTYCYCLE:
OVAL false
VAL false
0.LOWBAT:
OVAL false
VAL false
0.RSSI_DEVICE:
OVAL 1
VAL 1
0.RSSI_PEER:
OVAL 1
VAL 1
0.STICKY_UNREACH:
OVAL false
VAL 1
0.UNREACH:
OVAL 1
VAL 0
1.INHIBIT:
OVAL false
VAL false
1.STATE:
OSVAL on
OVAL 1
SVAL off
VAL 0
1.WORKING:
OVAL 0
VAL 0
Attributes:
IODev RaspMatic
alexaName Bettlicht
ccureadingfilter STATE
genericDeviceType light
room Alexa,CCU_HM
statedatapoint STATE
statevals on:true,off:false
substitute STATE!(1|true):on,(0|false):off
[2020-1-30 5:45:47 PM] >>>> [ssh] {"directive":{"header":{"namespace":"Alexa.PowerController","name":"TurnOn","payloadVersion":"3","messageId":"16f6f263-f0b6-4e75-8f3d-c53218085728","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"795D074D-FB1767EB6DBD3B3E"},"endpointId":"5e2e92ae-f33f-bc18-a3e4-307cca0d05382680","cookie":{"fuuid":"5e2e92ae-f33f-bc18-a3e4-307cca0d05382680","device":"ST2Dach1_Bett"}},"payload":{}}}
[2020-1-30 5:45:47 PM] [FHEM] ST2Dach1_Bett: executing set cmd for On with value 1
[2020-1-30 5:45:47 PM] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=set%20ST2Dach1_Bett%20%3Cein%3E&fwcsrf=csrf_70396842746465&XHR=1
[2020-1-30 5:45:47 PM] <<<< [ssh] {"context":{"properties":[{"namespace":"Alexa.PowerController","name":"powerState","value":"ON","timeOfSample":"2020-01-30T16:45:47.896Z","uncertaintyInMilliseconds":500}]},"event":{"header":{"namespace":"Alexa","name":"Response","payloadVersion":"3","messageId":"6f20fc30-35c7-4afd-bc1d-205079dbefda","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"795D074D-FB1767EB6DBD3B3E"},"endpointId":"5e2e92ae-f33f-bc18-a3e4-307cca0d05382680"},"payload":{}}}
[2020-1-30 5:45:48 PM] >>>> [ssh] {"directive":{"header":{"namespace":"Alexa","name":"ReportState","payloadVersion":"3","messageId":"9e2c8d72-fffa-4ecf-8577-16bf4ff28064","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"795D074D-FB1767EB6DBD3B3E"},"endpointId":"5e2e92ae-f33f-bc18-a3e4-307cca0d05382680","cookie":{"fuuid":"5e2e92ae-f33f-bc18-a3e4-307cca0d05382680","device":"ST2Dach1_Bett"}},"payload":{}}}
[2020-1-30 5:45:48 PM] [FHEM] caching: On: 0 (as number; from 'off')
[2020-1-30 5:45:48 PM] <<<< [ssh] {"context":{"properties":[{"namespace":"Alexa.PowerController","name":"powerState","value":"OFF","timeOfSample":"2020-01-30T16:45:48.149Z","uncertaintyInMilliseconds":500}]},"event":{"header":{"namespace":"Alexa","name":"StateReport","payloadVersion":"3","messageId":"3478efca-c1a8-4060-a252-70905a93b810","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"795D074D-FB1767EB6DBD3B3E"},"endpointId":"5e2e92ae-f33f-bc18-a3e4-307cca0d05382680"},"payload":{}}}
Zitat von: djbone92 am 30 Januar 2020, 16:58:04Natürlich musst Du nach jeder Änderung von homeBridgeMapping ein "set alexa reload" oder ein "set alexa restart" machen.
Hy
Ich weiss echt nicht mehr weiter..Code AuswählenInternals:
FUUID 5e32f8ca-f33f-a08e-717e-69ce7f74e3acc7dc
NAME speakertest
NR 96
STATE volume 54
TYPE dummy
OLDREADINGS:
READINGS:
2020-01-30 16:49:50 alexaVolume 50
2020-01-30 16:55:26 state volume 54
2020-01-30 16:54:47 volume 44
Attributes:
alexaName testobjekt
genericDeviceType speaker
homebridgeMapping Volume:reading=alexaVolume,cmd=alexaVolume
readingList alexaVolume
room Samsung
Habs auch mit deinem HomebridgeMapping versucht... geht nicht
nimmt immer volume+/- 10 und macht ein "set volume xx"..
das mapping scheint ihm vollkommen egal zu sein :/
weiters hätte ich gerne die Schrittweite von 10 auf 2 abgeändert.. würde das gehen? wie?
mfg
Mike
Zitat von: amenomade am 30 Januar 2020, 19:16:34
Natürlich musst Du nach jeder Änderung von homeBridgeMapping ein "set alexa reload" oder ein "set alexa restart" machen.
Zitat von: amenomade am 03 Februar 2020, 16:20:48
Warum hast Du plötzlich das wort "reading=" ins Mapping hinzugefügt?
ZitatGeräte, deren Lautstärke sich ändern lässt (ab alexa-fhem version 0.5.24)
Über genericDeviceType speaker
Automatisch: es muss ein Reading volume und/oder mute geben
hombridgeMapping Volume:reading=<reading>,cmd=<cmd> Mute:reading=<reading>,cmd=<cmd>
...
Zitat von: duke-f am 30 Dezember 2019, 23:15:21
Post 928 gibt wohl die Erklärung: Mein System ist das Igor-Image wheezy. Hatte mich bisher erst einmal getraut upzugraden.
set alexa stop
anschließend:sudo npm install -g alexa-fhem
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
/usr/bin/alexa-fhem -> /usr/lib/node_modules/alexa-fhem/bin/alexa
+ alexa-fhem@0.5.48
updated 1 package in 1.132s
set alexa start
GZ_Lampe has
[29.11.2020, 17:11:35] [FHEM] GZ_Lampe will not send proactive events
On=verb=schalte,valueOn=Betriebsmode;3,valueOff=Betriebsmode;0
On=verb=schalte,valueOn=Betriebsmode:3,valueOff=Betriebsmode:0
Heizung has
[29.11.2020, 21:39:32] [FHEM] On [undefined;undefined,undefined]
ZitatDarf man fragen, warum du nicht einfach "Alexa spiel Bayern 3 auf TuneIn auf Sonos xyz" sagst?Wenn ich das sage, antwortet Alexa das Sie nichts mit dem Namen Sonos kennt... :-) Ich habe meine Sonos ueber das Sonos Modul integriert, nicht ueber Alexa-> Sonos. Ich habe auch nur die alten Sonos ohne die Alexa integration, deswegen.
3/1/4:dpt1.008:Auf/Zu 3/1/5:dpt1.017:Stop 3/1/16:dpt5.001:Position 3/1/17:dpt5.001:AktuellePos
set KNX_0301004 Position 45
get KNX_0301004 AktuellePos
{ReadingsNum("KNX_0301004", "AktuellePos-get",0)}
set KNX_0301004 on
ist 100%set KNX_0301004 off
ist 0% 2020-12-28 08:07:03 caching: KNX_0301004-AktuellePos-get: 29 %
[28.12.2020, 08:07:03] [FHEM] caching: CurrentPosition: 29 % (as string; from '29 %')
2020-12-28 08:14:07 caching: KNX_0301004-AktuellePos-get: 45 %
[28.12.2020, 08:14:07] [FHEM] caching: CurrentPosition: 45 % (as string; from '45 %')
2020-12-28 08:16:54 caching: KNX_0301004-AktuellePos-get: 100 %
[28.12.2020, 08:16:54] [FHEM] caching: CurrentPosition: 100 % (as string; from '100 %')
2020-12-28 08:17:52 caching: KNX_0301004-AktuellePos-get: 0 %
[28.12.2020, 08:17:52] [FHEM] caching: CurrentPosition: 0 % (as string; from '0 %')
clear CurrentPosition=AktuellePos-get TargetPosition=Position::Position
userReadings curPosNum:AktuellePos-get.* {ReadingsNum("KNX_0301004", "AktuellePos-get",0)}
homeBridgeMapping CurrentPosition=curPosNum TargetPosition=curPosNum::Position
CurrentPosition=AktuellePos-get,part=0
CurrentPosition=AktuellePos-get,part=0 TargetPostion=CurrentPostion,cmd=Position
curPosNum:AktuellePos-get.* {ReadingsNum("KNX_0301004", "AktuellePos-get",0)}
READINGS:
2020-12-31 10:54:53 AktuellePos-get 18 %
2020-12-23 15:16:25 Auf/Zu-get up
2020-12-31 10:54:50 Auf/Zu-set down
2020-12-31 10:54:17 Position-set 27 %
2020-12-23 07:59:48 Stop-get trigger
2020-12-31 10:54:53 Stop-set trigger
2020-12-31 10:54:53 curPosNum 18
2020-12-31 10:54:53 last-sender 0/0/27
2020-12-31 10:54:53 state 18 %
[31.12.2020, 11:02:53] [FHEM] KNX_0301004 has
[31.12.2020, 11:02:53] [FHEM] CurrentPosition [curPosNum]
[31.12.2020, 11:02:53] [FHEM] TargetPosition [Position]
[31.12.2020, 11:02:53] [FHEM] KNX_0301004 will not send proactive events
[31.12.2020, 11:02:53] [FHEM] KNX_0301004 uses ID: 5e89ca80-f33f-f555-da32-3148abd23b731b80
2020-12-31 11:02:53 caching: KNX_0301004-curPosNum: 18
CurrentPosition=curPosNum TargetPosition=Position::Position
HUEDevice Lampe1 colormode: hs
HUEDevice Lampe1 hue: 42938
HUEDevice Lampe1 rgb: 0012ff
HUEDevice Lampe1 colormode: xy
HUEDevice Lampe1 xy: 0.5254,0.3253
HUEDevice Lampe1 rgb: f7614b
2021.01.18 13:32:51 2: LOGIN TOKEN MISSING OR EXPIRED
2021.01.18 13:32:51 3: Reconnecting...
2021.01.18 13:32:51 2: {"token_type":"Bearer","access_token":"eyJ0eXAiOiJKV1QiLC
2021.01.18 13:37:51 2: LOGIN TOKEN MISSING OR EXPIRED
2021.01.18 13:37:51 3: Reconnecting...
2021.01.18 13:37:51 2: {"token_type":"Bearer","access_token":"eyJ0eXAiOiJKV1QiLC
2021.01.18 13:42:51 2: LOGIN TOKEN MISSING OR EXPIRED
2021.01.18 13:42:51 3: Reconnecting...
2021.01.18 13:42:51 2: {"token_type":"Bearer","access_token":"eyJ0eXAiOiJKV1QiLC
2021.01.18 13:47:51 2: LOGIN TOKEN MISSING OR EXPIRED
2021.01.18 13:47:51 3: Reconnecting...
2021.01.18 13:47:51 2: {"token_type":"Bearer","access_token":"eyJ0eXAiOiJKV1QiLC
2021.01.18 13:52:51 2: LOGIN TOKEN MISSING OR EXPIRED
2021.01.18 13:52:51 3: Reconnecting...
2021.01.18 13:52:51 2: {"token_type":"Bearer","access_token":"eyJ0eXAiOiJKV1QiLC...............}
2021.01.18 13:57:51 2: LOGIN TOKEN MISSING OR EXPIRED
2021.01.18 13:57:51 3: Reconnecting...
2021.01.18 13:57:51 2: {"token_type":"Bearer","access_token":"eyJ0eXAiOiJKV1QiLC...............}
2021.01.18 14:02:51 2: LOGIN TOKEN MISSING OR EXPIRED
2021.01.18 14:02:51 3: Reconnecting...
2021.01.18 14:02:51 2: {"token_type":"Bearer","access_token":"eyJ0eXAiOiJKV1QiLC...............}
2021.01.18 14:07:51 2: LOGIN TOKEN MISSING OR EXPIRED
2021.01.18 14:07:51 3: Reconnecting...
ls -dl /opt/fhem/.ssh
drwx------ 6 fhem dialout 4096 Jan 19 2019 /opt/fhem/.ssh
alexaFHEM running /usr/local/bin/alexa-fhem
alexaFHEM.ProxyConnection stopped; Terminated with Host key verification failed. , ssh will restart at 16:44:36
[2021-1-27 16:42:36] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2021-1-27 16:42:36] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2021-1-27 16:42:36] Starting SSH with -R 1234:127.0.0.1:41483 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[2021-1-27 16:42:36] Reading alexaFHEM.ProxyConnection set to running;; stderr=Warning: Identity file /opt/fhem/.ssh/id_rsa not accessible: No such file or directory.
[2021-1-27 16:42:36] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20stderr%3DWarning%3A%20Identity%20file%20%2Fopt%2Ffhem%2F.ssh%2Fid_rsa%20not%20accessible%3A%20No%20such%20file%20or%20directory.%20%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2021-1-27 16:42:36] *** SSH: stderr: Warning: Identity file /opt/fhem/.ssh/id_rsa not accessible: No such file or directory.
[2021-1-27 16:42:36] Reading alexaFHEM.ProxyConnection set to running;; stderr=Host key verification failed.
[2021-1-27 16:42:36] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20stderr%3DHost%20key%20verification%20failed.%20%20%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2021-1-27 16:42:36] *** SSH: stderr: Host key verification failed.
[2021-1-27 16:42:36] SSH: exited with 255 - will restart in 119.82098374881366 seconds
[2021-1-27 16:42:36] Reading alexaFHEM.ProxyConnection set to stopped;; Terminated with Host key verification failed. , ssh will restart at 16:44:36
[2021-1-27 16:42:36] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopped%3B%3B%20Terminated%20with%20Host%20key%20verification%20failed.%20%20%2C%20ssh%20will%20restart%20at%2016%3A44%3A36%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[25.1.2021, 19:24:06] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[25.1.2021, 19:24:06] os.homedir()=/root
[25.1.2021, 19:24:06] os.homedir() set to /root, but this is not writable
[25.1.2021, 19:24:06] process.env.HOME=/root
[25.1.2021, 19:24:06] process.env.HOME set to /root, but this is not writable
[25.1.2021, 19:24:06] process.env.HOMEPATH=undefined
[25.1.2021, 19:24:06] process.env.USERPROFILE=undefined
[25.1.2021, 19:24:06] process.env.PWD=/opt/fhem
[25.1.2021, 19:24:06] this is alexa-fhem 0.5.57
[25.1.2021, 19:24:06] connecting to FHEM ...
...
[25.1.2021, 19:24:09] *** SSH: checking proxy configuration
[25.1.2021, 19:24:09] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[25.1.2021, 19:24:09] Passed config: {"connections":[{"webname":"fhem","uid":999,"auth":{"pass":"XXXXXXX","sendImmediately":false,"user":"fhemuser"},"port":"8083","filter":"alexaName=...*","server":"127.0.0.1","name":"FHEM","Xreport":false}],"sshproxy":{"ssh":"/usr/bin/ssh","description":"FHEM Connector","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","server":{"_events":{},"_eventsCount":3,"_connections":0,"_handle":{"reading":false,"onread":null},"_usingWorkers":false,"_workers":[],"_unref":false,"allowHalfOpen":true,"pauseOnConnect":false,"httpAllowHalfOpen":false,"timeout":0,"keepAliveTimeout":5000,"maxHeadersCount":null,"headersTimeout":40000,"_connectionKey":"4:127.0.0.1:0"}}}
[25.1.2021, 19:24:09] sshautoconf: SSH key seems to exist
u.s.w.
Zitat von: gvzdus am 27 Januar 2021, 18:11:30
./createKey gehört da z.B. nicht dazu. Das Wunder ist, dass Dein .ssh-Ordner leer bleibt. Die Permissions sehen richtig aus, aber spätestens nach Deinem manuellen "ssh-keygen" hätte ja nun da etwas drin sein müssen?
ZitatNicht, wenn es mit dem User pi läuf, oder!?
Zitat von: gvzdus am 27 Januar 2021, 18:43:09
Dann nicht, aber er schreibt ja nun explizit "sich als User fhem angemeldet". Mal abwarten.
fhem@raspberrypi:~$ sudo npm install -g alexa-fhem
[sudo] password for fhem:
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path /usr/local/lib/node_modules/.staging/alexa-fhem-409e7205/node_modules/ajv
npm ERR! dest /usr/local/lib/node_modules/.staging/ajv-fee5cac9
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/alexa-fhem-409e7205/node_modules/ajv' -> '/usr/local/lib/node_modules/.staging/ajv-fee5cac9'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-01-27T17_33_04_531Z-debug.log
fhem@raspberrypi:~$ ls -a -l
total 1644
drwxr-xr-x 22 fhem root 4096 Jan 27 18:33 .
drwxr-xr-x 9 root root 4096 Apr 7 2019 ..
drwx------ 2 fhem dialout 4096 Jan 27 16:53 .alexa
drwxr-xr-x 5 fhem root 4096 Jan 27 17:12 alexa-fhem
-rw-r--r-- 1 fhem dialout 311 Jan 27 17:47 alexa-fhem.cfg
-rw-r--r-- 1 fhem dialout 311 Jan 27 16:25 alexa-fhem.cfg.previous
-rw------- 1 fhem dialout 415 Jan 27 18:32 .bash_history
drwx--x--x 2 fhem root 4096 Sep 10 2018 certs
-rw-r--r-- 1 fhem root 352959 Nov 2 14:24 CHANGED
drwx------ 3 fhem dialout 4096 Jan 27 18:33 .config
-rw-r--r-- 1 fhem root 41442 Nov 2 14:24 configDB.pm
drwxr-xr-x 44 fhem root 4096 Aug 30 2018 contrib
drwxr-xr-x 3 fhem root 4096 Aug 30 2018 demolog
drwxr-xr-x 4 fhem root 4096 Aug 30 2018 docs
drwxr-xr-x 6 fhem root 36864 Jan 27 17:47 FHEM
-rw-r--r-- 1 fhem root 250555 Jan 27 13:29 fhem.cfg
-rw-r--r-- 1 fhem root 142736 Jan 15 2019 fhem.cfg.backup011
-rw-r--r-- 1 fhem root 142998 Jan 15 2019 fhem.cfg.backup01192
-rw-r--r-- 1 fhem root 142957 Jan 15 2019 fhem.cfg.backupNEU
-rw-r--r-- 1 fhem root 25544 Mar 17 2020 fhem.cfg.demo
-rwxr-xr-x 1 fhem root 165945 Nov 2 14:24 fhem.pl
-rw-r--r-- 1 fhem root 0 Sep 12 2018 fronthem.err
-rw-r--r-- 1 fhem dialout 18092 Nov 2 14:24 GPL_V2.txt
drwxr-xr-x 3 fhem dialout 4096 Sep 15 09:13 lib
drwxrwxrwx 2 fhem root 196608 Jan 27 14:50 log
-rw-r--r-- 1 fhem root 42741 Nov 2 14:24 MAINTAINER.txt
drwxr-xr-x 3 fhem dialout 4096 Jan 27 18:33 .npm
-rw-r--r-- 1 fhem root 935 Aug 30 2018 README_DEMO.txt
drwxr-xr-x 4 fhem root 4096 Sep 12 2018 restoreDir
drwxr-xr-x 2 fhem root 4096 Apr 7 2019 scripts
drwx------ 2 fhem dialout 4096 Jan 27 17:44 .ssh
drwx------ 2 fhem dialout 4096 Jan 27 15:21 ssh2OLD
drwx------ 2 fhem root 4096 Jan 27 15:34 ssh3OLD
drwx------ 3 fhem dialout 4096 Jan 27 17:21 .ssh4OLD
drwx------ 2 fhem dialout 4096 Jan 27 14:52 .sshOLD
drwxr-xr-x 2 fhem root 4096 Oct 1 2018 unused
drwxr-xr-x 13 fhem root 4096 Oct 9 09:35 www
Zitat von: gvzdus am 27 Januar 2021, 19:55:49
Sorry, bitte lies noch einmal genau nach, welche Informationen ich aus dem alexa-fhem.log brauche, um Dir zu helfen.
[2021-1-27 19:58:07] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2021-1-27 19:58:07] os.homedir()=/opt/fhem
[2021-1-27 19:58:07] this is alexa-fhem 0.5.59
[2021-1-27 19:58:07] connecting to FHEM ...
[2021-1-27 19:58:07] [FHEM] defaults to: will not send proactive events
[2021-1-27 19:58:09] [FHEM] trying longpoll to listen for fhem events
[2021-1-27 19:58:09] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1611773889011
[2021-1-27 19:58:09] [FHEM] got csrfToken:
[2021-1-27 19:58:09] [FHEM] Checking devices and attributes...
[2021-1-27 19:58:09] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2021-1-27 19:58:09] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2021-1-27 19:58:09] [FHEM] waiting for events ...
[2021-1-27 19:58:09] [FHEM] Fetching FHEM devices...
[2021-1-27 19:58:09] [FHEM] fetching: https://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2021-1-27 19:58:09] [FHEM] alexa device is alexa
[2021-1-27 19:58:09] [FHEM] alexa will not send proactive events
[2021-1-27 19:58:09] [FHEM] alexa uses ID: 6011993a-f33f-53b5-6fbe-f158544596097710
[2021-1-27 19:58:09] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.59%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2021-1-27 19:58:09] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2021-1-27 19:58:09] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2021-1-27 19:58:09] Server listening on: http://127.0.0.1:42829 for proxy connections
[2021-1-27 19:58:09] *** SSH: checking proxy configuration
[2021-1-27 19:58:09] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2021-1-27 19:58:09] sshautoconf: TypeError: Converting circular structure to JSON
[2021-1-27 19:58:09] sshautoconf: completed successfully
[2021-1-27 19:58:09] *** SSH: proxy configuration set up done
[2021-1-27 19:58:09] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2021-1-27 19:58:09] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2021-1-27 19:58:09] Starting SSH with -R 1234:127.0.0.1:42829 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
*** FHEM: connected
[2021-1-27 19:58:09] [FHEM] got: 0 results
[2021-1-27 19:58:10] Reading alexaFHEM.ProxyConnection set to running;; stderr=Host key verification failed.
[2021-1-27 19:58:10] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20stderr%3DHost%20key%20verification%20failed.%20%20%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2021-1-27 19:58:10] *** SSH: stderr: Host key verification failed.
[2021-1-27 19:58:10] SSH: exited with 255 - will restart in 19.574490337753538 seconds
} else {
// config passed as argument - non-interactive mode, default config by 39_alexa.pm
log.info("Passed config: " + JSON.stringify(config));
if (config.sshproxy.ssh)
config.sshproxy.ssh = config.sshproxy.ssh.trim();
}
// log.info("Passed config: " + JSON.stringify(config));
Zitat von: gvzdus am 27 Januar 2021, 20:27:29
Shit, das ist der 2. Fall binnen 48 Stunden. Irgendwas ist da mit der aktuellen Version faul.
Das Problem ist die "Circular JSON"-Meldung, die die Installationsroutine abbricht und keine SSH-Key-Generierung und Anmeldung durchführt.
Wenn Du Dich das händische Editieren traust, dann so:
1) Anmelden am Raspi etc.
2) sudo bash
3) cd /usr/local/lib/node_modules/alexa-fhem/lib/
4) editor von "user.js" aufrufen
5) Um Zeile 381 herum findest Du:Code Auswählen
} else {
// config passed as argument - non-interactive mode, default config by 39_alexa.pm
log.info("Passed config: " + JSON.stringify(config));
if (config.sshproxy.ssh)
config.sshproxy.ssh = config.sshproxy.ssh.trim();
}
6) Hier das "Passed config" auskommentieren ("//" einfügen):Code Auswählen// log.info("Passed config: " + JSON.stringify(config));
7) Speichern, abmelden
8) Alexa restarten - sollte wuppen
Dass die Datei bei Dir unter /usr/local/lib/node_modules/alexa-fhem/lib liegt, ist eine Vermutung.
Zitat von: gvzdus am 27 Januar 2021, 20:27:29
Shit, das ist der 2. Fall binnen 48 Stunden. Irgendwas ist da mit der aktuellen Version faul.
Das Problem ist die "Circular JSON"-Meldung, die die Installationsroutine abbricht und keine SSH-Key-Generierung und Anmeldung durchführt.
Wenn Du Dich das händische Editieren traust, dann so:
1) Anmelden am Raspi etc.
2) sudo bash
3) cd /usr/local/lib/node_modules/alexa-fhem/lib/
4) editor von "user.js" aufrufen
5) Um Zeile 381 herum findest Du:Code Auswählen
} else {
// config passed as argument - non-interactive mode, default config by 39_alexa.pm
log.info("Passed config: " + JSON.stringify(config));
if (config.sshproxy.ssh)
config.sshproxy.ssh = config.sshproxy.ssh.trim();
}
6) Hier das "Passed config" auskommentieren ("//" einfügen):Code Auswählen// log.info("Passed config: " + JSON.stringify(config));
7) Speichern, abmelden
8) Alexa restarten - sollte wuppen
Dass die Datei bei Dir unter /usr/local/lib/node_modules/alexa-fhem/lib liegt, ist eine Vermutung.
[23.2.2021, 13:30:29] [FHEM] fetching: http://127.0.0.1:40446/fhem?cmd=jsonlist2%20bridge_alexa_name=.+&fwcsrf=csrf_194516368220063&XHR=1
[23.2.2021, 13:30:30] [FHEM] SyntaxError: Unexpected token B in JSON at position 0
at JSON.parse (<anonymous>)
at FHEM.<anonymous> (/usr/local/lib/node_modules/alexa-fhem/lib/fhem.js:1345:34)
at Request._callback (/usr/local/lib/node_modules/alexa-fhem/lib/fhem.js:1629:27)
at Request.self.callback (/usr/local/lib/node_modules/alexa-fhem/node_modules/postman-request/request.js:268:12)
at Request.emit (events.js:198:13)
at Request.<anonymous> (/usr/local/lib/node_modules/alexa-fhem/node_modules/postman-request/request.js:1532:10)
at Request.emit (events.js:198:13)
at Gunzip.<anonymous> (/usr/local/lib/node_modules/alexa-fhem/node_modules/postman-request/request.js:1403:12)
at Object.onceWrapper (events.js:286:20)
at Gunzip.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1145:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
[23.2.2021, 13:30:30] [FHEM] failed to parse Bareword "general" not allowed while "strict subs" in use at (eval 285782) line 1.{ "Arg":"TYPE=alexa", "Results": [ { "Name":"general.interfaces.amazon.alexa_skill", "PossibleSets":"add createDefaultConfig:noArg reload:noArg skillId start:noArg stop:noArg restart:noArg", "PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 alexaMapping:textField-long alexaTypes:textField-long fhemIntents:textField-long articles prepositions echoRooms:textField-long persons:textField-long alexaConfirmationLevel:2,1,0 alexaStatusLevel:2,1 skillId:textField alexaFHEM-cmd alexaFHEM-config alexaFHEM-home alexaFHEM-log alexaFHEM-params alexaFHEM-auth alexaFHEM-host alexaFHEM-sshUser nrarchive disable:1,0 disabledForIntervals event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading ASC:0,1,2 ASC_AutoAstroModeEvening ASC_AutoAstroModeMorning ASC_BlockingTime_afterManual ASC_Down ASC_LockOut ASC_Mode_Down ASC_Mode_Up ASC_Pos_Reading ASC_Roommate_Device ASC_Roommate_Reading ASC_Shading_Direction ASC_Shading_Mode ASC_Shading_Pos ASC_ShuttersPlace ASC_Up ASC_Ventilate_Pos ASC_Ventilate_Window_Open ASC_WindowRec ASC_WindowRec_subType DbLogExclude DbLogInclude DbLogValueFn:textField-long HmIp3D HmIpKey HmIpSGTIN alarm_system_interior alarm_system_outer_shell alarm_system_perimeter alexaName alexaProactiveEvents:1,0 alexaRoom cmdIcon devStateIcon:textField-long devStateStyle genericDeviceType:security,ignore,switch,outlet,light,blind,thermometer,thermostat,contact,garage,window,lock,scene homebridgeMapping:textField-long icon installationRoom logging_bridge_Alias:textField-long logging_bridge_Defaults:textField-long logging_bridge_Disable:both,incoming,outgoing logging_bridge_Forward:all,none logging_bridge_Publish:textField-long logging_bridge_Subscribe:textField-long msgContactAudio msgContactLight msgContactMail msgContactPush msgContactScreen msgParams msgPriority msgRecipient msgRecipientAudio msgRecipientLight msgRecipientMail msgRecipientPush msgRecipientScreen msgRecipientText msgTitle msgTitleShrt msgType:text,push,mail,screen,light,audio,queue sortby webCmd webCmdLabel:textField-long widgetOverride userattr", "Internals": { ".FhemMetaInternals": "1", "CFGFN": "", "FD": "30", "FUUID": "6034f151-f33f-a67d-4494-e141043b9e4a2680", "FVERSION": "39_alexa.pm:0.216510/2020-04-12", "LAST_START": "2021-02-23 13:29:04", "LAST_STOP": "2021-02-23 13:28:56", "NAME": "general.interfaces.amazon.alexa_skill", "NOTIFYDEV": "global,global:npmjs.*alexa-fhem.*", "NR": "11944", "NTFY_ORDER": "50-general.interfaces.amazon.alexa_skill", "PARTIAL": "", "PID": "22746", "STARTS": "8", "STATE": "running /usr/local/bin/alexa-fhem", "TYPE": "alexa", "currentlogfile": "./log/alexa-2021-02-23.log", "logfile": "./log/alexa-%Y-%m-%d.log" }, "Readings": { "alexaFHEM": { "Value":"running /usr/local/bin/alexa-fhem", "Time":"2021-02-23 13:29:04" }, "alexaFHEM.ProxyConnection": { "Value":"error; Trying to fetch alexadevice failed with SyntaxError: Unexpected token B in JSON at position 0", "Time":"2021-02-23 13:29:09" }, "alexaFHEM.bearerToken": { "Value":"crypt:200e7555550f030c7327020050705203", "Time":"2021-02-23 13:13:06" }, "alexaFHEM.skillRegKey": { "Value":"crypt:50030e255b0a0b071f25007156042202010a56270a550f05501c715d77575551540f7727570b02700455", "Time":"2021-02-23 13:13:06" } }, "Attributes": { "alexaFHEM-auth": "crypt:095844130b4b5c5a515b5e5d155b0a564d5d48074001431b0358460c5b134f0505555713074c1e5d5c02425e0351161a4d4f000f461d1a51135846084d4e12140d5a570d", "alexaFHEM-config": "./alexa-fhem.cfg", "alexaFHEM-log": "./log/alexa-%Y-%m-%d.log", "alexaMapping": "#Characteristic=<name>=<value>,...\nOn=verb=schalte,valueOn=an;ein,valueOff=aus,valueToggle=um\n\nBrightness=verb=stelle,property=helligkeit,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent\n\nHue=verb=stelle,valuePrefix=auf,values=rot:0;grün:128;blau:200\nHue=verb=färbe,values=rot:0;grün:120;blau:220\n\nSaturation=verb=stelle,property=sättigung,valuePrefix=auf,values=AMAZON.NUMBER\nSaturation=verb=sättige,values=AMAZON.NUMBER\n\nTargetPosition=verb=mach,articles=den;die,values=auf:100;zu:0\nTargetPosition=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent\n\nTargetTemperature=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=grad\n\nVolume:verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent\n\n#Weckzeit=verb=stelle,valuePrefix=auf;für,values=AMAZON.TIME,valueSuffix=uhr", "alexaTypes": "#Type=<alias>[,<alias2>[,...]]\nlight=licht,lampen\nblind=rolladen,rolläden,jalousie,jalousien,rollo,rollos", "devStateIcon": "stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop", "echoRooms": "#<deviceId>=<room>\n", "fhemIntents": "#IntentName=<sample utterance>\ngutenMorgen=guten morgen\nguteNacht=gute nacht", "persons": "#<personId>=<name>\n", "stateFormat": "alexaFHEM" } } ], "totalResultsReturned":1}Bareword "general" not allowed while "strict subs" in use at (eval 285783) line 1.
*** FHEM: connected
[23.2.2021, 13:30:31] [FHEM] got: 0 results
http://127.0.0.1:40446/fhem?cmd=jsonlist2%20bridge_alexa_name=.+&fwcsrf=csrf_194516368220063&XHR=1
Zitat von: gvzdus am 23 Februar 2021, 14:42:02
Es wäre ja spannend, was beiCode Auswählenhttp://127.0.0.1:40446/fhem?cmd=jsonlist2%20bridge_alexa_name=.+&fwcsrf=csrf_194516368220063&XHR=1
zurückkommt.
{
"connections" : [
{
"webname" : "fhem",
"name" : "FHEM",
"server" : "fornost",
"filter" : "bridge_alexa_name=..*",
"port" : "40446",
"uid" : 999
}
],
"sshproxy" : {
"ssh" : "/usr/bin/ssh",
"description" : "FHEM Connector"
}
}
[23.2.2021, 15:11:32] Got SIGTERM, shutting down alexa-fhem...
[23.2.2021, 15:11:32] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[23.2.2021, 15:11:32] [FHEM] executing: http://127.0.0.1:40446/fhem?cmd=%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20general.interfaces.amazon.alexa_skill%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_194516368220063&XHR=1
[23.2.2021, 15:11:40] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[23.2.2021, 15:11:40] os.homedir()=/opt/fhem
[23.2.2021, 15:11:40] this is alexa-fhem 0.5.60
[23.2.2021, 15:11:40] connecting to FHEM ...
[23.2.2021, 15:11:40] [FHEM] defaults to: will not send proactive events
[23.2.2021, 15:11:41] [FHEM] trying longpoll to listen for fhem events
[23.2.2021, 15:11:41] [FHEM] starting longpoll: http://fornost:40446/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1614089501286
[23.2.2021, 15:11:41] [FHEM] got csrfToken: csrf_194516368220063
[23.2.2021, 15:11:41] [FHEM] Checking devices and attributes...
[23.2.2021, 15:11:41] [FHEM] executing: http://fornost:40446/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=csrf_194516368220063&XHR=1
[23.2.2021, 15:11:41] [FHEM] executing: http://fornost:40446/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_194516368220063&XHR=1
[23.2.2021, 15:11:41] [FHEM] waiting for events ...
[23.2.2021, 15:11:41] [FHEM] Fetching FHEM devices...
[23.2.2021, 15:11:41] [FHEM] fetching: http://fornost:40446/fhem?cmd=jsonlist2%20bridge_alexa_name=..*&fwcsrf=csrf_194516368220063&XHR=1
[23.2.2021, 15:11:41] [FHEM] alexa device is general.interfaces.amazon.alexa_skill
[23.2.2021, 15:11:41] [FHEM] general.interfaces.amazon.alexa_skill will not send proactive events
[23.2.2021, 15:11:41] [FHEM] general.interfaces.amazon.alexa_skill uses ID: 6034f151-f33f-a67d-4494-e141043b9e4a2680
[23.2.2021, 15:11:41] [FHEM] executing: http://fornost:40446/fhem?cmd=%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.60%22%7D%3B%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_194516368220063&XHR=1
[23.2.2021, 15:11:41] [FHEM] executing: http://fornost:40446/fhem?cmd=%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20general.interfaces.amazon.alexa_skill%20proxyToken%3B%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_194516368220063&XHR=1
[23.2.2021, 15:11:41] [FHEM] executing: http://fornost:40446/fhem?cmd=%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20general.interfaces.amazon.alexa_skill%20.eventToken%3B%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_194516368220063&XHR=1
[23.2.2021, 15:11:41] Server listening on: http://127.0.0.1:34239 for proxy connections
[23.2.2021, 15:11:41] *** SSH: checking proxy configuration
[23.2.2021, 15:11:41] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[23.2.2021, 15:11:41] Passed config: { connections:
[ { webname: 'fhem',
name: 'FHEM',
server: 'fornost',
filter: 'bridge_alexa_name=..*',
port: '40446',
uid: 999 } ],
sshproxy:
{ ssh: '/usr/bin/ssh',
description: 'FHEM Connector',
options:
[ '-i', '/opt/fhem/.ssh/id_rsa', '-p', 58824, 'fhem-va.fhem.de' ],
'bind-ip': '127.0.0.1',
server:
Server {
insecureHTTPParser: undefined,
_events: [Object],
_eventsCount: 3,
_maxListeners: undefined,
_connections: 0,
_handle: [TCP],
_usingWorkers: false,
_workers: [],
_unref: false,
allowHalfOpen: true,
pauseOnConnect: false,
httpAllowHalfOpen: false,
timeout: 0,
keepAliveTimeout: 5000,
maxHeadersCount: null,
headersTimeout: 40000,
_connectionKey: '4:127.0.0.1:0',
[Symbol(IncomingMessage)]: [Function],
[Symbol(ServerResponse)]: [Function],
[Symbol(asyncId)]: 97 } } }
[23.2.2021, 15:11:41] sshautoconf: SSH key seems to exist
[23.2.2021, 15:11:42] sshautoconf: Our SSH key is known at the reverse proxy, good!
[23.2.2021, 15:11:42] [FHEM] executing: http://fornost:40446/fhem?cmd=%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20general.interfaces.amazon.alexa_skill%3B%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_194516368220063&XHR=1
*** FHEM: connected
[23.2.2021, 15:11:42] [FHEM] got: 1 results
[23.2.2021, 15:11:42] [FHEM] house.groundfloor.office.lights.desk.0 is light
[23.2.2021, 15:11:42] [FHEM] house.groundfloor.office.lights.desk.0 has
[23.2.2021, 15:11:42] [FHEM] On [state;on,off]
[23.2.2021, 15:11:42] [FHEM] house.groundfloor.office.lights.desk.0 will not send proactive events
[23.2.2021, 15:11:42] [FHEM] house.groundfloor.office.lights.desk.0 uses ID: 600f17af-f33f-a67d-74e4-76bb4ee7038e4978
2021-02-23 15:11:42 caching: house.groundfloor.office.lights.desk.0-state: off
[23.2.2021, 15:11:42] BearerToken '...ne 1.' read from general.interfaces.amazon.alexa_skill
[23.2.2021, 15:11:42] sshautoconf: aborted with Trying to fetch alexadevice failed with SyntaxError: Unexpected token B in JSON at position 0
[23.2.2021, 15:11:42] *** SSH: proxy configuration failed: Trying to fetch alexadevice failed with SyntaxError: Unexpected token B in JSON at position 0
[23.2.2021, 15:11:43] Reading alexaFHEM.ProxyConnection set to error;; Trying to fetch alexadevice failed with SyntaxError: Unexpected token B in JSON at position 0
[23.2.2021, 15:11:43] [FHEM] executing: http://fornost:40446/fhem?cmd=%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20general.interfaces.amazon.alexa_skill%20alexaFHEM.ProxyConnection%20error%3B%3B%20Trying%20to%20fetch%20alexadevice%20failed%20with%20SyntaxError%3A%20Unexpected%20token%20B%20in%20JSON%20at%20position%200%3B%7B%24defs%7Bgeneral.interfaces.amazon.alexa_skill%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_194516368220063&XHR=1
Bareword "general" not allowed while "strict subs" in use at (eval 1689769) line 1.
{
"Arg":"general.interfaces.amazon.alexa_skill",
"Results": [
{
"Name":"general.interfaces.amazon.alexa_skill",
"PossibleSets":"add createDefaultConfig:noArg reload:noArg skillId start:noArg stop:noArg restart:noArg",
"PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 alexaMapping:textField-long alexaTypes:textField-long fhemIntents:textField-long articles prepositions echoRooms:textField-long persons:textField-long alexaConfirmationLevel:2,1,0 alexaStatusLevel:2,1 skillId:textField alexaFHEM-cmd alexaFHEM-config alexaFHEM-home alexaFHEM-log alexaFHEM-params alexaFHEM-auth alexaFHEM-host alexaFHEM-sshUser nrarchive disable:1,0 disabledForIntervals event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading ASC:0,1,2 ASC_AutoAstroModeEvening ASC_AutoAstroModeMorning ASC_BlockingTime_afterManual ASC_Down ASC_LockOut ASC_Mode_Down ASC_Mode_Up ASC_Pos_Reading ASC_Roommate_Device ASC_Roommate_Reading ASC_Shading_Direction ASC_Shading_Mode ASC_Shading_Pos ASC_ShuttersPlace ASC_Up ASC_Ventilate_Pos ASC_Ventilate_Window_Open ASC_WindowRec ASC_WindowRec_subType DbLogExclude DbLogInclude DbLogValueFn:textField-long HmIp3D HmIpKey HmIpSGTIN alarm_system_interior alarm_system_outer_shell alarm_system_perimeter alexaName alexaProactiveEvents:1,0 alexaRoom cmdIcon devStateIcon:textField-long devStateStyle genericDeviceType:security,ignore,switch,outlet,light,blind,thermometer,thermostat,contact,garage,window,lock,scene homebridgeMapping:textField-long icon installationRoom logging_bridge_Alias:textField-long logging_bridge_Defaults:textField-long logging_bridge_Disable:both,incoming,outgoing logging_bridge_Forward:all,none logging_bridge_Publish:textField-long logging_bridge_Subscribe:textField-long msgContactAudio msgContactLight msgContactMail msgContactPush msgContactScreen msgParams msgPriority msgRecipient msgRecipientAudio msgRecipientLight msgRecipientMail msgRecipientPush msgRecipientScreen msgRecipientText msgTitle msgTitleShrt msgType:text,push,mail,screen,light,audio,queue sortby webCmd webCmdLabel:textField-long widgetOverride alexa_bridge_name userattr",
"Internals": {
".FhemMetaInternals": "1",
"CFGFN": "",
"FD": "17",
"FUUID": "6034f151-f33f-a67d-4494-e141043b9e4a2680",
"FVERSION": "39_alexa.pm:0.216510/2020-04-12",
"LAST_START": "2021-02-23 15:11:38",
"LAST_STOP": "2021-02-23 15:11:38",
"NAME": "general.interfaces.amazon.alexa_skill",
"NOTIFYDEV": "global,global:npmjs.*alexa-fhem.*",
"NR": "11944",
"NTFY_ORDER": "50-general.interfaces.amazon.alexa_skill",
"PARTIAL": "",
"PID": "26797",
"STARTS": "12",
"STATE": "running /usr/local/bin/alexa-fhem",
"TYPE": "alexa",
"active": "0",
"currentlogfile": "./log/alexa-2021-02-23.log",
"logfile": "./log/alexa-%Y-%m-%d.log"
},
"Readings": {
"alexaFHEM": { "Value":"running /usr/local/bin/alexa-fhem", "Time":"2021-02-23 15:11:38" },
"alexaFHEM.ProxyConnection": { "Value":"error; Trying to fetch alexadevice failed with SyntaxError: Unexpected token B in JSON at position 0", "Time":"2021-02-23 15:11:43" },
"alexaFHEM.bearerToken": { [...REDACTED...] },
"alexaFHEM.skillRegKey": { "[...REDACTED...] }
},
"Attributes": {
"alexaFHEM-config": "./alexa-fhem.cfg",
"alexaFHEM-log": "./log/alexa-%Y-%m-%d.log",
"alexaMapping": "#Characteristic=<name>=<value>,...\nOn=verb=schalte,valueOn=an;ein,valueOff=aus,valueToggle=um\n\nBrightness=verb=stelle,property=helligkeit,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent\n\nHue=verb=stelle,valuePrefix=auf,values=rot:0;grün:128;blau:200\nHue=verb=färbe,values=rot:0;grün:120;blau:220\n\nSaturation=verb=stelle,property=sättigung,valuePrefix=auf,values=AMAZON.NUMBER\nSaturation=verb=sättige,values=AMAZON.NUMBER\n\nTargetPosition=verb=mach,articles=den;die,values=auf:100;zu:0\nTargetPosition=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent\n\nTargetTemperature=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=grad\n\nVolume:verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent\n\n#Weckzeit=verb=stelle,valuePrefix=auf;für,values=AMAZON.TIME,valueSuffix=uhr",
"alexaTypes": "#Type=<alias>[,<alias2>[,...]]\nlight=licht,lampen\nblind=rolladen,rolläden,jalousie,jalousien,rollo,rollos",
"devStateIcon": "stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop",
"echoRooms": "#<deviceId>=<room>\n",
"fhemIntents": "#IntentName=<sample utterance>\ngutenMorgen=guten morgen\nguteNacht=gute nacht",
"persons": "#<personId>=<name>\n",
"stateFormat": "alexaFHEM"
}
} ],
"totalResultsReturned":1
}
Bareword "general" not allowed while "strict subs" in use at (eval 1689770) line 1.
{$defs{general.interfaces.amazon.alexa_skill}->{"active"} = 1;;undef};
jsonlist2 general.interfaces.amazon.alexa_skill;
{$defs{general.interfaces.amazon.alexa_skill}->{"active"} = 0;;undef}
Zitathabridge setzte einen dummy mit dem gewünschten set
ein activity machte ein "echodevice" refresh, damit der letzte satz abgeholt wurde
ein weiteres activity reagierte auf reading "voice" eines echodevices und wusste somit welches gerät angesprochen wurde
Diese Daten zusammen wurden dann geparst und eine korrekte aktion ausgeführt
ZitatAuch wenn ich mehrere Geräte mit dem gleichen "alexaName" anlegeder Name muss doch eindeutig sein, also mindestens pro Gruppe? Wie soll Alexa das sonst auseinanderhalten...
Zitat von: MadMax-FHEM am 12 Dezember 2021, 21:15:56
Über Gruppen in der Alexa App.
Geräte und den entsprechenden Echo in dieselbe Gruppe=Raum und dann sollte das auch gehen.
Also: Alexa, schalte Licht etc. ein/aus dann passiert das im Raum/Gruppe in dem auch der Echo ist an den der Befehl ging.
Alexa, schalte Licht im Wohnzimmer ein/aus dann passiert das für die Geräte in der Gruppe Wohnzimmer...
...auch wenn der Befehl an einen anderen Echo ging.
So die Theorie...
Oder du lässt was du hast. Sollte doch egal sein, ob der auslösende dummy per ha-bridge oder per alexa-fhem Connector geschalten wird?
EDIT: der Name muss doch eindeutig sein, also mindestens pro Gruppe? Wie soll Alexa das sonst auseinanderhalten...
Gruß, Joachim
defmod Alexa_RoomCmd_Rollo dummy
attr Alexa_RoomCmd_Rollo alexaName Rollo;;Jalousie;;Beschattung
attr Alexa_RoomCmd_Rollo genericDeviceType blind
attr Alexa_RoomCmd_Rollo group Alexa Helper
attr Alexa_RoomCmd_Rollo room System
attr Alexa_RoomCmd_Rollo setList on off pct
setstate Alexa_RoomCmd_Rollo pct NaN
setstate Alexa_RoomCmd_Rollo 2021-12-12 22:41:26 state pct NaN
[12/12/2021, 22:41:26] [FHEM] Alexa_RoomCmd_Rollo: executing set cmd for TargetPosition with value NaN
[12/12/2021, 22:41:26] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=set%20Alexa_RoomCmd_Rollo%20pct%20NaN&fwcsrf=csrf_XXXXXXXXXX&XHR=1
Zitat von: Sedonion am 14 September 2022, 16:35:14
Hallo zusammen,
bisher nutzte ich fhem mit dem Connector und alexa-fhem als Docker Container.
Jetzt möchte ich alexa-fhem in einen eigenen Container verfrachten.
Das klappt auch. alexa-fhem findet auch den fhem Docker Container.
Aber der Connector sagt: alexa-fhem not installed. install with 'sudo npm install -g alexa-fhem'
Wie sage ich dem Connector, das alexa-fhem in einem anderen Container läuft?
Danke und Gruß
Marco
Zitat von: Omega am 20 Oktober 2022, 11:38:56
Ausgangssituation: eine FHEM-Installation im Haus, die mit meinem Amazon/Alexa-Account verbunden ist.
Funktioniert soweit auch alles sehr gut - danke dafür!
Nun zu meiner Frage (die ich stelle bevor ich evtl. eine funktionierende Installation beschädige):
Meine Frau hat einen eigenen Amazon/Alexa-Account, möchte aber über ihre Alexa(s) die gleichen Geräte im Haus bedienen können wie ich.
Kann ich ihren Account mit der FHEM-Installation mit dem gleichen Alexa_Proxy_Key verwenden, den ich für mich eingestellt habe?
LG
Holger