39_gassistant.pm (Google Assistant, Google Home)

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

Vorheriges Thema - Nächstes Thema

dominik

Was hast du gesagt und wie heißt das Gerät?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ThorHoff

Es handelt sich um Somfy-Markisen und rademacher Rollöden; Funktionieren ansonsten einwandtfrei über FHEM
Anbei ein komplettes List:

Wie gesagt, Die Geräte erscheinen auch in der App; aber eben ohne Funktionen

Rademacher Rolladen:

Internals:
   CHANGED   
   CODE       42F652
   DEF        42F652
   FUUID      5c9e0832-f33f-5cbc-e609-0f2e16765e68f0be
   IODev      Rademacher
   LASTInputDev Rademacher
   MODEL      Rohrmotor-Aktor
   MSGCNT     2
   NAME       AZ_Rolladen
   NR         54
   Rademacher_MSGCNT 2
   Rademacher_RAWMSG 0FFF0F26002500000000000033000342F652FFFFFF01
   Rademacher_TIME 2019-09-14 12:10:09
   STATE      opened
   SUBTYPE    Rohrmotor-Aktor
   TYPE       DUOFERN
   READINGS:
     2019-09-14 12:09:28   blindsMode      on
     2019-09-14 12:09:28   dawnAutomatic   off
     2019-09-14 12:09:28   defaultSlatPos  0
     2019-09-14 12:09:28   duskAutomatic   on
     2019-09-14 12:09:28   manualMode      off
     2019-09-14 12:09:28   motorDeadTime   off
     2019-09-14 12:09:28   moving          stop
     2019-09-14 12:09:28   position        0
     2019-09-14 12:09:28   rainAutomatic   off
     2019-09-14 12:09:28   rainDirection   up
     2019-09-14 12:09:28   rainMode        off
     2019-09-14 12:09:28   reversal        off
     2019-09-14 12:09:28   runningTime     24
     2019-09-14 12:09:28   slatPosition    0
     2019-09-14 12:09:28   slatRunTime     9
     2019-09-14 12:09:28   state           opened
     2019-09-14 12:09:28   sunAutomatic    off
     2019-09-14 12:09:28   sunMode         off
     2019-09-14 12:09:28   sunPosition     50
     2019-09-14 12:09:28   tiltAfterMoveLevel on
     2019-09-14 12:09:28   tiltAfterStopDown on
     2019-09-14 12:09:28   tiltInSunPos    off
     2019-09-14 12:09:28   tiltInVentPos   off
     2019-09-14 12:09:28   timeAutomatic   on
     2019-09-14 12:09:28   ventilatingMode off
     2019-09-14 12:09:28   ventilatingPosition 80
     2019-09-14 12:10:09   version         3.3
     2019-09-14 12:09:28   windAutomatic   off
     2019-09-14 12:09:28   windDirection   up
     2019-09-14 12:09:28   windMode        off
   helper:
Attributes:
   IODev      Rademacher
   eventMap   up:on down:off
   gassistantName Rolladen Arbeitszimmer
   genericDeviceType shutter
   room       Arbeitszimmer,GoogleAssistant
   userattr   Rolladen Rolladen_map rolladen rolladen_map structexclude
   webCmd     down:stop:up



Somfy Markise:


Internals:
   ADDRESS    12345D
   DEF        12345D AB 026B
   FUUID      5ca0997e-f33f-5cbc-f590-761b4dca88aecd1e
   IODev      sduino
   NAME       TR_Marquise_Dach_Links
   NR         60
   STATE      open
   TYPE       SOMFY
   move       stop
   CODE:
     1          12345D
   READINGS:
     2019-09-13 20:08:09   enc_key         AB
     2019-09-13 20:08:09   exact           0
     2019-04-24 12:27:39   parsestate      on
     2019-09-13 20:08:09   position        0
     2019-04-24 12:27:39   received        40
     2019-09-13 20:08:09   rolling_code    026B
     2019-09-13 20:08:09   state           open
