39_gassistant.pm (Google Assistant, Google Home)

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

Vorheriges Thema - Nächstes Thema

RomanB

Hi, vielleicht könnt ihr mir weiterhelfen. Ich versuche gerade meinen Dyson Ventilator einzubinden und mit dem Google Assistant steuerbar zu machen.
Die Kommunikation erfolgt per MQTT mit JSON-Strings, welche über expandJSON gemappt werden. Gesteuert wird er dann über ein DOIF-Modul. (siehe: https://forum.fhem.de/index.php?topic=93999.0)

Das ist die jsonlist2-Ausgabe:
{
  "Arg":"DOIF_update_Dyson",
  "Results": [
  {
    "Name":"DOIF_update_Dyson",
    "PossibleSets":"disable:noArg enable:noArg initialize:noArg checkall:noArg cmd_1:noArg cmd_2:noArg cmd_3:noArg cmd_4:noArg cmd_5:noArg cmd_6:noArg cmd_7:noArg  desired_fanspeed:slider,0,1,10 desired_oscillation:ON,OFF desired_mode:FAN,AUTO,OFF",
    "PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 disable:0,1 loglevel:0,1,2,3,4,5,6 wait:textField-long do:always,resetwait cmdState startup:textField-long state:textField-long initialize repeatsame repeatcmd waitsame waitdel cmdpause timerWithWait:1,0 notexist selftrigger:wait,all timerevent:1,0 checkReadingEvent:0,1 addStateEvent:1,0 checkall:event,timer,all weekdays setList:textField-long readingList DOIF_Readings:textField-long event_Readings:textField-long uiTable:textField-long event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading assistantName:textField cmdIcon devStateIcon:textField-long devStateStyle gassistantName:textField genericDeviceType:ac_unit,aircondition,airfreshener,airpurifier,awning,bathtub,bed,blender,blinds,boiler,camera,closet,coffee_maker,coffeemaker,cooktop,curtain,dehumidifier,dehydrator,dishwasher,door,drawer,dryer,fan,faucet,fireplace,fryer,garage,gate,grill,heater,hood,humidifier,kettle,light,lock,mop,mower,microwave,multicooker,outlet,oven,pergola,petfeeder,pressurecooker,radiator,refrigerator,scene,securitysystem,shutter,shower,sousvide,sprinkler,standmixer,switch,thermostat,vacuum,valve,washer,waterheater,window,yogurtmaker,carbon_monoxide_detector,charger,remotecontrol,network,router,settop,sensor,smoke_detector,tv,waterpurifier,watersoftener homebridgeMapping:textField-long icon realRoom:textField sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
    "Internals": {
      "DEF": "([$SELF:desired_fanspeed])\n(\n\u0009set mqtt_Dyson command_JSON [$SELF:command_JSON_fanspeed];\n\u0009sleep 1;\n\u0009set mqtt_Dyson command_JSON [$SELF:command_JSON_statusrequest];\u0009\n)\nDOELSEIF ([$SELF:desired_oscillation])\n(\n\u0009set mqtt_Dyson command_JSON [$SELF:command_JSON_oscillation];\n\u0009sleep 1;\n\u0009set mqtt_Dyson command_JSON [$SELF:command_JSON_statusrequest];\u0009\n)\nDOELSEIF ([$SELF:desired_mode])\n(\n\u0009set mqtt_Dyson command_JSON [$SELF:command_JSON_mode];\n\u0009sleep 1;\n\u0009set mqtt_Dyson command_JSON [$SELF:command_JSON_statusrequest];\u0009\n)\nDOELSEIF (\n\u0009(([mqtt_Dyson:act_mode] eq \"FAN\") or \n\u0009([mqtt_Dyson:act_mode] eq \"AUTO\")) and \n\u0009([mqtt_Dyson:act_fan_HML] eq \"low\")\n) (\n\u0009setreading $SELF desired_fanspeed [mqtt_Dyson:act_fan_speed];\n\u0009setreading $SELF desired_oscillation [mqtt_Dyson:act_oscillation];\n\u0009setreading $SELF desired_mode [mqtt_Dyson:act_mode];\n)\nDOELSEIF (\n\u0009(([mqtt_Dyson:act_mode] eq \"FAN\") or \n\u0009([mqtt_Dyson:act_mode] eq \"AUTO\")) and \n\u0009([mqtt_Dyson:act_fan_HML] eq \"medium\")\n) (\n\u0009setreading $SELF desired_fanspeed [mqtt_Dyson:act_fan_speed];\n\u0009setreading $SELF desired_oscillation [mqtt_Dyson:act_oscillation];\n\u0009setreading $SELF desired_mode [mqtt_Dyson:act_mode];\n)\nDOELSEIF (\n\u0009(([mqtt_Dyson:act_mode] eq \"FAN\") or \n\u0009([mqtt_Dyson:act_mode] eq \"AUTO\")) and \n\u0009([mqtt_Dyson:act_fan_HML] eq \"high\")\n) (\n\u0009setreading $SELF desired_fanspeed [mqtt_Dyson:act_fan_speed];\n\u0009setreading $SELF desired_oscillation [mqtt_Dyson:act_oscillation];\n\u0009setreading $SELF desired_mode [mqtt_Dyson:act_mode];\n)\nDOELSEIF (\n\u0009([mqtt_Dyson:act_mode] eq \"OFF\")\n) (\n\u0009setreading $SELF desired_fanspeed [mqtt_Dyson:act_fan_speed];\n\u0009setreading $SELF desired_oscillation [mqtt_Dyson:act_oscillation];\n\u0009setreading $SELF desired_mode [mqtt_Dyson:act_mode];\n)\n",
      "FUUID": "5f1a0003-f33f-f645-3f56-420d748217c05d66",
      "MODEL": "FHEM",
      "NAME": "DOIF_update_Dyson",
      "NOTIFYDEV": "DOIF_update_Dyson,mqtt_Dyson,global",
      "NR": "30",
      "NTFY_ORDER": "50-DOIF_update_Dyson",
      "STATE": "set_fanspeed",
      "TYPE": "DOIF",
      "VERSION": "22428 2020-07-18 20:32:08"
    },
    "Readings": {
      "cmd": { "Value":"1", "Time":"2020-07-24 00:28:15" },
      "cmd_event": { "Value":"DOIF_update_Dyson", "Time":"2020-07-24 00:28:15" },
      "cmd_nr": { "Value":"1", "Time":"2020-07-24 00:28:15" },
      "command_JSON_fanspeed": { "Value":"{\"msg\":\"STATE-SET\",\"time\":\"2020-07-23T22:28:15.000Z\",\"mode-reason\":\"LAPP\",\"data\":{\"fnsp\":\"6\"}}", "Time":"2020-07-24 00:28:15" },
      "command_JSON_mode": { "Value":"{\"msg\":\"STATE-SET\",\"time\":\"2020-07-23T22:28:15.000Z\",\"mode-reason\":\"LAPP\",\"data\":{\"fmod\":\"FAN\"}}", "Time":"2020-07-24 00:28:15" },
      "command_JSON_oscillation": { "Value":"{\"msg\":\"STATE-SET\",\"time\":\"2020-07-23T22:28:15.000Z\",\"mode-reason\":\"LAPP\",\"data\":{\"oson\":\"ON\"}}", "Time":"2020-07-24 00:28:15" },
      "command_JSON_staterequest": { "Value":"{\"msg\":\"REQUEST-CURRENT-STATE\",\"time\":\"2020-07-23T22:28:15.000Z\"}", "Time":"2020-07-24 00:28:15" },
      "desired_fanspeed": { "Value":"6", "Time":"2020-07-24 00:28:15" },
      "desired_mode": { "Value":"FAN", "Time":"2020-07-23 23:53:10" },
      "desired_oscillation": { "Value":"ON", "Time":"2020-07-23 23:20:12" },
      "e_DOIF_update_Dyson_desired_fanspeed": { "Value":"6", "Time":"2020-07-24 00:28:15" },
      "e_DOIF_update_Dyson_desired_mode": { "Value":"FAN", "Time":"2020-07-23 23:53:10" },
      "e_DOIF_update_Dyson_desired_oscillation": { "Value":"ON", "Time":"2020-07-23 23:20:12" },
      "mode": { "Value":"enabled", "Time":"2020-07-23 23:48:47" },
      "state": { "Value":"set_fanspeed", "Time":"2020-07-24 00:28:15" }
    },
    "Attributes": {
      "alias": "Ventilator",
      "assistantName": "Dyson",
      "cmdState": "set_fanspeed|set_oscillation|set_mode|stat_AnLow|stat_AnMedium|stat_AnHigh|stat_Off",
      "devStateIcon": "set_.*:vent_ventilation stat_AnLow:vent_ventilation_level_0@green stat_AnMedium:vent_ventilation_level_1@orange stat_AnHigh:vent_ventilation_level_3@red stat_Off:vent_ventilation_level_0@grey",
      "do": "always",
      "genericDeviceType": "ac_unit",
      "icon": "fhem_dyson_air",
      "readingList": "desired_fanspeed,desired_oscillation,desired_mode",
      "room": "Dyson,GoogleAssistant",
      "setList": "desired_fanspeed:slider,0,1,10 desired_oscillation:ON,OFF desired_mode:FAN,AUTO,OFF",
      "userReadings": "command_JSON_fanspeed \u0009\u0009{ (dyson_json_compose(\"fnsp\", ReadingsVal(\"$NAME\", \"desired_fanspeed\", \"1\"))) }, \ncommand_JSON_oscillation\u0009{ (dyson_json_compose(\"oson\", ReadingsVal(\"$NAME\", \"desired_oscillation\", \"OFF\"))) }, \ncommand_JSON_mode\u0009\u0009{ (dyson_json_compose(\"fmod\", ReadingsVal(\"$NAME\", \"desired_mode\", \"OFF\"))) },\ncommand_JSON_staterequest\u0009{ (dyson_json_compose(\"sreq\", \"dummy\")) }",
      "webCmd": "desired_fanspeed:desired_oscillation:desired_mode",
      "webCmdLabel": "Fanspeed:Drehen:Modus"
    }
  }  ],
  "totalResultsReturned":1
}


In der Google Assistant-App wird das Gerät leider nicht angezeigt. Stelle ich genericDeviceType auf Fan, wird er zwar angezeigt, steuern lässt er sich dennoch nicht.
Bin um jede Hilfe dankbar! :-D

SouzA

Zitat von: SouzA am 23 Juli 2020, 19:22:49
Heute wieder...
Habe den Eindruck, es häuft sich.

Bis denn
SouzA
Jup, schon wieder.
Keine Meldung, kein log... Keine Verbindung mehr.
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

Tabularasa

Zitat von: SouzA am 26 Juli 2020, 10:42:16
Jup, schon wieder.
Keine Meldung, kein log... Keine Verbindung mehr.
Bis denn
SouzA

Ja bei mir auch :o Auch die Zonenreinigung vom Staubsaugerroboter will nicht mehr :-\

amenomade

Zitat von: SouzA am 26 Juli 2020, 10:42:16
Jup, schon wieder.
Keine Meldung, kein log... Keine Verbindung mehr.
Bis denn
SouzA
Hast Du schon in der system-Log (journalctl o. dmesg) geschaut, ob was auffällig ist?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

X-Byte

Auch hier wieder, wohl irgendwann in den frühen Morgenstunden passiert. Im Log steht noch, dass Readings übermittelt wurden, seit 04:20 (DSL Reconnect?) war dann Funkstille.

Google Home reagiert noch fleissig auf Sprachanfragen und sagt, es würde Lichter einschalten und Rollläden bewegen, passiert aber nicht.

Ein gassistant restart hat wie üblich geholfen, ist aber unfein

SouzA

Zitat von: amenomade am 26 Juli 2020, 21:20:18
Hast Du schon in der system-Log (journalctl o. dmesg) geschaut, ob was auffällig ist?
Bis dato noch nicht.
Bin zur Zeit auch im Urlaub und die nächsten Tage überhaupt nicht zu Hause... Danach check ich das.

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

smoki3

Bei mir geht seit gestern local home nicht mehr. Bekomme keine Fehlermeldung oder sonstiges. Es steht einfach dauerhaft auf inactive

hawkeyexp

Moin zusammen,

wollte heute mal die Brücke zu Google aufgbauen aber leider geht die Insallation in die Hose :-(

root@SERVERPI:~# sudo npm install -g gassistant-fhem --unsafe-perm
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
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 ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@firebase%2fapp-types - Not found
npm ERR! 404
npm ERR! 404  '@firebase/app-types@0.6.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'firebase'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Gibts hier schon Lösungen ?

Danke !

hawkeyexp

Zitat von: hawkeyexp am 06 August 2020, 11:27:44
Moin zusammen,

wollte heute mal die Brücke zu Google aufgbauen aber leider geht die Insallation in die Hose :-(

root@SERVERPI:~# sudo npm install -g gassistant-fhem --unsafe-perm
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
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 ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@firebase%2fapp-types - Not found
npm ERR! 404
npm ERR! 404  '@firebase/app-types@0.6.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'firebase'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Gibts hier schon Lösungen ?

Danke !

Hat sich ereldigt - mal npm und nodejs komplett rausgerissen und neu installiert - danach klappt es :-)

hondong

Hallo,

ich habe beim FHEM mehrere Shelly RGBWs mit Tasmota über MQTT2 integriert.
FHEM erkennt diese sauber und kann diese steuern.

Bei Google bekomme ich aktuell nur ein / ausschalten und die Helligkeit hin.
Die Farbe kann ich nicht setzen.

Ich habe bereits mehrere MQTT2 Templates ausprobiert (tasmota_rgbw_controller, tasmota_rgbw_controller)

Was muss ich machen, damit ich die Farbe setzen kann?
Eigentlich sollte google das ja selbst erkennen.

VIele Grüße, Nils

RomanB

Zitat von: RomanB am 24 Juli 2020, 12:24:09
Hi, vielleicht könnt ihr mir weiterhelfen. Ich versuche gerade meinen Dyson Ventilator einzubinden und mit dem Google Assistant steuerbar zu machen.
Die Kommunikation erfolgt per MQTT mit JSON-Strings, welche über expandJSON gemappt werden. Gesteuert wird er dann über ein DOIF-Modul. (siehe: https://forum.fhem.de/index.php?topic=93999.0)

Das ist die jsonlist2-Ausgabe:
{
  "Arg":"DOIF_update_Dyson",
  "Results": [
  {
    "Name":"DOIF_update_Dyson",
    "PossibleSets":"disable:noArg enable:noArg initialize:noArg checkall:noArg cmd_1:noArg cmd_2:noArg cmd_3:noArg cmd_4:noArg cmd_5:noArg cmd_6:noArg cmd_7:noArg  desired_fanspeed:slider,0,1,10 desired_oscillation:ON,OFF desired_mode:FAN,AUTO,OFF",
    "PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 disable:0,1 loglevel:0,1,2,3,4,5,6 wait:textField-long do:always,resetwait cmdState startup:textField-long state:textField-long initialize repeatsame repeatcmd waitsame waitdel cmdpause timerWithWait:1,0 notexist selftrigger:wait,all timerevent:1,0 checkReadingEvent:0,1 addStateEvent:1,0 checkall:event,timer,all weekdays setList:textField-long readingList DOIF_Readings:textField-long event_Readings:textField-long uiTable:textField-long event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading assistantName:textField cmdIcon devStateIcon:textField-long devStateStyle gassistantName:textField genericDeviceType:ac_unit,aircondition,airfreshener,airpurifier,awning,bathtub,bed,blender,blinds,boiler,camera,closet,coffee_maker,coffeemaker,cooktop,curtain,dehumidifier,dehydrator,dishwasher,door,drawer,dryer,fan,faucet,fireplace,fryer,garage,gate,grill,heater,hood,humidifier,kettle,light,lock,mop,mower,microwave,multicooker,outlet,oven,pergola,petfeeder,pressurecooker,radiator,refrigerator,scene,securitysystem,shutter,shower,sousvide,sprinkler,standmixer,switch,thermostat,vacuum,valve,washer,waterheater,window,yogurtmaker,carbon_monoxide_detector,charger,remotecontrol,network,router,settop,sensor,smoke_detector,tv,waterpurifier,watersoftener homebridgeMapping:textField-long icon realRoom:textField sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
    "Internals": {
      "DEF": "([$SELF:desired_fanspeed])\n(\n\u0009set mqtt_Dyson command_JSON [$SELF:command_JSON_fanspeed];\n\u0009sleep 1;\n\u0009set mqtt_Dyson command_JSON [$SELF:command_JSON_statusrequest];\u0009\n)\nDOELSEIF ([$SELF:desired_oscillation])\n(\n\u0009set mqtt_Dyson command_JSON [$SELF:command_JSON_oscillation];\n\u0009sleep 1;\n\u0009set mqtt_Dyson command_JSON [$SELF:command_JSON_statusrequest];\u0009\n)\nDOELSEIF ([$SELF:desired_mode])\n(\n\u0009set mqtt_Dyson command_JSON [$SELF:command_JSON_mode];\n\u0009sleep 1;\n\u0009set mqtt_Dyson command_JSON [$SELF:command_JSON_statusrequest];\u0009\n)\nDOELSEIF (\n\u0009(([mqtt_Dyson:act_mode] eq \"FAN\") or \n\u0009([mqtt_Dyson:act_mode] eq \"AUTO\")) and \n\u0009([mqtt_Dyson:act_fan_HML] eq \"low\")\n) (\n\u0009setreading $SELF desired_fanspeed [mqtt_Dyson:act_fan_speed];\n\u0009setreading $SELF desired_oscillation [mqtt_Dyson:act_oscillation];\n\u0009setreading $SELF desired_mode [mqtt_Dyson:act_mode];\n)\nDOELSEIF (\n\u0009(([mqtt_Dyson:act_mode] eq \"FAN\") or \n\u0009([mqtt_Dyson:act_mode] eq \"AUTO\")) and \n\u0009([mqtt_Dyson:act_fan_HML] eq \"medium\")\n) (\n\u0009setreading $SELF desired_fanspeed [mqtt_Dyson:act_fan_speed];\n\u0009setreading $SELF desired_oscillation [mqtt_Dyson:act_oscillation];\n\u0009setreading $SELF desired_mode [mqtt_Dyson:act_mode];\n)\nDOELSEIF (\n\u0009(([mqtt_Dyson:act_mode] eq \"FAN\") or \n\u0009([mqtt_Dyson:act_mode] eq \"AUTO\")) and \n\u0009([mqtt_Dyson:act_fan_HML] eq \"high\")\n) (\n\u0009setreading $SELF desired_fanspeed [mqtt_Dyson:act_fan_speed];\n\u0009setreading $SELF desired_oscillation [mqtt_Dyson:act_oscillation];\n\u0009setreading $SELF desired_mode [mqtt_Dyson:act_mode];\n)\nDOELSEIF (\n\u0009([mqtt_Dyson:act_mode] eq \"OFF\")\n) (\n\u0009setreading $SELF desired_fanspeed [mqtt_Dyson:act_fan_speed];\n\u0009setreading $SELF desired_oscillation [mqtt_Dyson:act_oscillation];\n\u0009setreading $SELF desired_mode [mqtt_Dyson:act_mode];\n)\n",
      "FUUID": "5f1a0003-f33f-f645-3f56-420d748217c05d66",
      "MODEL": "FHEM",
      "NAME": "DOIF_update_Dyson",
      "NOTIFYDEV": "DOIF_update_Dyson,mqtt_Dyson,global",
      "NR": "30",
      "NTFY_ORDER": "50-DOIF_update_Dyson",
      "STATE": "set_fanspeed",
      "TYPE": "DOIF",
      "VERSION": "22428 2020-07-18 20:32:08"
    },
    "Readings": {
      "cmd": { "Value":"1", "Time":"2020-07-24 00:28:15" },
      "cmd_event": { "Value":"DOIF_update_Dyson", "Time":"2020-07-24 00:28:15" },
      "cmd_nr": { "Value":"1", "Time":"2020-07-24 00:28:15" },
      "command_JSON_fanspeed": { "Value":"{\"msg\":\"STATE-SET\",\"time\":\"2020-07-23T22:28:15.000Z\",\"mode-reason\":\"LAPP\",\"data\":{\"fnsp\":\"6\"}}", "Time":"2020-07-24 00:28:15" },
      "command_JSON_mode": { "Value":"{\"msg\":\"STATE-SET\",\"time\":\"2020-07-23T22:28:15.000Z\",\"mode-reason\":\"LAPP\",\"data\":{\"fmod\":\"FAN\"}}", "Time":"2020-07-24 00:28:15" },
      "command_JSON_oscillation": { "Value":"{\"msg\":\"STATE-SET\",\"time\":\"2020-07-23T22:28:15.000Z\",\"mode-reason\":\"LAPP\",\"data\":{\"oson\":\"ON\"}}", "Time":"2020-07-24 00:28:15" },
      "command_JSON_staterequest": { "Value":"{\"msg\":\"REQUEST-CURRENT-STATE\",\"time\":\"2020-07-23T22:28:15.000Z\"}", "Time":"2020-07-24 00:28:15" },
      "desired_fanspeed": { "Value":"6", "Time":"2020-07-24 00:28:15" },
      "desired_mode": { "Value":"FAN", "Time":"2020-07-23 23:53:10" },
      "desired_oscillation": { "Value":"ON", "Time":"2020-07-23 23:20:12" },
      "e_DOIF_update_Dyson_desired_fanspeed": { "Value":"6", "Time":"2020-07-24 00:28:15" },
      "e_DOIF_update_Dyson_desired_mode": { "Value":"FAN", "Time":"2020-07-23 23:53:10" },
      "e_DOIF_update_Dyson_desired_oscillation": { "Value":"ON", "Time":"2020-07-23 23:20:12" },
      "mode": { "Value":"enabled", "Time":"2020-07-23 23:48:47" },
      "state": { "Value":"set_fanspeed", "Time":"2020-07-24 00:28:15" }
    },
    "Attributes": {
      "alias": "Ventilator",
      "assistantName": "Dyson",
      "cmdState": "set_fanspeed|set_oscillation|set_mode|stat_AnLow|stat_AnMedium|stat_AnHigh|stat_Off",
      "devStateIcon": "set_.*:vent_ventilation stat_AnLow:vent_ventilation_level_0@green stat_AnMedium:vent_ventilation_level_1@orange stat_AnHigh:vent_ventilation_level_3@red stat_Off:vent_ventilation_level_0@grey",
      "do": "always",
      "genericDeviceType": "ac_unit",
      "icon": "fhem_dyson_air",
      "readingList": "desired_fanspeed,desired_oscillation,desired_mode",
      "room": "Dyson,GoogleAssistant",
      "setList": "desired_fanspeed:slider,0,1,10 desired_oscillation:ON,OFF desired_mode:FAN,AUTO,OFF",
      "userReadings": "command_JSON_fanspeed \u0009\u0009{ (dyson_json_compose(\"fnsp\", ReadingsVal(\"$NAME\", \"desired_fanspeed\", \"1\"))) }, \ncommand_JSON_oscillation\u0009{ (dyson_json_compose(\"oson\", ReadingsVal(\"$NAME\", \"desired_oscillation\", \"OFF\"))) }, \ncommand_JSON_mode\u0009\u0009{ (dyson_json_compose(\"fmod\", ReadingsVal(\"$NAME\", \"desired_mode\", \"OFF\"))) },\ncommand_JSON_staterequest\u0009{ (dyson_json_compose(\"sreq\", \"dummy\")) }",
      "webCmd": "desired_fanspeed:desired_oscillation:desired_mode",
      "webCmdLabel": "Fanspeed:Drehen:Modus"
    }
  }  ],
  "totalResultsReturned":1
}


In der Google Assistant-App wird das Gerät leider nicht angezeigt. Stelle ich genericDeviceType auf Fan, wird er zwar angezeigt, steuern lässt er sich dennoch nicht.
Bin um jede Hilfe dankbar! :-D

Da ich leider nicht wirklich eine Antwort bekommen habe, habe ich mich dieses Wochenende mehr mit der Thematik beschäftigt und es geschafft, meinen Dyson steuerbar zu machen. Vielleicht stolpert ja jemand anderes mal über das Thema, deshalb habe ich unter https://forum.fhem.de/index.php/topic,93999.msg1078812.html#msg1078812 mein mapping gepostet. Das genericDeviceType ist "fan".

Viele Grüße!

RomanB

Ich bin's noch mal. Gibt es denn eine Möglichkeit das Cook-Trait über das homebridgeMapping zu konfigurieren? Die Konfigurations-Doku schweigt sich hierüber leider aus. Ich würde gerne meine Siemens Kaffeemaschine anbinden und mehr als ein- und ausschalten können! :-)

dominik

Zitat von: juemuc am 03 Juli 2020, 23:05:21
Hallo zusammen,

neben meinen Problemen mit dem Status der Fensterkontakte habe ich auch Probleme mit der Definition eines Rollos

Wenn ich sage: "Hey Google, setze Rollo auf 75%" erhalte ich die Antwort: "Rollo wurde auf 75% geöffnet" Übergeben wird aber der Wert 25%.
Das homebridgemapping ist wie folgt definiert:
OpenClose=state,cmdOpen=pct 100,cmdClose=pct 0

Wer hat eine Idee? Alle Versuche auch mit "intervert = true" waren erfolglos.

Viele Grüße
Jürgen

Poste bitte ein jsonlist2 von diesem Device, dann kann ich das korrigieren.

Bei Verwendung von homebridgeMapping empfehle ich generell immer das JSON Format zu verwenden. Alle Beispiele hier https://wiki.fhem.de/wiki/Google_Assistant_FHEM_Connect#Konfiguration werde ich noch dahingehend anpassen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: SouzA am 26 Juli 2020, 10:42:16
Jup, schon wieder.
Keine Meldung, kein log... Keine Verbindung mehr.
Bis denn
SouzA

Kannst du bitte pruefen ob irgendein Prozess auf 100% laeuft wenn das passiert? Ich hatte es bei mir nun schon laenger nicht mehr und dachte daher, dass es bei Google an irgendeiner Cloud Function lagt, duerfte dann aber doch nicht der Fall sein.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: Tabularasa am 26 Juli 2020, 18:35:44
Ja bei mir auch :o Auch die Zonenreinigung vom Staubsaugerroboter will nicht mehr :-\

Die Zonenreinigung (falls du einen Xiaomi Vacuum hast) musst du umstellen, da wird nun statt segment_clean nur mehr segment als Befehl benoetigt mit dem neuen XiaomiDevice Modul. Hatte ich bei mir auch. Falls du zone verwendest, muesste es funktionieren.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik