39_gassistant.pm (Google Assistant, Google Home)

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

Vorheriges Thema - Nächstes Thema

eisman

Zitat von: Gisbert am 20 November 2022, 17:38:10
Hallo misux,
danke für deine Antwort.
Leider ist es aber so, dass ich die Daikin-Klimaanlage nicht in Fhem hineinbekomme, weil der Hersteller eine zuvor funktionierende Lösung (es gibt ein Fhem-Modul) nicht mehr zulässt.

Viele Grüße Gisbert

hi,


bei mir geht die Klima....


defmod Daikin HVAC_DaikinAC 192.168.1.37
attr Daikin devStateIcon off:control_standby@gray:on on:frost@blue:off
attr Daikin fp_M8EGL 19,1071,0,Daikin,
attr Daikin group Klimaanlage
attr Daikin icon sani_heating_heatpump@blue
attr Daikin interval 60
attr Daikin interval_powered 10
attr Daikin pwrconsumption 1
attr Daikin room Heizung,Schlafzimmer
attr Daikin stateFormat power
attr Daikin webCmd :

setstate Daikin off
setstate Daikin 2022-09-13 23:04:27 cmpfreq 0
setstate Daikin 2022-09-13 23:04:27 dh1 AUTO
setstate Daikin 2022-09-13 23:04:27 dh3 0


jedenfalls bis jetzt

mfg
1x FHEM Debian, Homematic,ZigBee,FS20 / 1X Raspberry, ConBee / 5x ESP
1x FHEM Debian, Homematic,ZigBee         / 1X Raspberry, ConBee / 5x ESP
1x FHEM Debian,MQTT                               / 1X Raspberry, i2c,onewire,gpio
1x auf Windows 2012 Hyper-V-S

Gisbert

Hallo eisman,

was hat es mit diesem Attribut auf sich:
attr Daikin fp_M8EGL 19,1071,0,Daikin,
Bis auf dieses Attribut hab ich die Definition benutzt, es kommen aber keine Readings rein.

Bei Neugeräten gibt es anscheinend ein bisher unüberwindbares Problem: https://forum.fhem.de/index.php/topic,109562.msg1244865.html#msg1244865
ZitatAber das ist leider die ,,alte" Variante für die die Controller direkt über Port 80 ansprechbar sein müssen. Das haben sie jedoch bei den neuen Versionen nun deaktiviert (was aktuell zu viel Frust bei den Smarthome Nutzern führt).

Ich hoffe Daikin besinnt sich da noch eines Besseren. Mit dieser Cloud-Einbahnstraße erzwingt man sich halt die Kundendaten - oder man kann halt die teuer bezahlte Online-Funktion nicht nutzen. Pech gehabt lieber Kunde

Viele Grüße Gisbert
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY

eisman

Hi,

sorry war gestern schon weg,

>>attr Daikin fp_M8EGL 19,1071,0,Daikin,<<
das ist die anzeige auf dem floorplan....

meine anlagen sind im Sommer gekauft, also noch kein Jahr alt.
vielleicht ist hier auch noch eine alte Firmware drauf.....

Firmware ist 1.2.54 laut Android-app

mfg
1x FHEM Debian, Homematic,ZigBee,FS20 / 1X Raspberry, ConBee / 5x ESP
1x FHEM Debian, Homematic,ZigBee         / 1X Raspberry, ConBee / 5x ESP
1x FHEM Debian,MQTT                               / 1X Raspberry, i2c,onewire,gpio
1x auf Windows 2012 Hyper-V-S

Gisbert

Hallo eisman,

meine Android-App heißt ONECTA und hat die App-Version 3.9.3-16181 (30900020) - welche App benutzt du?
Gekauft hab ich die Anlage ebenfalls im Sommer - offensichtlich neuer als deine und damit leider unbrauchbar, ein Elend.

Viele Grüße Gisbert
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY

misux

Zitat von: misux am 14 November 2022, 21:19:40
Habe so einige ausprobiert.. Ohne Attribute bekomme ich auch einen Sensor, aber ohne Temperatur sondern nur mit dem Sensornamen.
Sämtliche anderen Attribute liefern maximal einen Thermostat der ja keiner ist...

Hat denn niemand die Teile in der Benutzung?

Hmmm...  :'(

ZUdem schaffe ich es nict meine HM Tür und Fenstersensoren einzubinden... Sie werden zwar erkannt, aber leider zeigen sie nicht den Status Open/Closed an...


Hat denn niemand eine Idee?

x86

Hallo zusammen,

erstmal Danke an dominik für dieses tolle Modul. Macht richtig Spaß!

Ich hätte einen Verbesserungsvorschlag: mir ist aufgefallen, dass - egal, welches Logfile man als Attribut gassistantFHEM-log definiert - immer zusätzlich noch ein Logfile nach dem Schema ./log/gassistant-%Y-%m-%d.log angelegt wird.

Ich habe zum Beispiel das Logfile um den Tag hinten gekürzt, also nur .....-%m, um nur ein Logfile pro Monat zu haben, nicht pro Tag.

Dennoch erscheint bei mir jeden Tag ein (leeres) Logfile mit dem Namen z.B. gassistant-2022-12-07.log (neben meiner eigenlichen, korrekt geschriebenen und anwachsenden gassistant-2022-12.log).

Nach kurzer Analyse führe ich den Fehler darauf zurück, dass in der 39_gassistant.pm in Zeile 89ff folgendes steht:

  if( $attr{global}{logdir} ) {
    CommandAttr(undef, "$name gassistantFHEM-log %L/gassistant-%Y-%m-%d.log") if( !AttrVal($name, 'gassistantFHEM-log', undef ) );
  } else {
    CommandAttr(undef, "$name gassistantFHEM-log ./log/gassistant-%Y-%m-%d.log") if( !AttrVal($name, 'gassistantFHEM-log', undef ) );
  }


Richtig müsste meines Erachtens aber sein

  if( $attr{global}{logdir} ) {
    CommandAttr(undef, "$name gassistantFHEM-log %L/gassistant-%Y-%m-%d.log") if( AttrVal($name, 'gassistantFHEM-log', undef ) );
  } else {
    CommandAttr(undef, "$name gassistantFHEM-log ./log/gassistant-%Y-%m-%d.log") if( AttrVal($name, 'gassistantFHEM-log', undef ) );
  }


also ohne den Not-Operator (die im Original vorhandenen Ausrufezeichen) vor dem AttrVal. So funktioniert es bei mir jedenfalls korrekt.

Kann das jemand (vielleicht sogar dominik) bestätigen, oder bin ich hier auf dem komplett falschen Dampfer und es liegt an was anderem?

Das File mit dem (vor der Code-Änderung) unveränderbaren Namen (mit dem zusätzlichen -%d) wurde jedenfalls bei mir immer wieder angelegt, und zwar über ein - bei jedem Start des gassistant-Moduls neu angelegtes - temporäres FileLog (definiert als /log/gassistant-%Y-%m.log fakelog durch das Perl-Modul).

Korrigiert mich wie gesagt, wenn ich auf dem Holzweg bin.

Viele Grüße & danke nochmal!
x86
FHEM auf Raspberry Pi 1 Model B
SIGNALduino (CC1101), 6 IT-Steckdosen/Fernbedienungen, 4 433-MHz-Temperatursensoren, 6 tuya-Bulbs, 5 Shelly 2.5 Rolladenaktoren, 1 Comet DECT Heizungsaktor, tasmota IR, SamsungAV, HomeConnect, Google Assistant, FTUI, Wetter- und Fahrplandaten = 220 defines

Bloona

#2916
Hallo,
ich bräuchte mal Hilfe: Ich erhalte in gassistant den "gassistant-fhem-lastServerError" genericDeviceType ContactSensor not supported in gassistant-fhem
Tatsächlich gab es einige Kontakt-Sensoren, die einen "gassistantName" hatten, diese sind aber nun bereinigt. Solange ich den Fehler im Log nicht eliminieren kann scheitert das Hinzufügen vom FHEM in der Google Home App.

Hat jemand einen Tipp für mich, welches Device hier noch betroffen sein könnte?

mcsurfi

Zitat von: misux am 14 November 2022, 21:19:40
Habe so einige ausprobiert.. Ohne Attribute bekomme ich auch einen Sensor, aber ohne Temperatur sondern nur mit dem Sensornamen.
Sämtliche anderen Attribute liefern maximal einen Thermostat der ja keiner ist...

Hat denn niemand die Teile in der Benutzung?

Hmmm...  :'(

Hi

bist du bei der Konfiguration weiter gekommen. Auch bei mir wird nur die Feuchtigkeit angezeigt. Die Temperatur bekomme ich nicht in die Google Home App egal was ich einstelle.

Gruss

misux

#2918
Zitat von: mcsurfi am 11 Dezember 2022, 08:08:53
Hi

bist du bei der Konfiguration weiter gekommen. Auch bei mir wird nur die Feuchtigkeit angezeigt. Die Temperatur bekomme ich nicht in die Google Home App egal was ich einstelle.

Gruss

Hi

nein leider nicht... Habe alles was mir in den Sinn gekommen ist ausprobiert aber ohne Erfolg. Selbst ein Dummy mit nur einem Reading temperature erkennt er automatisch als Thermostat und wenn man genericDeviceType thermometer setzt wird auch Thermostat angezeigt...

Das ist frustrierend

Irgendwie kann ich mir nicht vorstellen das wir die einzigen sind das dieses Problem haben mut den Sensoren...

Naja... Schade.

misux

Zitat von: Bloona am 07 Dezember 2022, 22:58:00
Hallo,
ich bräuchte mal Hilfe: Ich erhalte in gassistant den "gassistant-fhem-lastServerError" genericDeviceType ContactSensor not supported in gassistant-fhem
Tatsächlich gab es einige Kontakt-Sensoren, die einen "gassistantName" hatten, diese sind aber nun bereinigt. Solange ich den Fehler im Log nicht eliminieren kann scheitert das Hinzufügen vom FHEM in der Google Home App.

Hat jemand einen Tipp für mich, welches Device hier noch betroffen sein könnte?

Das kann ja nur ein Device im Room gassistant welcher das Attribit hat...
Da wir aber diene Konfiguration weder sehen noch kennen wird eine Eingrenzung des Problems sehr schwer werden...

Superposchi

#2920
Ich bekomme meine Google-Nest-Lautsprecher seit dem Umzug auf ein neues NAS und einen neuen Fhem-Server nicht mehr ans laufen.
Die Lautsprecher zeigen immer an, das der Python-Server offline ist.

List eines Nest-Device:
Internals:
   DEF        googlecast Schlafzimmerlautsprecher
   FHEMPYTYPE googlecast
   FUUID      613889b8-f33f-6c14-5005-e4f5b9e84b94f6e6
   FVERSION   10_PythonModule.pm:0.182830/2019-01-16
   IODev      local_pybinding
   NAME       Schlafzimmerlautsprecher
   NR         181
   PYTHONTYPE googlecast
   STATE      Python server offline
   TYPE       PythonModule
   eventCount 196
   READINGS:
     2021-09-08 12:16:40   Favoriten       RTL Radio Hits, Duo Mix, Mayans MC, New Orleans Jazz and Blues, WDR2
     2021-09-22 11:37:33   Wohnzimmerlautsprecher volume_saved 50
     2022-10-08 23:53:28   app_id         
     2022-03-24 21:51:42   cast_type       audio
     2022-10-09 03:31:21   connection      connected
     2022-10-08 23:53:28   display_name   
     2022-03-03 23:12:41   icon_url       
     2021-09-08 12:03:04   ignore_cec      0
     2022-03-24 21:51:42   is_active_input
     2022-03-24 21:51:42   is_stand_by     
     2021-12-15 19:07:07   link            https://open.spotify.com/playlist/3xzEPUkHHlSjy30z8XLSX3
     2022-03-03 23:12:41   mediaAlbum     
     2022-03-03 23:12:41   mediaAlbumArtist
     2022-03-03 23:12:41   mediaArtist     
     2022-10-08 23:53:27   mediaContentId 
     2022-10-08 23:53:27   mediaContentType
     2022-10-08 23:48:27   mediaCurrentPosPercent
     2022-10-08 23:48:27   mediaCurrentPosition
     2022-10-08 23:53:27   mediaDuration   
     2022-02-17 16:58:58   mediaImageHeight
     2022-02-17 16:58:58   mediaImageUrl   
     2022-02-17 16:58:58   mediaImageWidth
     2022-10-08 23:53:27   mediaPlayerState UNKNOWN
     2022-10-08 23:53:27   mediaStreamType UNKNOWN
     2022-03-03 23:12:41   mediaTitle     
     2021-09-08 12:03:04   model_name      Google Nest Mini
     2021-09-08 12:03:04   mute            0
     2021-09-08 12:03:04   name            Schlafzimmerlautsprecher
     2022-10-08 23:53:28   session_id     
     2022-10-08 11:40:06   spotify_login   <html><a href="https://accounts.spotify.com/authorize?client_id=e92855a009e74eb69ba6609d3bfd7d96&response_type=code&redirect_uri=https%3A%2F%2Feurope-west1-fhem-ga-connector.cloudfunctions.net%2Fcodelanding%2Fstart&code_challenge_method=S256&code_challenge=RuktlchcONFmhrf0ukvp6x0SniI2rsupoNbdE2G0jtk&scope=user-read-recently-played+user-top-read+user-read-playback-position+user-read-playback-state+user-modify-playback-state+user-read-currently-playing+streaming+playlist-read-private+playlist-read-collaborative+user-follow-read+user-library-read+user-read-email+user-read-private" target="_blank">Connect Spotify account (new window/tab)</a><br></html>
     2022-10-08 11:40:07   spotify_user    *******
     2022-12-12 11:15:46   state           Python server offline
     2022-10-08 23:53:28   status_text     
     2022-10-08 23:53:28   transport_id   
     2021-09-08 12:03:04   uuid            dbef8319-c89c-e735-11f6-ce7777b133b2
     2022-10-09 21:59:59   volume          29
     2022-12-12 01:49:10   volume_saved    29
     2021-11-02 15:15:42   webradio        off
   args:
     Schlafzimmerlautsprecher
     PythonModule
     googlecast
     Schlafzimmerlautsprecher
   argsh:
Attributes:
   IODev      local_pybinding
   alarmDevice Actor
   alias      Schlafzimmerlautsprecher
   cmdIcon    pause:rc_PAUSE play:rc_PLAY stop:rc_STOP
   favorite_1 https://open.spotify.com/playlist/0OsomYzqz2ygRm6sgqJSml
   favorite_2 https://open.spotify.com/playlist/37i9dQZF1EgoFqquhlQhCX
   favorite_3 https://open.spotify.com/playlist/2RxtpesK6vFl9g4q9YQdwD
   favorite_4 https://open.spotify.com/playlist/5kC6WML93SwDyPu3oAUAwE
   favorite_5 https://open.spotify.com/playlist/1pSeFcGbK94Hiozr62KtfX
   group      Google Devices
   icon       audio_loudness
   room       Devices,Wohnung->Schlafzimmer
   spotify_sp_dc *********
   spotify_sp_key *********
   webCmd     volume:play:pause:stop



List vom gassistant-Device:
Internals:
   FD         58
   FUUID      616ee39a-f33f-6c14-dd8a-98c1fab4a99fe16d
   FVERSION   39_gassistant.pm:0.182830/2019-01-16
   LAST_START 2022-11-27 17:32:20
   NAME       gassistant
   NOTIFYDEV  global,global:npmjs.*gassistant-fhem.*
   NR         213
   NTFY_ORDER 50-gassistant
   PID        18338
   STARTS     1
   STATE      connected
   TYPE       gassistant
   currentlogfile ./log/gassistant-2022-12-12.log
   eventCount 61
   logfile    ./log/gassistant-%Y-%m-%d.log
   CoProcess:
     cmdFn      gassistant_getCMD
     name       gassistant-fhem
     state      running /usr/bin/gassistant-fhem
   READINGS:
     2022-11-27 17:32:20   gassistant-fhem running /usr/bin/gassistant-fhem
     2022-12-12 11:05:20   gassistant-fhem-connection connected
     2022-12-12 11:05:20   gassistant-fhem-googleSync Google SYNC finished
     2022-12-12 11:05:19   gassistant-fhem-lastServerError No mappings (e.g. on/off) found for schlafzimmerfenster_control
     2022-11-27 17:32:31   gassistant-fhem-lasterror none
     2022-12-12 11:05:19   gassistant-fhem-localHome inactive
     2022-12-12 11:05:18   gassistant-fhem-uid google-oauth2|100673568922433100803
     2022-12-12 11:05:20   gassistant-fhem-usedFeatureLevel 3
     2022-11-27 17:32:26   gassistant-fhem-version 3.0.5
     2022-12-11 15:13:44   gassistant-fhem-versionAvailable 3.0.5
     2022-11-27 17:32:26   gassistantFHEM.loginURL <html><a href="https://fhemconnector.eu.auth0.com/authorize?audience=https://europe-west1-fhem-ga-connector.cloudfunctions.net/&scope=offline_access%20openid%20profile&response_type=code&client_id=EI0TI2Y0W1743Ico53Nvsg1FsmoZniCC&code_challenge=69eqdtz84GJWbkL_VYNwc4O0JnBNy5hfBkFPWXgbIfk&code_challenge_method=S256&redirect_uri=https://europe-west1-fhem-ga-connector.cloudfunctions.net/codelanding/start" target="_blank">Click here to login (new window/tab)</a><br></html>
     2022-12-12 11:08:28   gassistantFHEM.refreshToken crypt:626634021c0c227b361b52020b7c591e565c497e4f59635f06077b7c56613e5344543a004b5a1e41261b367d29
Attributes:
   devStateIcon { my $error = ReadingsVal($name,"gassistant-fhem-lastServerError","none") eq "none"?"10px-kreis-gruen":"10px-kreis-rot";; my $onoff = substr(ReadingsVal($name, "gassistant-fhem", "running"),0,7) eq "running"?"control_on_off\@green":"control_on_off\@red";; my $reload = ReadingsVal($name, "gassistant-fhem-connection", "connected") eq "connected"?"audio_repeat\@green":"audio_repeat\@orange";;"<div><a>".FW_makeImage($error)."</a> <a href=\"/fhem?cmd.dummy=set $name reload&XHR=1\">".FW_makeImage($reload, "reload")."</a><a href=\"/fhem?cmd.dummy=set $name restart&XHR=1\">&nbsp;&nbsp;".FW_makeImage($onoff, "restart")."</a></div>"}
   gassistantFHEM-config ./gassistant-fhem.cfg
   gassistantFHEM-log ./log/gassistant-%Y-%m-%d.log
   group      Bridges
   icon       gassistant
   nrarchive  10
   room       System
   stateFormat gassistant-fhem-connection


Hab schon das gassistant-device neu verbunden. wenn ich das Neustarte ist der kleine Punkkt im STATE auch erst mal grün. Doch sobald es connected ist spring der zurück auf rot.

Was mich auch irretiert ist dieser Eintrag bei den Readings:
gassistant-fhem-lastServerError
No mappings (e.g. on/off) found for Weihnachtsbeleuchtung


offenbar wird das gassistant-Device immer wieder gestoppt, aber ich finde nicht heraus warum

Ich hänge mal noch einen auszug des Log's nach einem Reload an:
[12/12/2022, 11.48.09] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-connection%20reloading...&fwcsrf=csrf_166934249946089&XHR=1
[12/12/2022, 11.48.09] [FHEM] Reload and SYNC to Google
[12/12/2022, 11.48.09] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-lastServerError%20none&fwcsrf=csrf_166934249946089&XHR=1
[12/12/2022, 11.48.09] [FHEM] longpoll ended, reconnect in: 4700msec
[12/12/2022, 11.48.09] [FHEM] Fetching FHEM devices...
[12/12/2022, 11.48.09] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=GoogleAssistant&fwcsrf=csrf_166934249946089&XHR=1
[12/12/2022, 11.48.09] [FHEM] got: 12 results
[12/12/2022, 11.48.09] GOOGLE MSG RECEIVED: {"log":"No mappings (e.g. on/off) found for Weihnachtsbeleuchtung","msg":"LOG_ERROR","ts":1670842093863}
[12/12/2022, 11.48.09] Received firestore2fhem: {"log":"No mappings (e.g. on/off) found for Weihnachtsbeleuchtung","msg":"LOG_ERROR","ts":1670842093863}
[12/12/2022, 11.48.09] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-lastServerError%20No%20mappings%20(e.g.%20on%2Foff)%20found%20for%20Weihnachtsbeleuchtung&fwcsrf=csrf_166934249946089&XHR=1
[12/12/2022, 11.48.09] GOOGLE MSG RECEIVED: {"log":"No mappings (e.g. on/off) found for krippe_control","ts":1670842093866,"msg":"LOG_ERROR"}
[12/12/2022, 11.48.09] Received firestore2fhem: {"log":"No mappings (e.g. on/off) found for krippe_control","ts":1670842093866,"msg":"LOG_ERROR"}
[12/12/2022, 11.48.09] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-lastServerError%20No%20mappings%20(e.g.%20on%2Foff)%20found%20for%20krippe_control&fwcsrf=csrf_166934249946089&XHR=1
[12/12/2022, 11.48.10] GOOGLE MSG RECEIVED: {"msg":"LOG_ERROR","log":"No mappings (e.g. on/off) found for schlafzimmerfenster_control","ts":1670842093868}
[12/12/2022, 11.48.10] Received firestore2fhem: {"msg":"LOG_ERROR","log":"No mappings (e.g. on/off) found for schlafzimmerfenster_control","ts":1670842093868}
[12/12/2022, 11.48.10] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-lastServerError%20No%20mappings%20(e.g.%20on%2Foff)%20found%20for%20schlafzimmerfenster_control&fwcsrf=csrf_166934249946089&XHR=1
[12/12/2022, 11.48.10] GOOGLE MSG RECEIVED: {"log":"No mappings (e.g. on/off) found for krippe_control","ts":1670842093866,"msg":"LOG_ERROR"}
[12/12/2022, 11.48.10] Received firestore2fhem: {"log":"No mappings (e.g. on/off) found for krippe_control","ts":1670842093866,"msg":"LOG_ERROR"}
[12/12/2022, 11.48.10] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-lastServerError%20No%20mappings%20(e.g.%20on%2Foff)%20found%20for%20krippe_control&fwcsrf=csrf_166934249946089&XHR=1
[12/12/2022, 11.48.10] GOOGLE MSG RECEIVED: {"msg":"LOG_ERROR","log":"No mappings (e.g. on/off) found for schlafzimmerfenster_control","ts":1670842093868}
[12/12/2022, 11.48.10] Received firestore2fhem: {"msg":"LOG_ERROR","log":"No mappings (e.g. on/off) found for schlafzimmerfenster_control","ts":1670842093868}
[12/12/2022, 11.48.10] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-lastServerError%20No%20mappings%20(e.g.%20on%2Foff)%20found%20for%20schlafzimmerfenster_control&fwcsrf=csrf_166934249946089&XHR=1
[12/12/2022, 11.48.10] [FHEM] update reading: dummy_Eishockeyerinnerung:state = on
[12/12/2022, 11.48.10] [FHEM] update reading: dummy_Geburtstagserinnerung:state = on
[12/12/2022, 11.48.10] [FHEM] update reading: dummy_muellabfuhrerinnerung:state = on
[12/12/2022, 11.48.10] [FHEM] update reading: flurlicht_mode:state = off
[12/12/2022, 11.48.10] [FHEM] update reading: plug_wz_audiosystem:state = on
[12/12/2022, 11.48.10] [FHEM] update reading: plug_wz_audiosystem:temperature = 19.5 C (measured)
[12/12/2022, 11.48.10] [FHEM] update reading: plug_wz_krippenbeleuchtung:state = off
[12/12/2022, 11.48.10] [FHEM] update reading: plug_wz_krippenbeleuchtung:temperature = 25.0 C (measured)
[12/12/2022, 11.48.10] [FHEM] update reading: switch_wz_deckenlicht:state = off
[12/12/2022, 11.48.10] [FHEM] update reading: switch_wz_deckenlicht:temperature = 42.09
[12/12/2022, 11.48.10] [FHEM] update reading: unit_sz_dm7020hd:state = off
[12/12/2022, 11.48.10] [FHEM] update reading: unit_sz_dm7020hd:volume = 75
[12/12/2022, 11.48.10] [FHEM] update reading: unit_wz_dm920uhd:state = off
[12/12/2022, 11.48.10] [FHEM] update reading: unit_wz_dm920uhd:volume = 70
[12/12/2022, 11.48.10] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-connection%20connected&fwcsrf=csrf_166934249946089&XHR=1
[12/12/2022, 11.48.10] GOOGLE MSG RECEIVED: {"featurelevel":3,"ts":1670842094669,"msg":"UPDATE_SYNCFEATURELEVEL"}
[12/12/2022, 11.48.10] Received firestore2fhem: {"featurelevel":3,"ts":1670842094669,"msg":"UPDATE_SYNCFEATURELEVEL"}
[12/12/2022, 11.48.10] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-usedFeatureLevel%203&fwcsrf=csrf_166934249946089&XHR=1
[12/12/2022, 11.48.10] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-googleSync%20Google%20SYNC%20finished&fwcsrf=csrf_166934249946089&XHR=1

lucca111

#2921
Hallo Gemeinde,


habe heute nach 2 Jahren ohne Probleme in meiner Google App keine Geräte von Fhem mehr. Der gassistant läuft sauber ohne Fehlermeldung. Die Geräte aus dem Raum GoogleAssistent
werden in der App nicht mehr angezeigt. Habe schon alle Geräte aus den Raum entfernt und wieder hinzugefügt. Alles neu synchronisiert, den Connector in der App entfernt und neu eingebunden,
nichts hat geholfen...

Wenn jemand noch einen Tip hat wäre ich sehr dankbar :)

Hier noch mal der Fehler aus meiner log Datei.

[19.12.2022, 19:48:06] [FHEM] Fetching FHEM devices...
[19.12.2022, 19:48:06] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=GoogleAssistant&XHR=1
[19.12.2022, 19:48:06] [FHEM] got: 4 results
[19.12.2022, 19:48:07] ERROR: https://europe-west1-fhem-ga-connector.cloudfunctions.net/api/3.0/genmappings => 500:{"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":{"data":{"type":"Buffer","data":[69,114,114,111,114,58,32,99,111,117,108,100,32,110,111,116,32,104,97,110,100,108,101,32,116,104,101,32,114,101,113,117,101,115,116,10]},"next":null},"tail":{"data":{"type":"Buffer","data":[69,114,114,111,114,58,32,99,111,117,108,100,32,110,111,116,32,104,97,110,100,108,101,32,116,104,101,32,114,101,113,117,101,115,116,10]},"next":null},"length":1},"length":36,"pipes":[],"flowing":null,"ended":true,"endEmitted":false,"reading":false,"sync":false,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":true,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":2,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":true,"ended":true,"finished":true,"destroyed":false,"decodeStrings":true,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":true,"errorEmitted":false,"emitClose":true,"autoDestroy":true,"errored":null,"closed":false},"allowHalfOpen":true}

update:

Habe gerade nochmal folgendes ausprobiert:

set gassistant ClearCrendentials
set gassistant CreateDefaultconfig
get gassistant LoginURL
dabei wird die Adresse: https://europe-west1-fhem-ga-connector.cloudfunctions.net/codelanding/start?code=E***********************************************J angezeigt.
mit set gassistant authcode E***********************************************J klappte das Starten des Assistant wieder
restart

Laut log findet der Assistant 4 Geräte im Raum GoogleAssistant kann Sie aber aufgrund eines Unauthorized Fehler (500) nicht einbinden.

gruß lucca

lucca111


HeikoSommer

Hallo Lucca111, leider kann ich Dir nicht weiterhelfen.
Ich versuche mich gerade erst gassistant einzurichten, ich bekomme aber keinen link.
Auch nach 15 Minuten nicht.
Im log steht
[12/21/2022, 19:59:29] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1671649169695
[12/21/2022, 19:59:29] [FHEM] longpoll error: Error: self signed certificate, retry in: 30000msec


Kann mir da jemand helfen?

rande

Hi Leute,

ich habe zur Zeit leider auch massive Probleme.


Bisher lief alles seit Monat und Jahr reibungslos. Bis als vor ein paar Tagen der gassistant in FHEM nicht mehr einloggen konnte.

gassistant-fhem-lasterror
FetchError: request to https://fhemconnector.eu.auth0.com/oauth/token failed, reason: certificate has expired


Der Adapter sagte mir auch, dass dringend ein Update benötigt wird. Ich war auf V2.x und habe dann mit dem Befehl "sudo npm install -g gassistant-fhem --unsafe-perm" ein Update anschieben wollen.
Daraufhin kamen diverse Fehlermeldungen wie diese:

pi@raspberrypi:~ $ sudo npm install -g gassistant-fhem --unsafe-perm
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated core-js@3.6.5: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated grpc@1.24.11: This library will not receive further updates other than security fixes. We recommend using @grpc/grpc-js instead.


und noch ein längerer Rattenschwanz hinterher.

NPM und node habe ich bereits auf die neuesten Versionen geupdatet.

auch eine Deinstallation und folgende Installation des Adapters hat nicht funktioniert. Nun wird er auch nicht mehr richtig installiert und hiermit abgebrochen:

pi@raspberrypi:~ $ sudo npm install -g gassistant-fhem --unsafe-perm
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated core-js@3.6.5: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated grpc@1.24.11: This library will not receive further updates other than security fixes. We recommend using @grpc/grpc-js instead.
npm ERR! code 1
npm ERR! path /usr/lib/node_modules/gassistant-fhem/node_modules/grpc
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! make: Verzeichnis ,,/usr/lib/node_modules/gassistant-fhem/node_modules/grpc/build" wird betreten
npm ERR!   CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
npm ERR! make: Verzeichnis ,,/usr/lib/node_modules/gassistant-fhem/node_modules/grpc/build" wird verlassen
npm ERR! Failed to execute '/usr/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/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v111-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/usr/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v111-linux-arm-glibc --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v111' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10
npm ERR! node-pre-gyp info using node@19.3.0 | linux | arm
npm ERR! node-pre-gyp info check checked for "/usr/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v111-linux-arm-glibc/grpc_node.node" (not found)
npm ERR! node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v111-linux-arm-glibc.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v111-linux-arm-glibc.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for grpc@1.24.11 and node@19.3.0 (node-v111 ABI, glibc) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v111-linux-arm-glibc.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.0
npm ERR! gyp info using node@19.3.0 | linux | arm
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.0
npm ERR! gyp info using node@19.3.0 | linux | arm
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/lib/node_modules/gassistant-fhem/node_modules/grpc/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/root/.cache/node-gyp/19.3.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/19.3.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/19.3.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/usr/lib/node_modules/gassistant-fhem/node_modules/grpc',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.0
npm ERR! gyp info using node@19.3.0 | linux | arm
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! make: g++: Datei oder Verzeichnis nicht gefunden
npm ERR! make: *** [grpc.target.mk:543: Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o] Fehler 127
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Linux 4.14.79-v7+
npm ERR! gyp ERR! command "/usr/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/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v111-linux-arm-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/usr/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v111-linux-arm-glibc" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v111"
npm ERR! gyp ERR! cwd /usr/lib/node_modules/gassistant-fhem/node_modules/grpc
npm ERR! gyp ERR! node -v v19.3.0
npm ERR! gyp ERR! node-gyp -v v9.3.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/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/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v111-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/usr/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v111-linux-arm-glibc --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v111' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/gassistant-fhem/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1098:16)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:304:5)
npm ERR! node-pre-gyp ERR! System Linux 4.14.79-v7+
npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/gassistant-fhem/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
npm ERR! node-pre-gyp ERR! cwd /usr/lib/node_modules/gassistant-fhem/node_modules/grpc
npm ERR! node-pre-gyp ERR! node -v v19.3.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-12-21T20_56_24_512Z-debug-0.log
pi@raspberrypi:~ $



Hat jemand eine Idee, was ich falsch mache?

Grüße
rande