Attributes:
   IODev      sduino
   devStateIcon open:fts_shutter_10 10:fts_shutter_10 20:fts_shutter_20 30:fts_shutter_30 40:fts_shutter_40 50:fts_shutter_50 60:fts_shutter_60 70:fts_shutter_70 80:fts_shutter_80 90:fts_shutter_90 down:fts_shutter_100 closed:fts_shutter_100  attr TR_Marquise_Dach_Links drive-down-time-to-100 28  attr TR_Marquise_Dach_Links drive-down-time-to-close 28  attr TR_Marquise_Dach_Links drive-up-time-to-100 0  attr TR_Marquise_Dach_Links drive-up-time-to-open 28  attr TR_Marquise_Dach_Links eventMap on:down stop:stop off:up  attr TR_Marquise_Dach_Links room Terasse West  attr TR_Marquise_Dach_Links webCmd down:stop:up
   eventMap   on:down stop:stop off:up
   genericDeviceType blinds
   model      somfyshutter
   room       GoogleAssistant,Terasse West
   userattr   Markise Markise_map structexclude
   webCmd     down:stop:up
Raspi3b+/ raspi 4b
Signalduino/conbee II/Duofern/HMIP-USB
FHEM/Somfy/Rademacher/HM/HMIP (piVCCU)/Zigbee

dominik

Bitte noch um Info was du genau gesagt hast, weil die Rückmeldung lässt darauf schliessen, dass Google das Gerät hat nicht identifizieren konnte.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ThorHoff

Ich sage: "Fahre Rolladen Arbeitszimmer hoch"  oder " Fahre Rolladen Arbeitszimmer hoch"

oder

"Fahre Rolladen Arbeitszimmer hoch"

oder

"Rolladen Arbeitszimmer hoch"
Raspi3b+/ raspi 4b
Signalduino/conbee II/Duofern/HMIP-USB
FHEM/Somfy/Rademacher/HM/HMIP (piVCCU)/Zigbee

ThorHoff

Hallo Dominik,

das mit den Markisen funktioniert per Sprache doch; Mein Signalduino war mal kurz weg ; Nach einem reset läuft er wieder sauber;
Das hilft mir auf jeden Fall schonmal;
Trotzdem verstehen ich nicht ganz, warum die Befehle nicht unter dem Device stehen;

Wäre super , wenn Du noch bei den Rolladen eine Idee hast

Viele Grüße
  Thosten

Raspi3b+/ raspi 4b
Signalduino/conbee II/Duofern/HMIP-USB
FHEM/Somfy/Rademacher/HM/HMIP (piVCCU)/Zigbee

ThorHoff

Tja , etwas zu früh gefreut

da meine Terasse 6 Markisen hat, sage ich "fahre Markise Dach Links runter"; in FHEM habe ich das attribut gasisstentname gesetzt mit MarkiseDachLinks;

Das begreift er aber nicht und macht... nichts;  :-\

ich könnte die Markisen namentlich durchnummerieren, aber vielleicht geht es auch besser

Raspi3b+/ raspi 4b
Signalduino/conbee II/Duofern/HMIP-USB
FHEM/Somfy/Rademacher/HM/HMIP (piVCCU)/Zigbee

ThorHoff

HAllo, nehme meine Aussagen von eben zurück; Sorry ; die Namen werden einwandtfrei erkannt; Allerdings meint google mit hochfahren eben 'on' und fährt damit die Markisen aus und umgekehrt; Das ist etwas unschön;
Raspi3b+/ raspi 4b
Signalduino/conbee II/Duofern/HMIP-USB
FHEM/Somfy/Rademacher/HM/HMIP (piVCCU)/Zigbee

Tabularasa

Zitat von: dominik am 10 September 2019, 22:40:15
Welche Commands sollten alles unterstuetzt werden?
off=poweroff
on=?

...und aus welchem Reading kann man den aktuellen Status (on/off) auslesen?

//EDIT
Erledigt, STV mit POWEROFF. Ich habe POWERON mit on verknuepft, da gibt es glaube ich nichts was wirklich funktioniert.

Servus, was meinst du dass da nichts funktioniert? Meinst du andere Befehle? Also ging mir auch nur um den off Befehl.
Jedoch zeigt mir die Home App den TV nicht an obwohl ich synchronisiert habe. Muss ich noch ein DeviceType angeben?
Danke

kadettilac89

Hi,

Ich habe das Attribut "nrarchive" im gaassitant device gesetzt. Die Logs werden aber nicht abgeräumt.

Idee? Was mache ich falsch?


Internals:
   FD         16
   FUUID      5c575e20-f33f-4fe4-cfe0-3563142ffe7f9b7e
   LAST_START 2019-09-15 21:39:48
   NAME       gassistant
   NOTIFYDEV  global,global:npmjs.*gassistant-fhem.*
   NR         597
   NTFY_ORDER 50-gassistant
   PID        24350
   STARTS     1
   STATE      running /usr/bin/gassistant-fhem
   TYPE       gassistant
   currentlogfile /dev/null/gassistant-2019-09-15.log
   logfile    /dev/null/gassistant-%Y-%m-%d.log
   CoProcess:
     cmdFn      gassistant_getCMD
     name       gassistant-fhem
     state      running /usr/bin/gassistant-fhem
   READINGS:
     2019-09-15 21:39:48   gassistant-fhem running /usr/bin/gassistant-fhem
     2019-09-15 21:39:51   gassistant-fhem-connection login failed, please retry
     2019-09-15 21:39:51   gassistant-fhem-lasterror FetchError: invalid json response body at https://fhemconnector.eu.auth0.com/oauth/token reason: Unexpected token i in JSON at position 0
     2019-03-09 06:46:34   gassistant-fhem-uid google-oauth2|100018623537520537581
     2019-04-17 17:24:25   gassistant-fhem-usedFeatureLevel 3
     2019-09-15 21:39:50   gassistant-fhem-version 2.0.0
     2019-09-15 21:39:51   gassistant-fhem-versionAvailable 2.0.0
     2019-09-15 21:39:50   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=V0ZhpjAS6a7iStcFeULeH4kb8grWT5WvRu042XlnRFE&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>
     2019-08-03 16:54:12   gassistantFHEM.refreshToken crypt:785709372d554d55577656480157067012411b415628673b0666050d4153396152050d1f07537231524e21792d
Attributes:
   DbLogExclude .*
   devStateIcon stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop
   gassistantFHEM-config ./gassistant-fhem.cfg
   gassistantFHEM-log /dev/null/gassistant-%Y-%m-%d.log
   group      Ghome
   nrarchive  2
   room       Server
   stateFormat gassistant-fhem



gassistant-2019-06-10.log
text
gassistant-2019-06-11.log
text
gassistant-2019-06-12.log
text
gassistant-2019-06-13.log
text
gassistant-2019-06-14.log
text
gassistant-2019-06-15.log
text
gassistant-2019-06-16.log
text
gassistant-2019-06-17.log
text
gassistant-2019-06-18.log
text
gassistant-2019-06-19.log
text
gassistant-2019-06-20.log
text
gassistant-2019-06-21.log
text
gassistant-2019-06-22.log
text
gassistant-2019-06-23.log
text
gassistant-2019-06-24.log
text
gassistant-2019-06-25.log
text
gassistant-2019-06-26.log
text
gassistant-2019-06-27.log
text
gassistant-2019-06-28.log
text
gassistant-2019-06-29.log
text
gassistant-2019-06-30.log
text
gassistant-2019-07-01.log
text
gassistant-2019-07-02.log
text
gassistant-2019-07-03.log
text
gassistant-2019-07-04.log
text
gassistant-2019-07-05.log
text
gassistant-2019-07-06.log
text
gassistant-2019-07-07.log
text
gassistant-2019-07-08.log
text
gassistant-2019-07-09.log
text
gassistant-2019-07-10.log
text
gassistant-2019-07-11.log
text
gassistant-2019-07-12.log
text
gassistant-2019-07-13.log
text
gassistant-2019-07-14.log
text
gassistant-2019-07-15.log
text
gassistant-2019-07-16.log
text
gassistant-2019-07-17.log
text
gassistant-2019-07-18.log
text
gassistant-2019-07-19.log
text
gassistant-2019-07-20.log
text
gassistant-2019-07-21.log
text
gassistant-2019-07-22.log
text
gassistant-2019-07-23.log
text
gassistant-2019-07-24.log
text
gassistant-2019-07-25.log
text
gassistant-2019-07-26.log
text
gassistant-2019-07-27.log
text
gassistant-2019-07-28.log
text
gassistant-2019-07-29.log
text
gassistant-2019-07-30.log
text
gassistant-2019-07-31.log
text
gassistant-2019-08-01.log
text
gassistant-2019-08-02.log
text
gassistant-2019-08-03.log
text
gassistant-2019-08-04.log
text
gassistant-2019-08-05.log
text
gassistant-2019-08-06.log
text
gassistant-2019-08-07.log
text
gassistant-2019-08-08.log
text
gassistant-2019-08-09.log
text
gassistant-2019-08-10.log
text
gassistant-2019-08-11.log
text
gassistant-2019-08-12.log
text
gassistant-2019-08-13.log
text
gassistant-2019-08-14.log
text
gassistant-2019-08-15.log
text
gassistant-2019-08-16.log
text
gassistant-2019-08-17.log
text
gassistant-2019-08-18.log
text
gassistant-2019-08-19.log
text
gassistant-2019-08-20.log
text
gassistant-2019-08-21.log
text
gassistant-2019-08-22.log
text
gassistant-2019-08-23.log
text
gassistant-2019-08-24.log
text
gassistant-2019-08-25.log
text
gassistant-2019-08-26.log
text
gassistant-2019-08-27.log
text
gassistant-2019-08-28.log
text
gassistant-2019-08-29.log
text
gassistant-2019-08-30.log
text
gassistant-2019-08-31.log
text
gassistant-2019-09-01.log
text
gassistant-2019-09-07.log
text
gassistant-2019-09-08.log
text
gassistant-2019-09-15.log
text
gassistant-2019-09-16.log
text

