39_gassistant.pm (Google Assistant, Google Home)

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

Vorheriges Thema - Nächstes Thema

dominik

Ich glaub ich hab den Fehler gefunden...einen Moment...
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Bitte nochmals testen, ohne homebridgeMapping.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Chaos

Kaffemaschine wieder in den Gassisstant raum genommen und Gassisstant restart->

[2020-9-6 15:11:26] [LOCAL] Bonjour successfully published
[2020-9-6 15:11:26] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-connection%20connected&XHR=1
[2020-9-6 15:11:26] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-lastServerError%20failed%20to%20generateTraits%20for%20TI9555X1DE%2C%20TypeError%3A%20Cannot%20set%20property%20'Beverage.Ristretto'%20of%20undefined&XHR=1
[2020-9-6 15:11:26] Received firestore2fhem: {"ts":1599397886576,"msg":"LOG_ERROR","log":"failed to generateTraits for TI9555X1DE, TypeError: Cannot set property 'Beverage.Ristretto' of undefined"}
[2020-9-6 15:11:26] GOOGLE MSG RECEIVED: {"ts":1599397886576,"msg":"LOG_ERROR","log":"failed to generateTraits for TI9555X1DE, TypeError: Cannot set property 'Beverage.Ristretto' of undefined"}
[2020-9-6 15:11:26] [FHEM] Supported Google Device Types:


dominik

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

Chaos

Zitat von: dominik am 06 September 2020, 15:21:41
Es wird langsam :) Bitte noch ein reload.
ich zweifel gar nicht daran, dass du das hin bekommst :-)

Also Gerät ist erfolgreich in der Home App und keine Fehler im Log \o/


Allerdings kann ich noch keinen Kaffee "bestellen".

Achtung: englischer Assistant im Einsatz.
Fragen: Make an espresso
oder
Brew a coffee

Antwort:
The "Kaffeevollautomat" does not support this functionality

dominik

Gut, habe noch einen Bug gefunden. Ist eingespielt, bitte reload.

Ist bei dir Local Home active? Wenn ja, testen wir vorerst nur die Cloud. Sag dazu einfach "Ok Google, force cloud", damit geht jeder Befehl in die Cloud. Um das danach wieder zurueck zu stellen, muss man "Ok Google, force default" sagen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Chaos

#2181
Local Home hat bei mir nie funktioniert.
Multicast usw funktioniert zwischen den VLANs, etc, aber dein "Tipp" mit dem chrome://inspect hat nie eine local app unter den Devices angezeigt.

Ich hab gerade trotzdem mal force cloud gemacht, kann ja jetzt nicht schaden, für den Kaffeetest...

Die Maschine hat sich mittlerweile ausgeschaltet und einschalten per Home app geht nicht.
Lt FHEM Log : set command: BSH.Common.Setting.PowerState
Da fehlt doch BSH.Common.EnumType.PowerState.On, oder nicht?

Die Frage nach Espresso erhält nachwievor die Antwort "The "Kaffeevollautomat" does not support this functionality"


Update: Ich bin jetzt leider für ein paar Stunden AFK, kann später gerne weiter testen :-)

dominik

Ah, beim On/Off ist ein PowerState zu oft reingerutscht.

Bitte noch ein Test.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Chaos

Hi,

geht leider noch nicht
2020.09.06 20:26:22.037 3: set command: BSH.Common.Setting.PowerState

dominik

Hast du ein reload gemacht? Bitte das noch vorher machen. Lass mich wissen was bei "Mach mir einen Espresso" als Rueckmeldung kommt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Chaos

Hi, hab nen Restart gemacht und einschalten wollen.

Mach mir einen Espresso:
Entschuldige da ist ein Fehler aufgetreten, deshalb kann ich dein Smarthome Gerät nicht steuern.


Brew a coffee:
The Kaffeevollautomat does not support this functionality

Gassisstan Log:
[2020-9-6 20:35:42] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-lastServerError%20TypeError%3A%20cmd.replace%20is%20not%20a%20function&XHR=1
[2020-9-6 20:35:42] Received firestore2fhem: {"log":"TypeError: cmd.replace is not a function","msg":"LOG_ERROR","ts":1599417342247}
[2020-9-6 20:35:42] GOOGLE MSG RECEIVED: {"log":"TypeError: cmd.replace is not a function","msg":"LOG_ERROR","ts":1599417342247}
[2020-9-6 20:35:28] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-lastServerError%20TypeError%3A%20cmd.replace%20is%20not%20a%20function&XHR=1
[2020-9-6 20:35:28] Received firestore2fhem: {"msg":"LOG_ERROR","ts":1599417328177,"log":"TypeError: cmd.replace is not a function"}
[2020-9-6 20:35:28] GOOGLE MSG RECEIVED: {"msg":"LOG_ERROR","ts":1599417328177,"log":"TypeError: cmd.replace is not a function"}
[2020-9-6 20:35:11] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=set%20TI9555X1DE%20BSH.Common.Setting.PowerState%20BSH.Common.Setting.PowerState%20BSH.Common.EnumType.PowerState.On&XHR=1
[2020-9-6 20:35:11] Received firestore2fhem: {"cmd":"set TI9555X1DE BSH.Common.Setting.PowerState BSH.Common.Setting.PowerState BSH.Common.EnumType.PowerState.On","connection":"http://127.0.0.1:8083/fhem","msg":"EXECUTE","id":0,"ts":1599417311278}
[2020-9-6 20:35:11] GOOGLE MSG RECEIVED: {"cmd":"set TI9555X1DE BSH.Common.Setting.PowerState BSH.Common.Setting.PowerState BSH.Common.EnumType.PowerState.On","connection":"http://127.0.0.1:8083/fhem","msg":"EXECUTE","id":0,"ts":1599417311278}
[2020-9-6 20:35:10] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=set%20TI9555X1DE%20BSH.Common.Setting.PowerState%20BSH.Common.EnumType.PowerState.Off&XHR=1
[2020-9-6 20:35:10] Received firestore2fhem: {"cmd":"set TI9555X1DE BSH.Common.Setting.PowerState BSH.Common.EnumType.PowerState.Off","msg":"EXECUTE","ts":1599417310133,"id":0,"connection":"http://127.0.0.1:8083/fhem"}
[2020-9-6 20:35:10] GOOGLE MSG RECEIVED: {"cmd":"set TI9555X1DE BSH.Common.Setting.PowerState BSH.Common.EnumType.PowerState.Off","msg":"EXECUTE","ts":1599417310133,"id":0,"connection":"http://127.0.0.1:8083/fhem"}
[2020-9-6 20:34:39] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-lastServerError%20TypeError%3A%20cmd.replace%20is%20not%20a%20function&XHR=1
[2020-9-6 20:34:39] Received firestore2fhem: {"log":"TypeError: cmd.replace is not a function","msg":"LOG_ERROR","ts":1599417279380}
[2020-9-6 20:34:39] GOOGLE MSG RECEIVED: {"log":"TypeError: cmd.replace is not a function","msg":"LOG_ERROR","ts":1599417279380}
[2020-9-6 20:26:22] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=set%20TI9555X1DE%20BSH.Common.Setting.PowerState%20BSH.Common.Setting.PowerState%20BSH.Common.EnumType.PowerState.On&XHR=1
[2020-9-6 20:26:22] Received firestore2fhem: {"connection":"http://127.0.0.1:8083/fhem","id":0,"cmd":"set TI9555X1DE BSH.Common.Setting.PowerState BSH.Common.Setting.PowerState BSH.Common.EnumType.PowerState.On","ts":1599416781976,"msg":"EXECUTE"}
[2020-9-6 20:26:22] GOOGLE MSG RECEIVED: {"connection":"http://127.0.0.1:8083/fhem","id":0,"cmd":"set TI9555X1DE BSH.Common.Setting.PowerState BSH.Common.Setting.PowerState BSH.Common.EnumType.PowerState.On","ts":1599416781976,"msg":"EXECUTE"}


dominik

Ok, zumindest reagiert Google schon drauf, das ist gut.

Ah, beim Neustart wird kein SYNC zu Google gemacht, daher sind im Cloud Cache noch die alten Eintraege. Mach bitte ein 'reload'.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Chaos

#2187
Zitat von: dominik am 06 September 2020, 20:54:29
Ok, zumindest reagiert Google schon drauf, das ist gut.

Ah, beim Neustart wird kein SYNC zu Google gemacht, daher sind im Cloud Cache noch die alten Eintraege. Mach bitte ein 'reload'.
Mea culpa, dachte immer beim restart wird auch gesynct.
Cool, nach Reload geht einschalten und Espresso.
Testweise hab ich auch noch nen Ristretto bestellt aber es kam trotz korrekter Wiederholung von GHome ein Espresso lt Anzeige vom KVA.
Kaffee oder Kaffee Crema hab ich noch nicht hinbekommen. Kaffeevollautomat unterstützt ... nicht

[2020-9-6 21:02:59] reportstate_v2: {"requestId":"182373024198","agentUserId":"google-oauth2|100165254984006981152","payload":{"devices":{"states":{"Thermometer_WoZi":{"thermostatMode":"off","thermostatTemperatureAmbient":23.2,"thermostatHumidityAmbient":48,"humidityAmbientPercent":48,"descriptiveCapacityRemaining":"FULL","online":true},"status":"SUCCESS"}}}}
[2020-9-6 21:02:24] reportstate_v2: {"requestId":"96278118331","agentUserId":"google-oauth2|100165254984006981152","payload":{"devices":{"states":{"TI9555X1DE":{"currentCookingMode":"BREW","currentFoodQuantity":1,"currentFoodUnit":"NO_UNITS","online":true}}}}}
[2020-9-6 21:02:23] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.EspressoMacchiato
[2020-9-6 21:02:23] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.Ristretto
[2020-9-6 21:02:23] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.EspressoDoppio
[2020-9-6 21:02:23] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.EspressoMacchiato
[2020-9-6 21:02:23] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = CoffeeWorld.CafeConLeche
[2020-9-6 21:02:20] reportstate_v2: {"requestId":"908710067382","agentUserId":"google-oauth2|100165254984006981152","payload":{"devices":{"states":{"TI9555X1DE":{"currentCookingMode":"BREW","currentFoodQuantity":1,"currentFoodUnit":"NO_UNITS","online":true}}}}}
[2020-9-6 21:02:19] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.HotWater
[2020-9-6 21:02:18] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.WarmMilk
[2020-9-6 21:02:18] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = CoffeeWorld.Americano
[2020-9-6 21:02:18] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = CoffeeWorld.CafeCortado
[2020-9-6 21:02:14] reportstate_v2: {"requestId":"575441042973","agentUserId":"google-oauth2|100165254984006981152","payload":{"devices":{"states":{"TI9555X1DE":{"currentCookingMode":"BREW","currentFoodQuantity":1,"currentFoodUnit":"NO_UNITS","online":true}}}}}
[2020-9-6 21:02:13] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.CaffeLatte
[2020-9-6 21:02:13] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.Cappuccino
[2020-9-6 21:02:13] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.Coffee
[2020-9-6 21:02:12] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.EspressoMacchiato
[2020-9-6 21:02:12] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.Espresso
[2020-9-6 21:01:59] [FHEM] update reading: Thermometer_WoZi:humidity = 48
[2020-9-6 21:01:55] [FHEM] update reading: Thermometer_WoZi:humidity = 47
[2020-9-6 21:01:50] [FHEM] update reading: Thermometer_WoZi:humidity = 48
[2020-9-6 21:01:42] [FHEM] update reading: Thermometer_WoZi:humidity = 47
[2020-9-6 21:01:37] [FHEM] update reading: Thermometer_WoZi:humidity = 48
[2020-9-6 21:01:33] [FHEM] update reading: Thermometer_WoZi:humidity = 47
[2020-9-6 21:01:24] [FHEM] update reading: Thermometer_WoZi:humidity = 48
[2020-9-6 21:01:23] reportstate_v2: {"requestId":"897349588441","agentUserId":"google-oauth2|100165254984006981152","payload":{"devices":{"states":{"TI9555X1DE":{"currentCookingMode":"BREW","currentFoodQuantity":1,"currentFoodUnit":"NO_UNITS","online":true}}}}}
[2020-9-6 21:01:22] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = -
[2020-9-6 21:01:18] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=set%20TI9555X1DE%20selectProgram%20Beverage.Ristretto%3Bsleep%203%3Bset%20TI9555X1DE%20startProgram%3B&XHR=1
[2020-9-6 21:01:18] Received firestore2fhem: {"id":0,"msg":"EXECUTE","connection":"http://127.0.0.1:8083/fhem","ts":1599418878419,"cmd":"set TI9555X1DE selectProgram Beverage.Ristretto;sleep 3;set TI9555X1DE startProgram;"}
[2020-9-6 21:01:18] GOOGLE MSG RECEIVED: {"id":0,"msg":"EXECUTE","connection":"http://127.0.0.1:8083/fhem","ts":1599418878419,"cmd":"set TI9555X1DE selectProgram Beverage.Ristretto;sleep 3;set TI9555X1DE startProgram;"}
[2020-9-6 21:01:16] [FHEM] update reading: Thermometer_WoZi:humidity = 47
[2020-9-6 21:01:11] [FHEM] update reading: Thermometer_WoZi:humidity = 48
[2020-9-6 21:01:06] [FHEM] update reading: Thermometer_WoZi:humidity = 47
[2020-9-6 21:01:02] [FHEM] update reading: Thermometer_WoZi:humidity = 48
[2020-9-6 21:01:01] reportstate_v2: {"requestId":"373867522039","agentUserId":"google-oauth2|100165254984006981152","payload":{"devices":{"states":{"TI9555X1DE":{"currentCookingMode":"BREW","currentFoodQuantity":1,"currentFoodUnit":"NO_UNITS","online":true}}}}}
[2020-9-6 21:01:00] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.Espresso
[2020-9-6 21:00:58] [FHEM] update reading: Thermometer_WoZi:humidity = 47
[2020-9-6 21:00:53] [FHEM] update reading: Thermometer_WoZi:humidity = 48
[2020-9-6 21:00:13] reportstate_v2: {"requestId":"512825391975","agentUserId":"google-oauth2|100165254984006981152","payload":{"devices":{"states":{"TI9555X1DE":{"currentCookingMode":"BREW","currentFoodQuantity":1,"currentFoodUnit":"NO_UNITS","online":true}}}}}
[2020-9-6 21:00:12] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = -
[2020-9-6 21:00:05] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=set%20TI9555X1DE%20selectProgram%20Beverage.Espresso%3Bsleep%203%3Bset%20TI9555X1DE%20startProgram%3B&XHR=1
[2020-9-6 21:00:05] Received firestore2fhem: {"ts":1599418805625,"msg":"EXECUTE","connection":"http://127.0.0.1:8083/fhem","id":0,"cmd":"set TI9555X1DE selectProgram Beverage.Espresso;sleep 3;set TI9555X1DE startProgram;"}
[2020-9-6 21:00:05] GOOGLE MSG RECEIVED: {"ts":1599418805625,"msg":"EXECUTE","connection":"http://127.0.0.1:8083/fhem","id":0,"cmd":"set TI9555X1DE selectProgram Beverage.Espresso;sleep 3;set TI9555X1DE startProgram;"}
[2020-9-6 21:00:00] [FHEM] update reading: Thermometer_WoZi:humidity = 47
[2020-9-6 20:59:56] [FHEM] update reading: Thermometer_WoZi:humidity = 48
[2020-9-6 20:58:32] reportstate_v2: {"requestId":"874505067604","agentUserId":"google-oauth2|100165254984006981152","payload":{"devices":{"states":{"TI9555X1DE":{"currentCookingMode":"BREW","currentFoodQuantity":1,"currentFoodUnit":"NO_UNITS","online":true}}}}}
[2020-9-6 20:58:31] [FHEM] update reading: TI9555X1DE:BSH.Common.Root.SelectedProgram = Beverage.Espresso
[2020-9-6 20:57:41] reportstate_v2: {"requestId":"440707274480","agentUserId":"google-oauth2|100165254984006981152","payload":{"devices":{"states":{"TI9555X1DE":{"currentCookingMode":"BREW","currentFoodQuantity":1,"currentFoodUnit":"NO_UNITS","online":true}}}}}
[2020-9-6 20:57:40] [FHEM] update reading: TI9555X1DE:BSH.Common.Setting.PowerState = BSH.Common.EnumType.PowerState.On
[2020-9-6 20:57:39] reportstate_v2: {"requestId":"348520585646","agentUserId":"google-oauth2|100165254984006981152","payload":{"devices":{"states":{"TI9555X1DE":{"currentCookingMode":"BREW","currentFoodQuantity":1,"currentFoodUnit":"NO_UNITS","online":true}}}}}
[2020-9-6 20:57:38] [FHEM] update reading: TI9555X1DE:BSH.Common.Setting.PowerState = "BSH.Common.EnumType.PowerState.On"
[2020-9-6 20:57:36] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=set%20TI9555X1DE%20BSH.Common.Setting.PowerState%20BSH.Common.EnumType.PowerState.On&XHR=1
[2020-9-6 20:57:36] Received firestore2fhem: {"connection":"http://127.0.0.1:8083/fhem","cmd":"set TI9555X1DE BSH.Common.Setting.PowerState BSH.Common.EnumType.PowerState.On","msg":"EXECUTE","ts":1599418656025,"id":0}
[2020-9-6 20:57:36] GOOGLE MSG RECEIVED: {"connection":"http://127.0.0.1:8083/fhem","cmd":"set TI9555X1DE BSH.Common.Setting.PowerState BSH.Common.EnumType.PowerState.On","msg":"EXECUTE","ts":1599418656025,"id":0}
[2020-9-6 20:57:23] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=1599418513.991;fmt=JSON&timestamp=1599418643038
[2020-9-6 20:57:20] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-googleSync%20Google%20SYNC%20finished&XHR=1
[2020-9-6 20:57:20] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=setreading%20gassistant%20gassistant-fhem-usedFeatureLevel%203&XHR=1
[2020-9-6 20:57:20] Received firestore2fhem: {"msg":"UPDATE_SYNCFEATURELEVEL","ts":1599418640192,"featurelevel":3}
[2020-9-6 20:57:20] GOOGLE MSG RECEIVED: {"msg":"UPDATE_SYNCFEATURELEVEL","ts":1599418640192,"featurelevel":3}


Der Ristretto sieht aber lt Log korrekt aus, finde ich

dominik

Super! :)

Kannst du mal pruefen wie lange es dauert bis nach einem selectProgram die Anzeige vom KVA umstellt? Ich habe nach selectProgram ein 3s sleep drin bevor startProgram gesendet wird. Vielleicht braucht die Maschine laenger?

Wieso Kaffee nicht geht ist mir schon klar, da brauchen wir noch eine Loesung...die Werte in "programs" sind naemlich alle Englisch, da gibt es nur Coffee, kein Kaffee. Ich werde mir noch ueberlegen wie man da ein einfaches Mapping im homebridgeMapping hinterlegen kann.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Chaos

Manuelles Umschalten geht unter 3s.

Lt Log passiert "set TI9555X1DE selectProgram Beverage.Ristretto;sleep 3;set TI9555X1DE startProgram"
das müsste meiner Meinung nach aber ein "set TI9555X1DE BSH.Common.Root.SelectedProgram Beverage.Ristretto;sleep 3;set TI9555X1DE startProgram" sein, dann geht das :-)

Aber selbst wenn ich die manuell Abesetze scheint die Maschine manchmal auf Espresso zurückzuspringen. Muss das mal genauer loggen.