39_gassistant.pm (Google Assistant, Google Home)

Begonnen von dominik, 29 Januar 2019, 21:59:53

Vorheriges Thema - Nächstes Thema

Richard

#1290
Hello

I'm having problems getting started with gassistant.  I have a raspberry pi model B.  I've followed the install instructions but had to use a different npm install as my arm is 6.1.  I've installed and re-installed everything (I think); have updated fhem to the latest version; but still I don't get the login url. 

I can see that sync-rpc is not started, but don't know why or how to find out what to do to fix it.

Parts of console log:

gassistant-fhem
/usr/lib/node_modules/gassistant-fhem/node_modules/sync-rpc/lib/index.js:85
    throw new Error(
    ^

Error: Timed out waiting for sync-rpc server to start (it should respond with "pong" when sent "ping"):

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 127.0.0.1:40363
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)


    at waitForAlive (/usr/lib/node_modules/gassistant-fhem/node_modules/sync-rpc/lib/index.js:85:11)
    at start (/usr/lib/node_modules/gassistant-fhem/node_modules/sync-rpc/lib/index.js:41:3)
    at sendMessage (/usr/lib/node_modules/gassistant-fhem/node_modules/sync-rpc/lib/index.js:133:17)
    at createClient (/usr/lib/node_modules/gassistant-fhem/node_modules/sync-rpc/lib/index.js:173:27)
    at Object.<anonymous> (/usr/lib/node_modules/gassistant-fhem/node_modules/sync-request/lib/index.js:16:14)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
   
   
Raspberry Pi Model B

cat /proc/cpuinfo
processor       : 0
model name      : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
Features        : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2835
Revision        : 000e
Serial          : 00000000124d3b36

npm version
{ npm: '6.13.4',
  ares: '1.14.0',
  cldr: '29.0',
  http_parser: '2.8.1',
  icu: '57.1',
  modules: '57',
  nghttp2: '1.25.0',
  node: '8.11.1',
  openssl: '1.0.2l',
  tz: '2016b',
  unicode: '8.0',
  uv: '1.18.0',
  v8: '6.2.414.50',
  zlib: '1.2.8' }

cat /etc/debian_version
9.1

Many thanks

Richard

dominik

Die Unterstützung für danalock muss ich noch einbauen, kann ich nach Weihnachten machen.

Richard, have you tried installing node 13 with the official setup script?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Richard

#1292
Zitat von: dominik am 15 Dezember 2019, 12:24:17
Die Unterstützung für danalock muss ich noch einbauen, kann ich nach Weihnachten machen.

Richard, have you tried installing node 13 with the official setup script?

Thanks Dominik:
> curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -

## Installing the NodeSource Node.js 13.x repo...


## You appear to be running on ARMv6 hardware. Unfortunately this is not currently supported by the NodeSource Linux distributions. Please use the 'linux-armv6l' binary tarballs available directly from nodejs.org for Node.js 4 and later.

So I used this instead:
sudo apt install -y nodejs

Is this the likely source of my problem?

########### UPDATE

I've managed to upgrade to node 11.15 and have resolved this issue, but now looking at an issue with grpc... thanks for your help

dominik

You might want to try this
"How to install Node.JS and NPM on any Raspberry Pi" by Dani Dudas https://link.medium.com/OJhLdjplr2

And after that build grpc on your own, see the wiki FAQ for that.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

noname41

Zitat von: dominik am 15 Dezember 2019, 12:24:17
Die Unterstützung für danalock muss ich noch einbauen, kann ich nach Weihnachten machen.


Super Danke!

Richard

Zitat von: dominik am 15 Dezember 2019, 14:41:38
You might want to try this
"How to install Node.JS and NPM on any Raspberry Pi" by Dani Dudas https://link.medium.com/OJhLdjplr2

And after that build grpc on your own, see the wiki FAQ for that.
[/quote

Thanks for the pointers... I'm on with it now

diddle

Huhu,

ich hoffe, ich bin nicht nur zu doof, die Suche zu bedienen... aber ich versuche einen Dummy-Thermostaten zu bauen. Ich sehe ihn auch in der Homeapp, mit measure-temp und desired-temp. Einzig der kleine Button unten, wo man "Heizen" oder "Aus" wählen kann, funktioniert nicht.

Im Log sehe ich den Fehler
GOOGLE MSG RECEIVED: {"log":"Command action.devices.commands.ThermostatSetMode not configured for device Wz_Thermostat","msg":"LOG_ERROR","ts":1576514703754}

Was für ein setList fehlt ihm denn hier? ;-)

Gruß
Diddle.

amenomade

Meiner Meldung nach fehlt eher ein homeBridgeMapping für die entsprechende Aktion
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

SouzA

Hi,

ich versuche gerade die Version 2.3 zu installieren, oder hab es schon... Wie überprüfe ich das?
In FHEM wird mir nicht angezeigt, dass es eine Version 2.3 gibt.
Das update habe ich über die Konsole gemacht.
Da stand auch, dass 2.3 installiert wurde.
In fhem steht in den Readings aber immernoch 2.0.
Im log allerdings:
[16.12.2019, 18:42:19] Google Assistant FHEM Connect 2.3.0 started
[16.12.2019, 18:42:19] Fetching FHEM connections...
[16.12.2019, 18:42:19] [ghome] starting longpoll: http://127.0.0.1


Bis denn
SouzA
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

a_quadrat

Hallo,

ich habe auch gerade versucht Version 2.3 zu installieren. Jetzt startet der gassistant nicht mehr.

Im Log steht folgende Fehlermeldung:


Loading cli.js...
Loading version.js...
Loading server.js...
Loading user.js...
Loading logger.js...
Loading fhem.js...
Loading database.js...
Loading localserver.js...
Loading localhandleEXECUTE.js...
[2019-12-16 21:24:17] using ./gassistant-fhem.cfg
[2019-12-16 21:24:17] ---
[2019-12-16 21:24:17] config:
{"gassistant":{"description":"FHEM Connect"},"connections":[{"name":"FHEM","port":"8086","filter":"room=GoogleAssistant","webname":"fhem","server":"127.0.0.1"}]}

[2019-12-16 21:24:17] ---
[2019-12-16 21:24:17] Google Assistant FHEM Connect 2.3.0 started
[2019-12-16 21:24:17] Fetching FHEM connections...
[2019-12-16 21:24:17] [FHEM] starting longpoll: http://127.0.0.1:8086/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1576527857967
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE 0.0.0.0:3000
    at Server.setupListenHandle [as _listen2] (net.js:1286:14)
    at listenInCluster (net.js:1334:12)
    at doListen (net.js:1460:7)
    at process._tickCallback (internal/process/next_tick.js:63:19)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:11)
    at startup (internal/bootstrap/node.js:285:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
Emitted 'error' event at:
    at emitErrorNT (net.js:1313:8)
    at process._tickCallback (internal/process/next_tick.js:63:19)
    [... lines matching original stack trace ...]
    at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)


Aber die Steuerung per Sprache oder Home App funktioniert noch.
Was kann das Problem sein?

VG Andreas

eisenhauer1987

Zitat von: dominik am 15 Dezember 2019, 08:35:56
Kannst du bitte die Version 2.3.0 testen?

Bin jetzt dazu gekommen 2.3.0 zu installieren. Musste aber viele Abhängigkeiten selbst nach installieren. Das Verhalten ist aber absolut identisch.......Kein Connect

a_quadrat

Hi,

ich habe npm und node aktualisiert, aber der gassistant startet immer noch nicht. Jetzt lassen sich die Geräte auch aus der Home App nicht mehr steuern. Im Log steht, dass Port 3000 schon in Benutzung ist.


Loading cli.js...
Loading version.js...
Loading server.js...
Loading user.js...
Loading logger.js...
Loading fhem.js...
Loading database.js...
Loading localserver.js...
Loading localhandleEXECUTE.js...
[17.12.2019, 12:23:26] using ./gassistant-fhem.cfg
[17.12.2019, 12:23:26] ---
[17.12.2019, 12:23:26] config:
{"gassistant":{"description":"FHEM Connect"},"connections":[{"name":"FHEM","port":"8086","filter":"room=GoogleAssistant","webname":"fhem","server":"127.0.0.1"}]}

[17.12.2019, 12:23:26] ---
[17.12.2019, 12:23:26] Google Assistant FHEM Connect 2.3.0 started
[17.12.2019, 12:23:26] Fetching FHEM connections...
[17.12.2019, 12:23:26] [FHEM] starting longpoll: http://127.0.0.1:8086/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1576581806616
events.js:196
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use 0.0.0.0:3000
    at Server.setupListenHandle [as _listen2] (net.js:1308:16)
    at listenInCluster (net.js:1356:12)
    at doListen (net.js:1495:7)
    at processTicksAndRejections (internal/process/task_queues.js:85:21)
Emitted 'error' event on Server instance at:
    at emitErrorNT (net.js:1335:8)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  code: 'EADDRINUSE',
  errno: -98,
  syscall: 'listen',
  address: '0.0.0.0',
  port: 3000
}


Zitat von: eisenhauer1987 am 17 Dezember 2019, 15:21:55
Bin jetzt dazu gekommen 2.3.0 zu installieren. Musste aber viele Abhängigkeiten selbst nach installieren. Das Verhalten ist aber absolut identisch.......Kein Connect

Hast du das gleiche Problem?

VG Andreas

eisenhauer1987

Nein bei mir startet das ganze, geht aber nicht mehr auf connected und aktualisiert nicht die Geräte in der Home App

a_quadrat

Hi,

bei mir funktioniert es wieder, komischerweise lief der ghome service noch. Ich dachte, dass ich den vor einem halben Jahr deaktiviert habe - war scheinbar nicht der Fall. Nur merkwürdig, dass es bis jetzt funktioniert hatte.

VG Andreas

eisenhauer1987

Ich hab noch mal alles gelöscht und 2.0.0 installiert, jetzt läuft es wieder