Falkenstein

Ich glaube das hat nichts mit dem gaassitant device zu tun.

Bei mir ist dieses verhalten auch bei anderen Logs von anderen Devices so.Das Attribut "nrarchive" scheint da nicht sauber zur arbeiten.Das ist aber nur meine Vermutung.

Beste Grüße
Falkes

kadettilac89

Zitat von: Falkenstein am 16 September 2019, 14:32:40
Bei mir ist dieses verhalten auch bei anderen Logs von anderen Devices so.Das Attribut "nrarchive" scheint da nicht sauber zur arbeiten.Das ist aber nur meine Vermutung.

bei den anderen logs funktioniert es sauber - bei mir. gassistant nutzt den parameter etwas anders. wenn im logfile gesetzt, wird es entfernt, dafür wird erwartet, dass das attribut im gassistand device direkt gesetzt wird.

Det20

#1196
Hallo,

voller Freude habe ich gestern festgestellt, dass nun (seit einigen Monaten :) ) auch der DeviceTyp "blind" unterstützt wird. Habe also ganz schnell meine Tahoma/RTS Rolladen hinzugefügt, die werden in der App auch korrekt angezeigt. Aber egal was ich Google sage ("Mach die Jalousien hoch", "...runter"), nix passiert. Als Befehl können die "up", "down". Hätte jetzt gedacht, dass Google ebenfalls "up" und "down" sendet, aber bei den Jalousien tut sich nix. Google bestätigt aber "Ok, ich mache die Jalousien ... runter".

===
Antwort an mich selbst: Der DeviceTyp muss "shutter" und nicht "blind" heißen, dann klappt es.
===

BTW: Nur am Rande, egal was ich bei "realRoom" eintrage, die Devices werden nicht automatisch einsortiert.
BTW2: Die Doku enthält einen Fehler, "Thermostat" wird nicht unterstützt. Es kommt der Fehler "genericDeviceType thermometer not supported in gassistant-fhem". Man muss es auf "Thermostat" stellen.

PS: Aktuell mein Lieblingsmodul! Vielen Dank dafür.

dominik

Danke fuer den Hinweis mit dem Thermometer, in welcher Doku steht das Thermometer noch drinnen?

realRoom wird von Google leider nur beim ersten Sync verarbeitet. Wenn du realRoom also neu initiieren moechtest, musst du einmal unlink machen und danach neu linken.


Btw, wer es noch nicht mitbekommen hat, Google Assistant hat nun eine maennliche Stimme, diese klingt um einiges besser als die bisherige. Einzustellen in der Home App - Konto - Einstellungen - Assistant - Assistant-Stimme.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

mmiii

Moin,

jemand eine Idee wie ich meinen Samsung F6500 in den Assistant bekomme?

define SamsungTV SamsungAV 192.168.178.xx 55000
attr SamsungTV room GoogleAssistant,Wohnzimmer


In Fhem taucht er auf und die Steuerung funktioniert auch soweit, im Assistant taucht er aber nicht auf.

Danke für Tipps
mmiii

dominik

reload in gassistant und nach einer Minute sicherheitshalber noch Hey Google, synchronisieren meine Geräte.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik