39_gassistant.pm (Google Assistant, Google Home)

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

Vorheriges Thema - Nächstes Thema

ToKa

Zitat von: the-vince am 31 Januar 2019, 20:32:06
Läuft alles durch aber trotz mehrerer rebuilds leider keine Veränderung. Problem ist noch dasselbe.

Hatte heute den gleichen Fehler und alle Hinweise hier haben nicht geholfen. gassistant hatte folgende Fehlermeldung gebracht:
Original error: Cannot find module '/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v72-linux-arm-glibc/grpc_node.node'

In diesem Verzeichnis gab es aber auch nur ein Verzeichnis node-v64-linux-arm-glibx mit grpc. Die v72 gabe im Verzeichnis /usr/local/lib/node_modules/grpc/src/node/extension_binary. Von dort habe ich Sie kopiert und jetzt läuft gassistant wieder.

Ist zwar sicherlich nur ein workaround, aber vielleicht auch eine Hilfe für die Experten die Ursache zu finden.

Beste Grüße
Torsten
RaspberryPi3 mit RaZberry2 und Conbee II
Fibaro: FGWPE/F-101 Switch & FIBARO System FGWPE/F Wall Plug Gen5, FGSD002 Smoke Sensor
EUROtronic: SPIRIT Wall Radiator Thermostat Valve Control
Shelly2.5 Rollladenaktoren
Zipato Bulb 2, Osram und InnrLight

JHo

Hallo Dominik,

die Aktionen bei meinen Qubino Z-Wave-Rolladenaktoren sind "vertauscht": "hoch" fährt runter, "runter" fährt hoch, "auf 20%" fährt auf 80%...
Hier ein List vom Device

Internals:
   DEF        caada112 4
   FUUID      5c5d9de1-f33f-2b6f-0ffe-6bdc88e20454d219
   IODev      ZWDongle_0
   LASTInputDev ZWDongle_0
   MSGCNT     34
   NAME       essecke.rolladen
   NR         676
   STATE      dim 80
   TYPE       ZWave
   ZWDongle_0_MSGCNT 34
   ZWDongle_0_RAWMSG 000400040a32022134000000000000
   ZWDongle_0_TIME 2019-05-15 08:34:05
   ZWaveSubDevice no
   cmdsPending 0
   homeId     caada112
   isWakeUp   
   lastMsgSent 1557902030.19502
   nodeIdHex  04
   READINGS:
     2019-05-14 19:45:28   ASC_ShuttersLastDrive night close
     2019-05-15 07:15:02   ASC_Time_DriveDown 15.05.2019 - 19:45
     2019-05-15 07:15:02   ASC_Time_DriveUp 16.05.2019 - 07:15
     2019-05-15 07:15:02   ASC_Time_PrivacyDriveDown 15.05.2019 - 19:25
     2019-05-15 08:34:04   UNPARSED        SWITCH_MULTILEVEL 04260150ff
     2019-03-29 11:24:38   assocGroup_1    Max 1 Nodes ZWDongle_0
     2019-03-29 11:24:39   assocGroup_2    Max 16 Nodes ZWDongle_0
     2019-03-29 11:24:39   assocGroup_3    Max 16 Nodes ZWDongle_0
     2019-03-29 11:24:40   assocGroup_4    Max 16 Nodes ZWDongle_0
     2019-03-29 11:24:40   assocGroup_5    Max 16 Nodes ZWDongle_0
     2019-03-29 11:24:40   assocGroup_6    Max 16 Nodes ZWDongle_0
     2019-03-29 11:24:41   assocGroup_7    Max 16 Nodes ZWDongle_0
     2019-03-29 11:24:41   assocGroup_8    Max 16 Nodes ZWDongle_0
     2019-03-29 11:24:42   assocGroup_9    Max 16 Nodes ZWDongle_0
     2019-03-29 11:24:38   assocGroups     9
     2019-05-14 15:23:09   associatedWith  rolladen.automatik
     2019-05-15 08:33:52   basicSet        255
     2019-04-08 13:49:46   configActivateDeactivateFunctionsALLON10 ALLONActiveALLOFFActive
     2019-04-08 13:49:47   configDigitalTemperatureSensor120 5
     2019-04-08 13:49:47   configForcedShutterCalibration Default
     2019-04-08 13:49:47   configMotorMovingUpDownTime 0
     2019-04-08 13:49:48   configMotorOperationDetection 10
     2019-04-08 13:49:49   configOperatingModes ShutterMode
     2019-04-08 13:49:49   configPowerConsumptionMaxDelayTime 0
     2019-04-08 13:49:50   configPowerReportingInWattsByTime42 300
     2019-04-08 13:49:50   configPowerReportingInWattsOnPower40 1
     2019-04-08 13:49:50   configSlatsPosition ZWaveControlPushButtonOperation1
     2019-04-08 13:49:51   configSlatsTiltingFullTurnTime 150
     2019-04-08 13:49:51   configTemperatureSensorOffsetSettings 32536
     2019-04-08 13:49:52   configTimeDelayForNextMotorMovement 5
     2019-03-29 11:34:29   mcaGroups       9
     2019-03-29 11:34:11   mca_1           Max 1 Nodes ZWDongle_0
     2019-03-29 11:34:12   mca_2           Max 16 Nodes ZWDongle_0
     2019-03-29 11:34:12   mca_3           Max 16 Nodes ZWDongle_0
     2019-03-29 11:34:12   mca_4           Max 16 Nodes ZWDongle_0
     2019-03-29 11:34:13   mca_5           Max 16 Nodes ZWDongle_0
     2019-03-29 11:34:13   mca_6           Max 16 Nodes ZWDongle_0
     2019-03-29 11:34:14   mca_7           Max 16 Nodes ZWDongle_0
     2019-03-29 11:34:14   mca_8           Max 16 Nodes ZWDongle_0
     2019-03-29 11:34:15   mca_9           Max 16 Nodes ZWDongle_0
     2019-01-11 21:25:39   model           Qubino ZMNHCDx Flush Shutter
     2019-01-11 21:25:39   modelConfig     qubino/ZMNHCDx.xml
     2019-01-11 21:25:39   modelId         0159-0003-0052
     2019-05-15 08:34:05   power            0 W
     2019-05-15 08:34:04   reportedState   dim 80
     2019-05-15 08:34:04   state           dim 80
     2019-03-29 10:59:07   swa             on off
     2019-05-15 08:33:50   timeToAck       0.163
     2019-05-15 08:33:50   transmit        OK
Attributes:
   ASC        1
   ASC_AutoAstroModeEveningHorizon -6
   ASC_AutoAstroModeMorningHorizon -2
   ASC_Drive_Offset -1
   ASC_Drive_OffsetStart 1
   ASC_Pos_Reading state
   ASC_PrivacyDownTime_beforNightClose 1200
   ASC_PrivacyDown_Pos 40
   ASC_Time_Down_Early 16:00
   ASC_Time_Down_Late 19:45
   ASC_Time_Up_Early 07:15
   ASC_Time_Up_Late 09:00
   ASC_Time_Up_WE_Holiday 08:15
   ASC_Ventilate_Pos 90
   ASC_WindowRec essecke.fenster
   IODev      ZWDongle_0
   alias      Rolladen Essecke
   assistantName Rolladen
   classes    ZWAVEPLUS_INFO VERSION MANUFACTURER_SPECIFIC DEVICE_RESET_LOCALLY POWERLEVEL BASIC SWITCH_ALL SWITCH_BINARY SWITCH_MULTILEVEL METER ASSOCIATION MULTI_CHANNEL_ASSOCIATION ASSOCIATION_GRP_INFO CONFIGURATION MARK BASIC SWITCH_MULTILEVEL
   eventMap   { usr=>{'dim.100'=>'dim 99'}}
   genericDeviceType blinds
   neighborListPos 498.49,527.01
   realRoom   Essecke
   room       Essecke,GoogleAssistant,ZWave
   userattr   ASC_Antifreeze:off,soft,hard,am,pm ASC_Antifreeze_Pos ASC_Antifreeze_Pos:5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 ASC_AutoAstroModeEvening:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeEveningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_AutoAstroModeMorning:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeMorningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_BlockingTime_afterManual ASC_BlockingTime_beforDayOpen ASC_BlockingTime_beforNightClose ASC_BrightnessSensor ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_ComfortOpen_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Down:time,astro,brightness ASC_DriveUpMaxDuration ASC_Drive_Offset ASC_Drive_OffsetStart ASC_GuestRoom:on,off ASC_LockOut:soft,hard,off ASC_LockOut_Cmd:inhibit,blocked,protection ASC_Mode_Down:absent,always,off,home ASC_Mode_Up:absent,always,off,home ASC_Open_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Partymode:on,off ASC_Pos_Reading ASC_PrivacyDownTime_beforNightClose ASC_PrivacyDown_Pos ASC_RainProtection:on,off ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_Exclude:on,off ASC_Shading_Angle_Left ASC_Shading_Angle_Right ASC_Shading_Direction ASC_Shading_Min_Elevation ASC_Shading_Min_OutsideTemperature ASC_Shading_Mode:absent,always,off,home ASC_Shading_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Shading_StateChange_Cloudy ASC_Shading_StateChange_Sunny ASC_Shading_WaitingPeriod ASC_ShuttersPlace:window,terrace ASC_Time_Down_Early ASC_Time_Down_Late ASC_Time_Up_Early ASC_Time_Up_Late ASC_Time_Up_WE_Holiday ASC_Up:time,astro,brightness ASC_Ventilate_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Ventilate_Window_Open:on,off ASC_WiggleValue ASC_WindParameters ASC_WindProtection:on,off ASC_WindowRec ASC_WindowRec_subType:twostate,threestate
   vclasses   ASSOCIATION:2 ASSOCIATION_GRP_INFO:2 BASIC:1 CONFIGURATION:1 DEVICE_RESET_LOCALLY:1 MANUFACTURER_SPECIFIC:2 METER:4 MULTI_CHANNEL_ASSOCIATION:3 POWERLEVEL:1 SWITCH_ALL:1 SWITCH_BINARY:1 SWITCH_MULTILEVEL:3 VERSION:2 ZWAVEPLUS_INFO:2
   webCmd     dim

Wie kann ich die Befehle für den Assistant invertieren?


Gar nicht reagieren meine beiden Uniroll-Geräte, die ich über das ROLLO-Modul eingebunden habe. Google sagt, dass "nach unten geschlossen wird", oder nach oben geöffnet, oder auf ...%, aber es passiert nichts, keine Reaktion. List vom ROLLO-Device:

Internals:
   FUUID      5cb30eb5-f33f-2b6f-4b1a-1b28f0b48f3ea9bd
   NAME       rollo.dg.links
   NR         760
   STATE      open
   TYPE       ROLLO
   stoptime   1557902082
   READINGS:
     2019-05-15 07:30:19   ASC_ShuttersLastDrive day open
     2019-05-15 07:30:02   ASC_Time_DriveDown 15.05.2019 - 19:30
     2019-05-15 07:30:02   ASC_Time_DriveUp 16.05.2019 - 07:30
     2019-05-15 07:30:02   ASC_Time_PrivacyDriveDown 15.05.2019 - 19:10
     2019-05-14 15:23:09   associatedWith  rolladen.automatik
     2019-05-15 08:34:17   command         open
     2019-05-15 08:34:17   desired_pct     0
     2019-05-15 08:34:17   drive-type      modul
     2019-05-15 08:34:17   last_drive      drive-up
     2019-05-15 08:34:42   pct             0
     2019-05-15 08:34:42   state           open
Attributes:
   ASC        1
   ASC_AutoAstroModeEveningHorizon -6
   ASC_AutoAstroModeMorningHorizon -2
   ASC_Drive_Offset -1
   ASC_Drive_OffsetStart 9
   ASC_Pos_Reading pct
   ASC_PrivacyDownTime_beforNightClose 1200
   ASC_PrivacyDown_Pos 40
   ASC_Time_Down_Early 16:30
   ASC_Time_Down_Late 19:30
   ASC_Time_Up_Early 07:30
   ASC_Time_Up_Late 09:00
   ASC_Time_Up_WE_Holiday 08:30
   ASC_Ventilate_Pos 90
   ASC_WindowRec dg.li.fenster
   alias      Rolladen DG links
   assistantName Rolladen links
   cmdIcon    open:fts_shutter_up closed:fts_shutter_down stop:fts_shutter_manual half:fts_shutter_50
   devStateIcon open:fts_shutter_10:closed closed:fts_shutter_100:open half:fts_shutter_50:closed drive-up:fts_shutter_up@red:stop drive-down:fts_shutter_down@red:stop pct-100:fts_shutter_100:open pct-90:fts_shutter_80:closed pct-80:fts_shutter_80:closed pct-70:fts_shutter_70:closed pct-60:fts_shutter_60:closed pct-50:fts_shutter_50:closed pct-40:fts_shutter_40:open pct-30:fts_shutter_30:open pct-20:fts_shutter_20:open pct-10:fts_shutter_10:open pct-0:fts_shutter_10:closed
   genericDeviceType blinds
   realRoom   Dach
   rl_autoStop 0
   rl_commandDown set rolladen.dg.links down
   rl_commandStop set rolladen.dg.links stop
   rl_commandUp set rolladen.dg.links up
   rl_excessBottom 0
   rl_excessTop 0
   rl_resetTime 23
   rl_secondsDown 23
   rl_secondsUp 23
   rl_switchTime 1
   rl_type    normal
   room       CUNo,GoogleAssistant
   userattr   ASC_Antifreeze:off,soft,hard,am,pm ASC_Antifreeze_Pos ASC_Antifreeze_Pos:5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 ASC_AutoAstroModeEvening:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeEveningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_AutoAstroModeMorning:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeMorningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_BlockingTime_afterManual ASC_BlockingTime_beforDayOpen ASC_BlockingTime_beforNightClose ASC_BrightnessSensor ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_ComfortOpen_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Down:time,astro,brightness ASC_DriveUpMaxDuration ASC_Drive_Offset ASC_Drive_OffsetStart ASC_GuestRoom:on,off ASC_LockOut:soft,hard,off ASC_LockOut_Cmd:inhibit,blocked,protection ASC_Mode_Down:absent,always,off,home ASC_Mode_Up:absent,always,off,home ASC_Open_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Partymode:on,off ASC_Pos_Reading ASC_PrivacyDownTime_beforNightClose ASC_PrivacyDown_Pos ASC_RainProtection:on,off ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_Exclude:on,off ASC_Shading_Angle_Left ASC_Shading_Angle_Right ASC_Shading_Direction ASC_Shading_Min_Elevation ASC_Shading_Min_OutsideTemperature ASC_Shading_Mode:absent,always,off,home ASC_Shading_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Shading_StateChange_Cloudy ASC_Shading_StateChange_Sunny ASC_Shading_WaitingPeriod ASC_ShuttersPlace:window,terrace ASC_Time_Down_Early ASC_Time_Down_Late ASC_Time_Up_Early ASC_Time_Up_Late ASC_Time_Up_WE_Holiday ASC_Up:time,astro,brightness ASC_Ventilate_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Ventilate_Window_Open:on,off ASC_WiggleValue ASC_WindParameters ASC_WindProtection:on,off ASC_WindowRec ASC_WindowRec_subType:twostate,threestate
   webCmd     open:closed:half:stop:pct

Wo liegt hier mein Fehler?

Viele Grüße
Jan
1: FHEM auf Ubuntu, MAX!Cube, Wand- und Heizkörperthermostate, Eco-Schalter, diverse LaCrosse-Sensoren, per remote angebundene DS18B20-Sensoren
2: FHEM auf Raspi 3, Max!Cube, Wand- und Heizkörperthermostate, Eco-Schalter, ht_pitiny-Adapter zu Junkers FW120

smoki3

Seit gestern ist kommt bei mir die Fehlermeldung bei Verwendung der Abläufe nicht mehr :)

dominik

@ToKa,
vielen Dank fuer die hilfreiche Info! Das sollte definitiv vielen Leuten helfen.

@JHo,
essecke.fenster: Wie lautet das Command fuer zu und auf? on=auf und off=zu?
rollo.dg.links: Wie lauten da die Commands?

@smoki3,
super, danke dir fuer die Rueckmeldung!
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

SouzA

#889
Zitat von: dominik am 14 Mai 2019, 22:22:33
@SouzA, ich meinte die Ablaeufe in der Home App wie z.B. "Guten Morgen" mit Kaffeemaschine einschalten ueber FHEM Connect, erhaeltst du da auch noch die Fehlermeldung ("nicht erreichbar") obwohl es funktioniert?
Ja, die meine ich auch.
Ja, ich erhalte immer noch die Meldung, dass die nicht erreichbar sind. (Ver 1.3.10)

Bis denn
SouzA

Btw: aber nur da wo Lightscene zum Einsatz kommt!
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

dominik

@SouzA, ah, ja, danke fuer den Hinweis mit Lightscene. Fehler sollte nun behoben sein, bitte testen :) kein reload oder aehnliches erforderlich.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

JHo

Zitat von: dominik am 15 Mai 2019, 20:09:06
@JHo,
essecke.fenster: Wie lautet das Command fuer zu und auf? on=auf und off=zu?
rollo.dg.links: Wie lauten da die Commands?
(Definition von "auf": Rolladen ist ganz nach oben gefahren, offen, "freie Sicht nach außen")
essecke.fenster: auf=off ; zu = on; oder dim von 0 bis 99 (0=offen, 99 = zu)
rollo.dg.links: auf=open ; zu=closed ; oder pct von 0 bis 100 (0=offen, 100=zu)

Sind jeweils die Standard-Bezeichnungen für den Aktor (essecke) bzw. das ROLLO-Modul.
1: FHEM auf Ubuntu, MAX!Cube, Wand- und Heizkörperthermostate, Eco-Schalter, diverse LaCrosse-Sensoren, per remote angebundene DS18B20-Sensoren
2: FHEM auf Raspi 3, Max!Cube, Wand- und Heizkörperthermostate, Eco-Schalter, ht_pitiny-Adapter zu Junkers FW120

friedleif

#892
Hallo Dominik,

damit kommt ein Fehler im Log:
ERROR: https://europe-west1-fhem-ga-connector.cloudfunctions.net/api/syncfinished => 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":null,"pipesCount":0,"flowing":null,"ended":true,"endEmitted":false,"reading":false,"sync":false,"needReadable":false,"emittedReadable":true,"readableListening":false,"resumeScheduled":false,"paused":true,"emitClose":true,"destroyed":false,"defaultEncoding":"utf8","awaitDrain":0,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":true,"errorEmitted":false,"emitClose":true,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":false,"allowHalfOpen":true,"_transformState":{"needTransform":false,"transforming":false,"writecb":null,"writechunk":null,"writeencoding":"buffer"}}

FHEM Connect ist damit auch aus der App verschwunden und wird auch nicht mehr synchronisiert.

Mit OpenClose=state,values='/^closed/:CLOSED';;/.*/:OPEN ist der Fehler weg, aber der Status funktioniert nicht.

Zitat von: dominik am 14 Mai 2019, 22:22:33
@friedleif, teste bitte mal mit folgendem homebridgeMapping
OpenClose=state,values=/^closed/:CLOSED;;/.*/:OPEN
vorher war noch ein einfaches Hochkomma drin.

SouzA

Zitat von: dominik am 15 Mai 2019, 20:51:24
@SouzA, ah, ja, danke fuer den Hinweis mit Lightscene. Fehler sollte nun behoben sein, bitte testen :) kein reload oder aehnliches erforderlich.

Funktioniert nun ohne lästiges gequatsche!
Super, danke!

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

DerRecke

Zitat von: dominik am 14 Mai 2019, 22:22:33
@DerRecke, stretch oder lite sollte egal sein, wobei vielleicht fehlen aus irgendeinem Grund bei lite ein paar Libraries. Kann ich mir zwar nicht vorstellen, aber einen Test waere es wert.

So, bin endlich dazu gekommen es zu probieren. Immer noch:


root@raspberrypi:/opt/nodejs/lib/node_modules/gassistant-fhem/bin# ./gassistant-fhem
Ungültiger Maschinenbefehl


Hat denn jemand schon gassistant auf einem Raspberry Pi 1 am laufen?
Wenn ja wie verlief die Installation?

Tabu

Zitat von: dominik am 12 Mai 2019, 22:45:27
Einfach im homebridgeMapping
ArmDisarm=exitAllowance=10
damit wird die Zeit auf 10s gesetzt.

ArmDisarm=exitAllowance=0
Funktioniert super, keine Rückmeldung mehr, dass ich das Haus verlassen muss  :D

DerRecke

Habe nun Tablua Rasa gemacht und mir einen RaspberryPi 3+ zugelegt.
Gleich losgelegt....
und siehe da es funktioniert immer noch nicht.

nach dem "define" kommt immer die Anzeige:

gassistant    stopped; gassistant-fhem not installed. install with 'sudo npm install -g gassistant-fhem --unsafe-perm'.


Im Log steht:

2019.05.20 21:41:55 2: gassistant: created default configfile: ./gassistant-fhem.cfg
2019.05.20 21:41:55 2: gassistant: gassistant-fhem not installed. install with 'sudo npm install -g gassistant-fhem --unsafe-perm'.


Das Log von gassistant ist leer.

Aber ich bekomme etwas mehr bei den anderen Auswertungen:


pi@raspberrypi3:~ $ node -v
v10.15.3

pi@raspberrypi3:~ $ npm -v
6.4.1

pi@raspberrypi3:~ $ ls -la /opt/nodejs/lib/node_modules/gassistant-fhem/bin/gassistant-fhem
-rwxr-xr-x 1 pi pi 352 Okt 26  1985 /opt/nodejs/lib/node_modules/gassistant-fhem/bin/gassistant-fhem

pi@raspberrypi3:~ $ /opt/nodejs/lib/node_modules/gassistant-fhem/bin/gassistant-fhem
[2019-5-20 21:46:27] using /home/pi/.fhemconnect/config.json
[2019-5-20 21:46:27] Couldn't find config.json at /home/pi/.fhemconnect/config.json, using default values.
[2019-5-20 21:46:27] ---
[2019-5-20 21:46:27] config:
{"connections":[{"name":"FHEM","server":"127.0.0.1","port":"8083","webname":"fhem","filter":"room=GoogleAssistant"}]}

[2019-5-20 21:46:27] ---
[2019-5-20 21:46:27] Google Assistant FHEM Connect 1.3.10 started
[2019-5-20 21:46:27] Fetching FHEM connections...
[2019-5-20 21:46:27] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1558381587436
[2019-5-20 21:46:28] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dgassistant&fwcsrf=csrf_176678309968877&XHR=1
[2019-5-20 21:46:28] [FHEM] FHEM Google Assistant device detected: gassistant
[2019-5-20 21:46:28] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-version%201.3.10&fwcsrf=csrf_176678309968877&XHR=1
[2019-5-20 21:46:28] [FHEM]   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%3DPO0L_7ZhPtaQMKgll2SQYBeCv_-C7ACrorX0RrQA_-o%26code_challenge_method%3DS256%26redirect_uri%3Dhttps%3A%2F%2Feurope-west1-fhem-ga-connector.cloudfunctions.net%2Fcodelanding%2Fstart&fwcsrf=csrf_176678309968877&XHR=1
[2019-5-20 21:46:28] [FHEM] Get refresh token...
[2019-5-20 21:46:28] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=get%20gassistant%20refreshToken&fwcsrf=csrf_176678309968877&XHR=1
[2019-5-20 21:46:28] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-connection%20login%20required%3B%20set%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%3DNOWO1ZRZBbSpwjYerrLlNtWmiuFUgIffDFMG7J0W-Co%26code_challenge_method%3DS256%26redirect_uri%3Dhttps%3A%2F%2Feurope-west1-fhem-ga-connector.cloudfunctions.net%2Fcodelanding%2Fstart&fwcsrf=csrf_176678309968877&XHR=1
[2019-5-20 21:46:28] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-lasterror%20none&fwcsrf=csrf_176678309968877&XHR=1


Dann habe ich auch einen Link zum Abholden eines AuthCodes.
Nachdem ich den eingegeben habe ist der Status aber immer noch:


gassistant   stopped; gassistant-fhem not installed. install with 'sudo npm install -g gassistant-fhem --unsafe-perm'.


Ich hoffe jetzt kann mir jemand helfen....

dominik

Das sieht doch schon gut aus :)

Ich glaube du hast gassistant-fhem ohne -g installiert. Mach nochmals
sudo npm install -g gassistant-fhem --unsafe-perm

Danach gassistant in FHEM starten.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

DerRecke

Zitat von: dominik am 20 Mai 2019, 22:26:21
Das sieht doch schon gut aus :)

Ich glaube du hast gassistant-fhem ohne -g installiert. Mach nochmals
sudo npm install -g gassistant-fhem --unsafe-perm

Danach gassistant in FHEM starten.

Naja...
a) bin ich mir sicher das -g nicht vergessen zuhuaben und
b) hat es leider nicht geholfen.

Aber ich glaube ich habe einfach nur ein Problem mit den Rechten.

Ich habe via tree die ersten drei Level von /opt/nodejs angeschaut:


pi@raspberrypi3:/opt/nodejs $ tree -ugp -L 3
.
├── [drwxr-xr-x 1001     1001    ]  bin
│   ├── [lrwxrwxrwx root     root    ]  gassistant-fhem -> ../lib/node_modules/gassistant-fhem/bin/gassistant-fhem
│   ├── [-rwxr-xr-x 1001     1001    ]  node
│   ├── [lrwxrwxrwx 1001     1001    ]  npm -> ../lib/node_modules/npm/bin/npm-cli.js
│   └── [lrwxrwxrwx 1001     1001    ]  npx -> ../lib/node_modules/npm/bin/npx-cli.js
├── [-rw-r--r-- 1001     1001    ]  CHANGELOG.md
├── [drwxr-xr-x 1001     1001    ]  include
│   └── [drwxr-xr-x 1001     1001    ]  node
│       ├── [-rw-r--r-- 1001     1001    ]  common.gypi
│       ├── [-rw-r--r-- 1001     1001    ]  config.gypi
│       ├── [drwxr-xr-x 1001     1001    ]  libplatform
│       ├── [-rw-r--r-- 1001     1001    ]  node_api.h
│       ├── [-rw-r--r-- 1001     1001    ]  node_api_types.h
│       ├── [-rw-r--r-- 1001     1001    ]  node_buffer.h
│       ├── [-rw-r--r-- 1001     1001    ]  node.h
│       ├── [-rw-r--r-- 1001     1001    ]  node_object_wrap.h
│       ├── [-rw-r--r-- 1001     1001    ]  node_version.h
│       ├── [drwxr-xr-x 1001     1001    ]  openssl
│       ├── [drwxr-xr-x 1001     1001    ]  uv
│       ├── [-rw-r--r-- 1001     1001    ]  uv.h
│       ├── [-rw-r--r-- 1001     1001    ]  v8config.h
│       ├── [-rw-r--r-- 1001     1001    ]  v8.h
│       ├── [-rw-r--r-- 1001     1001    ]  v8-inspector.h
│       ├── [-rw-r--r-- 1001     1001    ]  v8-inspector-protocol.h
│       ├── [-rw-r--r-- 1001     1001    ]  v8-platform.h
│       ├── [-rw-r--r-- 1001     1001    ]  v8-profiler.h
│       ├── [-rw-r--r-- 1001     1001    ]  v8-testing.h
│       ├── [-rw-r--r-- 1001     1001    ]  v8-util.h
│       ├── [-rw-r--r-- 1001     1001    ]  v8-value-serializer-version.h
│       ├── [-rw-r--r-- 1001     1001    ]  v8-version.h
│       ├── [-rw-r--r-- 1001     1001    ]  v8-version-string.h
│       ├── [-rw-r--r-- 1001     1001    ]  zconf.h
│       └── [-rw-r--r-- 1001     1001    ]  zlib.h
├── [drwxr-xr-x 1001     1001    ]  lib
│   └── [drwxr-xr-x 1001     1001    ]  node_modules
│       ├── [drwxr-xr-x root     root    ]  gassistant-fhem
│       └── [drwxr-xr-x 1001     1001    ]  npm
├── [-rw-r--r-- 1001     1001    ]  LICENSE
├── [-rw-r--r-- 1001     1001    ]  README.md
└── [drwxr-xr-x 1001     1001    ]  share
    ├── [drwxr-xr-x 1001     1001    ]  doc
    │   └── [drwxr-xr-x 1001     1001    ]  node
    ├── [drwxr-xr-x 1001     1001    ]  man
    │   └── [drwxr-xr-x 1001     1001    ]  man1
    └── [drwxr-xr-x 1001     1001    ]  systemtap
        └── [drwxr-xr-x 1001     1001    ]  tapset


Der User 1001 kommt mir echt seltsam vor....

Wenn ich aber als root gassistant starte funktioniert alles (bis runter zu Google Home)

dominik

Mach mal als pi User ein
which gassistant-fhem

Da sollte /usr/bin/gassistant-fhem erscheinen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik