39_gassistant.pm (Google Assistant, Google Home)

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

Vorheriges Thema - Nächstes Thema

raktenemo

Hallo,
ich habe mich an der Anleitung im Wiki gerichtet. Leider bekomme ich gassistant-fhem nicht zum laufen ...

Was mache ich falsch?


fhem-2019-02.log
2019.02.13 17:25:47 3: gassistant: starting
2019.02.13 17:25:47 3: gassistant: using logfile: ./log/gassistant-2019-02-13.log
2019.02.13 17:25:48 3: gassistant: read: end of file reached while sysread
2019.02.13 17:25:48 3: gassistant: stopped
2019.02.13 17:26:08 2: gassistant: starting gassistant-fhem: /usr/local/bin/gassistant-fhem -c ./gassistant-fhem.cfg
2019.02.13 17:26:08 3: gassistant: starting
2019.02.13 17:26:08 3: gassistant: using logfile: ./log/gassistant-2019-02-13.log
2019.02.13 17:26:09 3: gassistant: read: end of file reached while sysread
2019.02.13 17:26:09 3: gassistant: stopped


gassistant-2019-02-13.log
Error: Cannot find module 'firebase/app'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/gassistant-fhem/lib/database.js:3:18)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)

a_quadrat

Hallo zusammen,

ich teste gerade meine RGBW, sind über Wifilight eingebunden.
Der Farbwechsel funktioniert, danach geht der RGBW Streifen wieder aus. Im Log sieht man, dass die Farbe korrekt gesetzt wird und danach die Saturation aber auf 1 gesetzt wird. Hat jemand das gleiche Problem?

VG Andreas


GOOGLE MSG RECEIVED: {"cmd":"set Kueche_Backlight HSV 240,100,100","connection":"http://127.0.0.1:8086/fhem","id":"9358140188390103026","msg":"EXECUTE"}
**** Received firestore2fhem: {"cmd":"set Kueche_Backlight HSV 240,100,100","connection":"http://127.0.0.1:8086/fhem","id":"9358140188390103026","msg":"EXECUTE"}
  executing: http://127.0.0.1:8086/fhem?cmd=set%20Kueche_Backlight%20HSV%20240%2C100%2C100&XHR=1
GOOGLE MSG RECEIVED: {"cmd":"set Kueche_Backlight HSV 240,100,100","connection":"http://127.0.0.1:8086/fhem","id":"9358140188390103026","msg":"EXECUTE"}
**** Received firestore2fhem: {"cmd":"set Kueche_Backlight HSV 240,100,100","connection":"http://127.0.0.1:8086/fhem","id":"9358140188390103026","msg":"EXECUTE"}
  executing: http://127.0.0.1:8086/fhem?cmd=set%20Kueche_Backlight%20HSV%20240%2C100%2C100&XHR=1
  2019-02-13 17:57:55 caching: Kueche_Backlight-hue: 240
GOOGLE MSG RECEIVED: {"cmd":"set Kueche_Backlight HSV 240,1,100","connection":"http://127.0.0.1:8086/fhem","id":"9358140188390103026","msg":"EXECUTE"}
**** Received firestore2fhem: {"cmd":"set Kueche_Backlight HSV 240,1,100","connection":"http://127.0.0.1:8086/fhem","id":"9358140188390103026","msg":"EXECUTE"}
  executing: http://127.0.0.1:8086/fhem?cmd=set%20Kueche_Backlight%20HSV%20240%2C1%2C100&XHR=1
  2019-02-13 17:57:56 caching: Kueche_Backlight-saturation: 0 

dominik

Login URL Bug ist mit gassistant-fhem 1.0.20 behoben. Damit sollte es zu keinen weiteren Problemen beim Login kommen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: raktenemo am 13 Februar 2019, 17:29:13
Hallo,
ich habe mich an der Anleitung im Wiki gerichtet. Leider bekomme ich gassistant-fhem nicht zum laufen ...

Was mache ich falsch?


fhem-2019-02.log
2019.02.13 17:25:47 3: gassistant: starting
2019.02.13 17:25:47 3: gassistant: using logfile: ./log/gassistant-2019-02-13.log
2019.02.13 17:25:48 3: gassistant: read: end of file reached while sysread
2019.02.13 17:25:48 3: gassistant: stopped
2019.02.13 17:26:08 2: gassistant: starting gassistant-fhem: /usr/local/bin/gassistant-fhem -c ./gassistant-fhem.cfg
2019.02.13 17:26:08 3: gassistant: starting
2019.02.13 17:26:08 3: gassistant: using logfile: ./log/gassistant-2019-02-13.log
2019.02.13 17:26:09 3: gassistant: read: end of file reached while sysread
2019.02.13 17:26:09 3: gassistant: stopped


gassistant-2019-02-13.log
Error: Cannot find module 'firebase/app'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/gassistant-fhem/lib/database.js:3:18)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)


Hast du es mit sudo npm install -g gassistant-fhem --unsafe-perm installiert? Wenn ja, mach mal den gleichen Befehl nur mit uninstall und dann nochmals install. Bei dir fehlt eine Library die automatisch installiert werden sollte.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: anco1726 am 13 Februar 2019, 18:15:59
Hallo zusammen,

ich teste gerade meine RGBW, sind über Wifilight eingebunden.
Der Farbwechsel funktioniert, danach geht der RGBW Streifen wieder aus. Im Log sieht man, dass die Farbe korrekt gesetzt wird und danach die Saturation aber auf 1 gesetzt wird. Hat jemand das gleiche Problem?

VG Andreas


GOOGLE MSG RECEIVED: {"cmd":"set Kueche_Backlight HSV 240,100,100","connection":"http://127.0.0.1:8086/fhem","id":"9358140188390103026","msg":"EXECUTE"}
**** Received firestore2fhem: {"cmd":"set Kueche_Backlight HSV 240,100,100","connection":"http://127.0.0.1:8086/fhem","id":"9358140188390103026","msg":"EXECUTE"}
  executing: http://127.0.0.1:8086/fhem?cmd=set%20Kueche_Backlight%20HSV%20240%2C100%2C100&XHR=1
GOOGLE MSG RECEIVED: {"cmd":"set Kueche_Backlight HSV 240,100,100","connection":"http://127.0.0.1:8086/fhem","id":"9358140188390103026","msg":"EXECUTE"}
**** Received firestore2fhem: {"cmd":"set Kueche_Backlight HSV 240,100,100","connection":"http://127.0.0.1:8086/fhem","id":"9358140188390103026","msg":"EXECUTE"}
  executing: http://127.0.0.1:8086/fhem?cmd=set%20Kueche_Backlight%20HSV%20240%2C100%2C100&XHR=1
  2019-02-13 17:57:55 caching: Kueche_Backlight-hue: 240
GOOGLE MSG RECEIVED: {"cmd":"set Kueche_Backlight HSV 240,1,100","connection":"http://127.0.0.1:8086/fhem","id":"9358140188390103026","msg":"EXECUTE"}
**** Received firestore2fhem: {"cmd":"set Kueche_Backlight HSV 240,1,100","connection":"http://127.0.0.1:8086/fhem","id":"9358140188390103026","msg":"EXECUTE"}
  executing: http://127.0.0.1:8086/fhem?cmd=set%20Kueche_Backlight%20HSV%20240%2C1%2C100&XHR=1
  2019-02-13 17:57:56 caching: Kueche_Backlight-saturation: 0 


Bitte WifiLight nochmals testen. Du brauchst nur ein 'reload' machen und dann paar Minuten warten.

Ich habe es nun auf RGB geaendert, das sollte korrekt klappen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

a_quadrat

Danke, aber es funktioniert noch nicht. Für RGB wird der Hex Code benötigt.

dominik

Den habe ich eigentlich auch verwendet. Was kommt im Log an? Kannst du mir bitte noch Beispielwerte vom Reading und Set command posten?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

a_quadrat

Der Log sieht so aus:

GOOGLE MSG RECEIVED: {"cmd":"set Kueche_Backlight RGB 255","connection":"http://127.0.0.1:8086/fhem","id":"14576175511029337735","msg":"EXECUTE"}
**** Received firestore2fhem: {"cmd":"set Kueche_Backlight RGB 255","connection":"http://127.0.0.1:8086/fhem","id":"14576175511029337735","msg":"EXECUTE"}
  executing: http://127.0.0.1:8086/fhem?cmd=set%20Kueche_Backlight%20RGB%20255&XHR=1

a_quadrat

Der set Befehl kann so aus sehen:


set Kueche_Backlight RGB 3300FF
set Kueche_Backlight HSV 251,100,100
[code]


hermann1514

Huhu,
damit die Geräte den richtigen Räumen zugeordnet werden können, sollte ja das Attribut "realRoom" genutzt werden und dieses wird nur beim initialen Sync gesetzt.

Wie mache ich dass denn, wenn ich schon Geräte gesynct habe? Wie kann ich einen Initialen Sync erzwingen?
Und was ist mit Räumen die später dazu kommen?

Gruß
Hermann

Tabu



Zitat von: hermann1514 am 14 Februar 2019, 15:10:13
Wie mache ich dass denn, wenn ich schon Geräte gesynct habe? Wie kann ich einen Initialen Sync erzwingen?
Und was ist mit Räumen die später dazu kommen?


Ein einfaches set reload sollte reichen. Ggf ein paar Minuten warten


Gesendet von meinem Pixel mit Tapatalk


dominik

Zitat von: anco1726 am 14 Februar 2019, 10:10:01
Der set Befehl kann so aus sehen:


set Kueche_Backlight RGB 3300FF
set Kueche_Backlight HSV 251,100,100
[code]



Danke, bitte nochmals ein reload machen und paar Minuten warten. Danach sollte es mit RGB klappen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: hermann1514 am 14 Februar 2019, 15:10:13
Huhu,
damit die Geräte den richtigen Räumen zugeordnet werden können, sollte ja das Attribut "realRoom" genutzt werden und dieses wird nur beim initialen Sync gesetzt.

Wie mache ich dass denn, wenn ich schon Geräte gesynct habe? Wie kann ich einen Initialen Sync erzwingen?
Und was ist mit Räumen die später dazu kommen?

Gruß
Hermann

Die Geraete werden nur beim ERSTEN Sync in realRoom verschoben. Bei einem nachtraeglichen Sync verarbeitet Google das Attribut nicht mehr. Du musst also ein Account unlink, dann bitte paar Minuten warten und dann ein neuen Account link in der Home App machen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

a_quadrat

ZitatDanke, bitte nochmals ein reload machen und paar Minuten warten. Danach sollte es mit RGB klappen.

Danke, jetzt funktioniert es.

lukasdurmich

Hallo,
ich habe jetzt seit 2 Tagen probiert meine FHEM-Geräte in die Google Home App zu bekommen - ohne erfolg.


Ich bekomme den "[test] FHEM Connector beta" in der Home app angezeigt. Wenn ich ihn anklicke, geht auch die Loginseite von FHEM Connect auf.

Ich klicke auf "Log in with Google" - genau wie vorher über den Login link in FHEM.
Ein Popup erscheint mit der Meldung der Account würde verknüpft - und dann lande ich wieder auf der Einrichtungsseite (neue/bereits vorhandene Geräte hinzufügen)

Der Dienst ist danach nicht verknüpft...

Hat jemand einen Tipp für mich ???

[15.2.2019, 11:37:58] ---
[15.2.2019, 11:37:58] Google Assistant FHEM Connect 1.0.20 started
[15.2.2019, 11:37:58] Fetching FHEM connections...
[15.2.2019, 11:37:58] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1550227078953
[15.2.2019, 11:38:00] [FHEM] Checking devices and attributes...
  executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=csrf_475047397450849&XHR=1
  executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dgassistant&fwcsrf=csrf_475047397450849&XHR=1
[15.2.2019, 11:38:00] [FHEM] FHEM Google Assistant device detected: gassistant
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-version%201.0.20&fwcsrf=csrf_475047397450849&XHR=1
  executing: http://127.0.0.1:8083/fhem?cmd=set%20gassistant%20loginURL%20https%3A%2F%2Ffhemconnector.eu.auth0.com%2Fauthorize%3Faudience%3Dhttps%3A%2F%2Feurope-west1-fhem-ga-connector.cloudfunctions.net%2F%26scope%3Doffline_access%2520openid%2520profile%26response_type%3Dcode%26client_id%3DEI0TI2Y0W1743Ico53Nvsg1FsmoZniCC%26code_challenge%3DawzaUsXutnq1PWFSVPbJZVzoYEJif5XFxWbGj4uDO0g%26code_challenge_method%3DS256%26redirect_uri%3Dhttps%3A%2F%2Feurope-west1-fhem-ga-connector.cloudfunctions.net%2Fcodelanding%2Fstart&fwcsrf=csrf_475047397450849&XHR=1
[15.2.2019, 11:38:01] [FHEM] Get refresh token...
  executing: http://127.0.0.1:8083/fhem?cmd=get%20gassistant%20refreshToken&fwcsrf=csrf_475047397450849&XHR=1
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-connection%20connecting...&fwcsrf=csrf_475047397450849&XHR=1
[15.2.2019, 11:38:01] [FHEM] Found refresh token in reading
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-versionAvailable%201.0.20&fwcsrf=csrf_475047397450849&XHR=1
Refresh tokens finished. Next refresh in 86400 seconds.
[15.2.2019, 11:38:16] [FHEM] refreshAllTokens executed
[15.2.2019, 11:38:16] [FHEM] Fetching FHEM devices...
[15.2.2019, 11:38:16] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=GoogleAssistant&fwcsrf=csrf_475047397450849&XHR=1
[15.2.2019, 11:38:17] [FHEM] start connection executed
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-lasterror%20none&fwcsrf=csrf_475047397450849&XHR=1
(node:543) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
[15.2.2019, 11:38:20] [FHEM] got: 4 results
GOOGLE MSG RECEIVED: {"featurelevel":1,"msg":"UPDATE_SYNCFEATURELEVEL"}
**** Received firestore2fhem: {"featurelevel":1,"msg":"UPDATE_SYNCFEATURELEVEL"}
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-usedFeatureLevel%201&fwcsrf=csrf_475047397450849&XHR=1
GOOGLE MSG RECEIVED: {"id":"13222870401709164999","msg":"RELOAD_DEVICES"}
**** Received firestore2fhem: {"id":"13222870401709164999","msg":"RELOAD_DEVICES"}
GOOGLE MSG RECEIVED: {"id":"13222870401709164999","msg":"RELOAD_DEVICES"}
**** Received firestore2fhem: {"id":"13222870401709164999","msg":"RELOAD_DEVICES"}
**** SERVER FeatureLevel: {"featurelevel":1,"changelog":" - support KNX dpt1.001, dpt5.001"}
**** SYNC   FeatureLevel: {"featurelevel":1}
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-connection%20connected&fwcsrf=csrf_475047397450849&XHR=1
SYNC UPDATE RECEIVED: {"disconnected":0,"featurelevel":1,"syncactive":0}
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-connection%20connecting...&fwcsrf=csrf_475047397450849&XHR=1
  executing: http://127.0.0.1:8083/fhem?cmd=set%20gassistant%20refreshToken%20yT-ojTuYRYMIN9NrlJHB3NGxLH_dlmD1mu1pukiJLO5z_&fwcsrf=csrf_475047397450849&XHR=1
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-uid%20google-oauth2%7C117016999596567945511&fwcsrf=csrf_475047397450849&XHR=1
[15.2.2019, 11:38:51] [FHEM] Fetching FHEM devices...
[15.2.2019, 11:38:51] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=GoogleAssistant&fwcsrf=csrf_475047397450849&XHR=1
[15.2.2019, 11:38:53] [FHEM] got: 4 results
**** SERVER FeatureLevel: {"featurelevel":1,"changelog":" - support KNX dpt1.001, dpt5.001"}
**** SYNC   FeatureLevel: {"featurelevel":1}
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-connection%20connected&fwcsrf=csrf_475047397450849&XHR=1
SYNC UPDATE RECEIVED: {"disconnected":0,"featurelevel":1,"syncactive":1}
GOOGLE MSG RECEIVED: {"id":"2350388451306131780","msg":"RELOAD_DEVICES"}
**** Received firestore2fhem: {"id":"2350388451306131780","msg":"RELOAD_DEVICES"}
GOOGLE MSG RECEIVED: {"id":"2350388451306131780","msg":"RELOAD_DEVICES"}
**** Received firestore2fhem: {"id":"2350388451306131780","msg":"RELOAD_DEVICES"}
SYNC UPDATE RECEIVED: {"disconnected":0,"featurelevel":1,"syncactive":0}
GOOGLE MSG RECEIVED: {"featurelevel":1,"msg":"UPDATE_SYNCFEATURELEVEL"}
**** Received firestore2fhem: {"featurelevel":1,"msg":"UPDATE_SYNCFEATURELEVEL"}
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-usedFeatureLevel%201&fwcsrf=csrf_475047397450849&XHR=1
GOOGLE MSG RECEIVED: {"featurelevel":1,"msg":"UPDATE_SYNCFEATURELEVEL"}
**** Received firestore2fhem: {"featurelevel":1,"msg":"UPDATE_SYNCFEATURELEVEL"}
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-usedFeatureLevel%201&fwcsrf=csrf_475047397450849&XHR=1
SYNC UPDATE RECEIVED: {"disconnected":0,"featurelevel":1,"syncactive":1}
GOOGLE MSG RECEIVED: {"id":"8669293800727143203","msg":"RELOAD_DEVICES"}
**** Received firestore2fhem: {"id":"8669293800727143203","msg":"RELOAD_DEVICES"}
GOOGLE MSG RECEIVED: {"id":"8669293800727143203","msg":"RELOAD_DEVICES"}
**** Received firestore2fhem: {"id":"8669293800727143203","msg":"RELOAD_DEVICES"}
SYNC UPDATE RECEIVED: {"disconnected":0,"featurelevel":1,"syncactive":0}
GOOGLE MSG RECEIVED: {"featurelevel":1,"msg":"UPDATE_SYNCFEATURELEVEL"}
**** Received firestore2fhem: {"featurelevel":1,"msg":"UPDATE_SYNCFEATURELEVEL"}
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-usedFeatureLevel%201&fwcsrf=csrf_475047397450849&XHR=1
GOOGLE MSG RECEIVED: {"featurelevel":1,"msg":"UPDATE_SYNCFEATURELEVEL"}
**** Received firestore2fhem: {"featurelevel":1,"msg":"UPDATE_SYNCFEATURELEVEL"}
  executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-usedFeatureLevel%201&fwcsrf=csrf_475047397450849&XHR=1