39_gassistant.pm (Google Assistant, Google Home)

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

Vorheriges Thema - Nächstes Thema

kadettilac89

Hallo,

ist es auch möglich in Fhem direkt auf Google MIni zuzugreifen? Gassistant ist aktiv. Möchte die laufenden Timer auslesen, und wenn welche aktiv sind diese stoppen sobald ich im Wohnzimmer TV ausschalte. Ausschalten per Fhem, nicht gassistant.

Es gibt die Api, (https://rithvikvibhu.github.io/GHLocalApi/#top) mit der man Get / Post absetzen kann. Bei manchen beomme ich 403 Forbidden. Wenn es schon etwas gibt muss ich mich nicht einlesen.

Danke schon mal.


dominik

Zitat von: kadettilac89 am 11 April 2020, 12:49:41
Hallo,

ist es auch möglich in Fhem direkt auf Google MIni zuzugreifen? Gassistant ist aktiv. Möchte die laufenden Timer auslesen, und wenn welche aktiv sind diese stoppen sobald ich im Wohnzimmer TV ausschalte. Ausschalten per Fhem, nicht gassistant.

Es gibt die Api, (https://rithvikvibhu.github.io/GHLocalApi/#top) mit der man Get / Post absetzen kann. Bei manchen beomme ich 403 Forbidden. Wenn es schon etwas gibt muss ich mich nicht einlesen.

Danke schon mal.



Nein, ich hatte mir die API auch schon mal angesehen und bei mir hat sie auch nicht funktioniert, daher habe ich es bleiben lassen.
Fuer Durchsagen kannst du das GOOGLECAST Modul nutzen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Update:
- Neue Geraetetypen: carbon_monoxide_detector, remotecontrol, settop (box), smoke_detector, tv, waterpurifier, watersoftener
- Neue Traits:

     - Volume (automatisch bei BOSEST, SamsungAV und wenn ein volume Reading vorhanden)
Hey Google, mach den Fernseher lauter/leiser
Hey Google, stelle das Wohnzimmer Radio auf 20 %.
Weitere Infos: https://developers.google.com/assistant/smarthome/traits/volume
Wenn jemand SONOS hat, bitte testen ob es funktioniert. Danke!

     - SensorState (fuer Filter Status, AirQuality, etc., Xiaomi WaterLeak Sensor wird unterstuetzt)
Weitere Infos: https://developers.google.com/assistant/smarthome/traits/sensorstate

     - EnergyStorage (alle Devices mit battery Reading werden erkannt)
Weitere Infos: https://developers.google.com/assistant/smarthome/traits/energystorage

     - LockUnlock (HM-SEC-KEY wird automatisch erkannt)
Weitere Infos: https://developers.google.com/assistant/smarthome/traits/lockunlock

     - Rotation (aktuell noch keine automatische Erkennung, da es auf Deutsch noch nicht gut funktioniert)
Weitere Infos: https://developers.google.com/assistant/smarthome/traits/rotation

- Support DoorBird (@Raudi, bitte testen)

Wenn ihr Geraete habt die die oberen Funktionalitaeten nutzen, dann gerne melden, damit ich diese automatisch integrieren kann!

In den naechsten Tagen werde ich TransportControl implementieren. Damit kann man Play, Pause, Next, ... verwenden.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

erotikbaer

Hi zusammen,
ich bin seit ewigkeiten am probieren gassistant fhem wieder zum laufen zu bekommen und ich verzweifel solangsam.
beim Versuch zu installieren bekomme ich jedesmal:
gmake: *** [ares.target.mk:220: Release/obj.target/ares/deps/grpc/third_party/cares/cares/ares__close_sockets.o] Error 1
gmake: Leaving directory '/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/build'
gyp ERR! build error
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:316:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System FreeBSD 11.3-RELEASE-p6
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-freebsd-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-freebsd-x64-unknown" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v79"
gyp ERR! cwd /usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc
gyp ERR! node -v v13.10.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-freebsd-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-freebsd-x64-unknown --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:316:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1026:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System FreeBSD 11.3-RELEASE-p6
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc
node-pre-gyp ERR! node -v v13.10.1
node-pre-gyp ERR! node-pre-gyp -v v0.14.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-freebsd-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-freebsd-x64-unknown --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.24.2 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.24.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-04-11T21_26_22_212Z-debug.log


hat irgendjemand eine Idee was ich tun kann?

gruß christian

dominik

Probier mal
npm uninstall -g grpc
npm uninstall -g gassistant-fhem
npm install -g gassistant-fhem --unsafe-perm

Was hast du für ein System?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

erotikbaer

Ok danke, probiere ich heute abend mal. Aber ich glaube dass war auch schon bei meinen Versuchen dabei :-)
Ist ein FreeNas/FreeBSD

Gruß Christian

Gesendet von meinem SM-N975F mit Tapatalk


dominik

Wenn es nicht geht, dann probier noch:
npm rebuild --build-from-source --unsafe-perm grpc
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Raudi

Vielen Dank für die schnelle Unterstützung. Geht leider noch nicht ganz mit dem Doorbird.

[12.4.2020, 17:10:31] GOOGLE MSG RECEIVED: {"msg":"LOG_ERROR","ts":1586704229942,"log":"failed to generateTraits for Tor, TypeError: mappings.OpenClose.values is not iterable"]

dominik

Zitat von: Raudi am 12 April 2020, 17:19:11
Vielen Dank für die schnelle Unterstützung. Geht leider noch nicht ganz mit dem Doorbird.

[12.4.2020, 17:10:31] GOOGLE MSG RECEIVED: {"msg":"LOG_ERROR","ts":1586704229942,"log":"failed to generateTraits for Tor, TypeError: mappings.OpenClose.values is not iterable"]


Danke für den Test, habe das Problem behoben. Bitte nochmals testen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

erotikbaer

hi,
also auch das hat leider nicht zum erfolg geführt...
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for grpc@1.24.2 and node@13.10.1 (node-v79 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node'
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/build'
gyp ERR! System FreeBSD 11.3-RELEASE-p6
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-freebsd-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-freebsd-x64-unknown" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v79"
gyp ERR! cwd /usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc
gyp ERR! node -v v13.10.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-freebsd-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-freebsd-x64-unknown --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:316:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1026:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System FreeBSD 11.3-RELEASE-p6
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc
node-pre-gyp ERR! node -v v13.10.1
node-pre-gyp ERR! node-pre-gyp -v v0.14.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-freebsd-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-freebsd-x64-unknown --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.24.2 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.24.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-04-12T19_46_29_760Z-debug.log


Hat denn irgendjemand gassistant-fhem in einer Freenas Jail zulaufen bzw. unter Freebsd?

Gruß Christian

dominik

Hast du die Befehle als root ausgeführt, das ist nämlich notwendig.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

erotikbaer

ja, habe extra eine neue jail aufgesetzt und fhem und co alles nur als root installiert. es gibt also aktuell keinen anderen user

dominik

#1722
Was kommt beim rebuild fuer ein Fehler?

node und npm sind in aktueller Version installiert?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Raudi

Doorbird läuft jetzt laut meinem Vater. Konnte es noch nicht selbst überprüfen, was wie geht, aber er konnte zumindest das Tor über die Sprache öffnen. Vielen Dank. Mal sehen, was da dann noch alles dazu kommt an Sachen die noch nicht ganz funktionieren. Ich bin mir aber sicher, dass eine kleine Spende seinen Weg zu dir finden wird.

dominik

Super, danke fuer die Rueckmeldung! Gerne koennen wir dann die restlichen Funktionen auch noch integrieren.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik