39_gassistant.pm (Google Assistant, Google Home)

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

Vorheriges Thema - Nächstes Thema

Fry3199

Zitat von: dominik am 03 Februar 2020, 18:18:51

Ich habe Shellys 2.5, jedoch kein Rollo. Das closes/opens ist bei anderen Rollos notwendig. Kannst du bitte ein jsonlist2 <device> posten? Wenn in den Commands close/open drin steht, koennte ich das rausfiltern.

Hallo Dominik, hier der Jsonlist2 Eintrag von meinem Shelly2.5 der als Rollo eingerichtet ist:

{
  "Arg":"Shelly",
  "Results": [
  {
    "Name":"Shelly",
    "PossibleSets":"open:noArg close:noArg half:noArg stop:noArg pct:slider,0,1,100 x_recalibration:noArg x_update:noArg x_mqttcom attrTemplate:?,General_Info,MQTT2_CLIENT_general_bridge,tasmota_basic,tasmota_basic_state_power1,tasmota_1ch+motion+SI7021,tasmota_POW,tasmota_POW_USB_split,tasmota_plug_with_rgbw_split,tasmota_ir,tasmota_rf,tasmota_use_DS18x20_id,tasmota_clear_readings_reset_readingsList_and_reboot,tasmota_prefix_clearing_and_reboot,tasmota_set_lowercase_texts_and_state1,tasmota_set_uppercase_texts_and_state1,tasmota_set_power1_state_to_power,tasmota_2channel_split,tasmota_2ch_unified,tasmota_2ch_shutter_invert_1,tasmota_2ch_shutter_invert_0,tasmota_4channel_split,tasmota_4ch_unified_basic_text,tasmota_4ch_unified_icon,tasmota_rgb_led_controller,tasmota_rgbw_led,tasmota_rgbwct_led,tasmota_TuyaMCU_dimmer,shelly1,shelly_announces,shellyplug,shelly1_w_energy_meassuring,shelly1_w_energy_meassuring_washer_example,shelly2_split,shelly25_split,shelly2_roller,shelly25_roller_invert_0,shelly25_roller_invert_1,shelly4pro_split,shelly4pro_unified,shellybulb,shellyht,shellyflood,shelly2rgbw_color,shelly2rgbw_4w_split,shellydimmer,eBus_daemon_splitter,ems-esp_heater_device,ems-esp_boiler,ems-esp_thermostat_read-only,ems-esp_thermostat_simple,ems-esp_thermostat_RC35_type,zigbee2mqtt_bridge,wled_controller,go_eCharger,esp_milight_hub_bridge,OpenMQTTGateway_MCU,wallpanel_app",
    "PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev autocreate:0,1 bridgeRegexp:textField-long devicetopic devPos disable:0,1 disabledForIntervals getList:textField-long imageLink jsonMap:textField-long model readingList:textField-long setExtensionsEvent:1,0 setList:textField-long setStateList 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 devStateIcon:textField-long devStateStyle gassistantName:textField genericDeviceType:switch,outlet,light,thermostat,aircondition,airfreshener,airpurifier,blinds,camera,coffeemaker,dishwasher,dryer,fan,fireplace,heater,kettle,oven,refrigerator,scene,sprinkler,vacuum,washer,awning,boiler,curtain,door,garage,gate,hood,lock,microwave,pregola,securitysystem,shutter,shower,valve,waterheater,window,ac_unit,bathtub,bed,blender,closet,coffee_maker,cooktop,dehumidifier,dehydrator,drawer,faucet,fryer,grill,humidifier,mop,mower,multicooker,pergola,petfeeder,pressurecooker,radiator,sousvide,standmixer,yogurtmaker homebridgeMapping:textField-long icon realRoom:textField sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
    "Internals": {
      "CID": "shellyswitch25_98F4ABF2E66D",
      "DEF": "shellyswitch25_98F4ABF2E66D",
      "DEVICETOPIC": "Shelly",
      "FUUID": "5e3498c7-f33f-5a63-8fa5-c44e22e674aea1a4",
      "LASTInputDev": "MQTT2_FHEM_Server",
      "MQTT2_FHEM_Server_MSGCNT": "1054",
      "MQTT2_FHEM_Server_TIME": "2020-02-04 20:14:50",
      "MSGCNT": "1054",
      "NAME": "Shelly",
      "NR": "30",
      "STATE": "<a href=\"http://192.168.178.63\" target=\"_blank\">\ntrue\n</a>\n-1",
      "TYPE": "MQTT2_DEVICE"
    },
    "Readings": {
      "current": { "Value":"stop", "Time":"2020-02-04 20:07:19" },
      "energy": { "Value":"0", "Time":"2020-02-04 20:14:50" },
      "fw_ver": { "Value":"20200122-090247/v1.5.9@4b657c90", "Time":"2020-02-04 20:07:19" },
      "id": { "Value":"shellyswitch25-98F4ABF2E66D", "Time":"2020-02-04 20:07:19" },
      "input0": { "Value":"0", "Time":"2020-02-04 20:14:50" },
      "input1": { "Value":"0", "Time":"2020-02-04 20:14:50" },
      "ip": { "Value":"192.168.178.63", "Time":"2020-02-04 20:07:19" },
      "mac": { "Value":"98F4ABF2E66D", "Time":"2020-02-04 20:07:19" },
      "new_fw": { "Value":"false", "Time":"2020-02-04 20:07:19" },
      "online": { "Value":"true", "Time":"2020-02-04 20:07:19" },
      "overtemperature": { "Value":"0", "Time":"2020-02-04 20:14:50" },
      "pct": { "Value":"-1", "Time":"2020-02-04 20:14:50" },
      "power": { "Value":"0.00", "Time":"2020-02-04 20:14:50" },
      "relay_0": { "Value":"off", "Time":"2020-01-31 22:35:37" },
      "relay_0_energy": { "Value":"0", "Time":"2020-01-31 22:35:37" },
      "relay_0_power": { "Value":"0.00", "Time":"2020-01-31 22:35:37" },
      "relay_1": { "Value":"off", "Time":"2020-01-31 22:35:37" },
      "relay_1_energy": { "Value":"0", "Time":"2020-01-31 22:35:37" },
      "relay_1_power": { "Value":"0.00", "Time":"2020-01-31 22:35:37" },
      "roller_0_energy": { "Value":"0", "Time":"2020-02-04 20:14:50" },
      "roller_0_power": { "Value":"0.00", "Time":"2020-02-04 20:14:50" },
      "state": { "Value":"-1", "Time":"2020-02-04 20:14:50" },
      "temperature": { "Value":"46.06", "Time":"2020-02-04 20:14:50" },
      "temperature_f": { "Value":"114.90", "Time":"2020-02-04 20:14:50" },
      "x_mqttcom": { "Value":"set announce", "Time":"2020-01-31 22:15:44" }
    },
    "Attributes": {
      "IODev": "MQTT2_FHEM_Server",
      "cmdIcon": "open:fts_shutter_up close:fts_shutter_down stop:fts_shutter_manual half:fts_shutter_50",
      "comment": "Shelly 2.5 in Roller-Mode. 100=opened / 0=closed",
      "devStateIcon": "{ my $amp = ReadingsVal($name,\"online\",\"false\") eq \"false\" ? \"rot\" : ReadingsVal($name,\"new_fw\",\"false\") eq \"true\" ? \"gelb\" : \"gruen\";; my $con = ReadingsVal($name,\"state\",\"undef\");; $con = 100 - $con if $con =~ /\u005cd+/;; my $pic = $con eq \"opening\" ? 'fts_shutter_up@red' : $con eq \"closing\" ? 'fts_shutter_down@red' : $con eq \"100\" ? 'fts_shutter_100' : $con =~ /(\u005cd)\u005cd/ ? 'fts_shutter_'.$1.'0' : $con =~ /\u005cb\u005cd\u005cb/ ? 'fts_shutter_10' : 'fts_shutter_updown';; my $show = \"$amp\" eq \"gelb\" ? \"<a href=\u005c\"/fhem?cmd.dummy=set $name x_update&XHR=1\u005c\">\".FW_makeImage(\"10px-kreis-\".$amp).\"</a>\" : \"<a href=\u005c\"http://\".ReadingsVal($name,\"ip\",\"none\").\" \u005c\"target=\u005c\"_blank\u005c\">\".FW_makeImage(\"10px-kreis-\".$amp).\"</a>\";; \"<div> $show <a href=\u005c\"/fhem?cmd.dummy=set $name toggle&XHR=1\u005c\"></a>\".FW_makeImage($pic).\" </div>\"}",
      "getList": "power:noArg shellies/shellyswitch25-98F4ABF2E66D/relay/power power",
      "model": "shelly25_roller_invert_0",
      "readingList": "shellies/shellyswitch25-98F4ABF2E66D/roller/0/pos:.* pct\n  shellies/shellyswitch25-98F4ABF2E66D/status/0/rollers:.* power\n  shellies/shellyswitch25-98F4ABF2E66D/online:.* online\n  shellies/shellyswitch25-98F4ABF2E66D/announce:.* { json2nameValue($EVENT) }\n  shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-98F4ABF2E66D...mac.*, ? json2nameValue($EVENT) : undef }\n  shellies/shellyswitch25-98F4ABF2E66D/roller/0:.* current\n  shellies/shellyswitch25-98F4ABF2E66D/roller/0:open {{'state' => 'opening'}}\n  shellies/shellyswitch25-98F4ABF2E66D/roller/0:close {{'state' => 'closing'}}\n  shellies/shellyswitch25-98F4ABF2E66D/roller/0/pos:.* state\n  shellies/shellyswitch25-98F4ABF2E66D/input/1:.* input1\n  shellies/shellyswitch25-98F4ABF2E66D/input/0:.* input0\n  shellies/shellyswitch25-98F4ABF2E66D/relay/power:.* power\n  shellies/shellyswitch25-98F4ABF2E66D/relay/energy:.* energy\n  shellies/shellyswitch25-98F4ABF2E66D/temperature:.* temperature\n  shellies/shellyswitch25-98F4ABF2E66D/overtemperature:.* overtemperature\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/relay/0:.* relay_0\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/relay/0/power:.* relay_0_power\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/relay/0/energy:.* relay_0_energy\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/relay/1:.* relay_1\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/relay/1/power:.* relay_1_power\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/relay/1/energy:.* relay_1_energy\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/temperature_f:.* temperature_f\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/roller/0/power:.* roller_0_power\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/roller/0/energy:.* roller_0_energy",
      "realRoom": "Wohnzimmer",
      "room": "GoogleAssistant,MQTT2_DEVICE,Wohnzimmer",
      "setList": "open:noArg shellies/shellyswitch25-98F4ABF2E66D/roller/0/command open\n  close:noArg shellies/shellyswitch25-98F4ABF2E66D/roller/0/command close\n  half:noArg shellies/shellyswitch25-98F4ABF2E66D/roller/0/command/pos 50\n  stop:noArg shellies/shellyswitch25-98F4ABF2E66D/roller/0/command stop\n  pct:slider,0,1,100 shellies/shellyswitch25-98F4ABF2E66D/roller/0/command/pos $EVTPART1\n  x_recalibration:noArg shellies/shellyswitch25-98F4ABF2E66D/roller/0/command rc\n  x_update:noArg shellies/shellyswitch25-98F4ABF2E66D/command update_fw\n  x_mqttcom shellies/shellyswitch25-98F4ABF2E66D/command $EVTPART1",
      "setStateList": "open close half stop pct",
      "stateFormat": "<a href=\"http://ip\" target=\"_blank\">\nonline\n</a>\nstate",
      "webCmd": ":open:close:half:stop:pct"
    }
  }  ],
  "totalResultsReturned":1
}

Pythonf

Ich komme gerade nicht weiter, bei einem Schalter, der mir als Dimmer eingetragen wird. Das Z-Wave Gerät hat ärgerlicherweise einen set <> dim befehl ohne Funktion.
Internals:
   DEF        cbc625fe 1282
   FUUID      5e35e009-f33f-3663-a8ec-3af742f9c1ea14b2
   FVERSION   10_ZWave.pm:0.210250/2020-01-20
   INTRIGGER  1
   IODev      ZWDongle_0
   LASTInputDev ZWDongle_0
   MSGCNT     9
   NAME       Deckenlicht.Flur.02
   NR         44
   NTFY_TRIGGERTIME 2020-02-04 21:37:06
   STATE      off
   TYPE       ZWave
   ZWDongle_0_MSGCNT 9
   ZWDongle_0_RAWMSG 000400050c600d02013202213200000000
   ZWDongle_0_TIME 2020-02-04 21:37:20
   ZWaveSubDevice yes
   endpointParent Deckenlicht.Flur
   homeId     cbc625fe
   isWakeUp   
   nodeIdHex  0502
   CHANGED:
     off
     off
     off
     reportedState: off
     power: 0 W
     off
     reportedState: off
     power: 0 W
     off
     off
     reportedState: off
     on
     on
     reportedState: on
     power: 10.6 W
     dim 100
     on
     dim 100
     off
     off
     reportedState: off
     power: 0 W
   CHANGEDWITHSTATE:
   CHANGETIME:
   Helper:
     DBLOG:
       state:
         logdb:
           TIME       1580848626.0278
           VALUE      off
   READINGS:
     2020-02-04 21:36:01   associatedWith  Deckenlicht.Flur
     2020-02-04 20:58:34   energy          25.85 kWh
     2020-02-04 21:37:20   power           0 W
     2020-02-04 21:37:19   reportedState   off
     2020-02-04 21:37:19   state           off
Attributes:
   IODev      ZWDongle_0
   classes    ZWAVEPLUS_INFO VERSION SWITCH_BINARY ASSOCIATION ASSOCIATION_GRP_INFO MULTI_CHANNEL_ASSOCIATION METER MARK SWITCH_MULTILEVEL
   group      Beleuchtung,ZWave
   homebridgeMapping clear
On=state,valueOn=on,valueOff=off,cmdOn=on,cmdOff=off
   room       GoogleAssistant,ZWave
   userattr   Deckenlicht.Flur.01 Deckenlicht.Flur.01_map room_map structexclude


Ich hab schon genericDeviceType switch/light versucht, dann auch clear sowie clear=Brightness, clear=RGB und mir gehen langsam die Ideen aus.
gassistant und fhem sind auf dem neuesten Stand. Sowohl reload, restart als auch fhem restart habe ich getestet.

Grüße
Fabian

dominik

Zitat von: SouzA am 03 Februar 2020, 21:33:18
Moin Dominik,

es funktioniert on/off. Bedeutet, dass zuerst der HM-Schalter eingeschaltet wird um dann die HUE zum Leuchten zu bringen, wenn man sagt "Dimme auf 50%".
(Wobei hier deine eingestellte Zeit manchmal zu wenig ist. Die Hausautomatik ist oftmals nicht so schnell mit dem Abarbeiten...)

Wenn die Lampe an ist und ich sage "Stelle Lampe auf kaltweiß (oder warmweiß, egal)." dann kommt der Fehler, dass Google nicht weiß wie das geht. Die Lampe kann nur Lichttemperatur, keine Farben.
Bei anderen HUEs im gassistant, die Farben können, funktioniert aber die Ansage mit den Farben.

Bis denn
SouzA

Das mit dem delayAfter werde ich konfigurierbar machen, aktuell ist es 1s.

Ah, du hast eine Hue die nur Temperatur kann...jetzt kenn ich mich aus :) Kannst du mir von der bitte ein jsonlist2 posten?

Zitat von: diddle am 04 Februar 2020, 09:12:40
Hi Dominik,

hier isser...


{
  "Arg":"Wz_Ro_Essecke",
  "Results": [
  {
    "Name":"Wz_Ro_Essecke",
    "PossibleSets":"assignHmKey:noArg clear:readings,trigger,register,oldRegs,rssi,msgEvents,msgErrors,attack,all deviceRename down eventL eventS fwUpdate getConfig:noArg getDevInfo:noArg getRegRaw getSerial:noArg getVersion:noArg inhibit:on,off off:noArg on:noArg pair:noArg pct:slider,0,1,100 peerBulk peerIODev press pressS:Wz_Akt4_Rolladen_Btn_01,Wz_Akt4_Rolladen_Btn_02 pressL:Wz_Akt4_Rolladen_Btn_01,Wz_Akt4_Rolladen_Btn_02 raw regBulk regSet reset:noArg sign:on,off statusRequest:noArg stop:noArg toggle:noArg toggleDir:noArg unpair:noArg up  peerSmart:remove_Wz_Akt4_Rolladen_Btn_01,remove_Wz_Akt4_Rolladen_Btn_02,Ku_4fach_Btn_01,Ku_4fach_Btn_02,Ku_4fach_Btn_03,Ku_4fach_Btn_04,Te_4fach_Btn_01,Te_4fach_Btn_02,Te_4fach_Btn_03,Te_4fach_Btn_04,Wz_4fach_oben_Btn_01,Wz_4fach_oben_Btn_02,Wz_4fach_oben_Btn_03,Wz_4fach_oben_Btn_04,Wz_4fach_unten_Btn_01,Wz_4fach_unten_Btn_02,Wz_4fach_unten_Btn_03,Wz_4fach_unten_Btn_04,Wz_Akt4_Rolladen_Btn_03,Wz_Akt4_Rolladen_Btn_04,Wz_Temp_Sensor1  tplSet_Wz_Akt4_Rolladen_Btn_01:BlStopDnLg_long,BlStopDnLg_short,BlStopDnSh_long,BlStopDnSh_short,BlStopUpLg_long,BlStopUpLg_short,BlStopUpSh_long,BlStopUpSh_short,SwCondAbove_long,SwCondAbove_short,SwCondBelow_long,SwCondBelow_short,SwOnCond_long,SwOnCond_short tplSet_Wz_Akt4_Rolladen_Btn_02:BlStopDnLg_long,BlStopDnLg_short,BlStopDnSh_long,BlStopDnSh_short,BlStopUpLg_long,BlStopUpLg_short,BlStopUpSh_long,BlStopUpSh_short,SwCondAbove_long,SwCondAbove_short,SwCondBelow_long,SwCondBelow_short,SwOnCond_long,SwOnCond_short",
    "PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 do_not_notify:1,0 showtime:1,0 rawToReadable unit expert:0_defReg,1_allReg,2_defReg+raw,3_allReg+raw,4_off,8_templ+default,12_templOnly,251_anything param readOnly:0,1 actAutoTry:0_off,1_on aesCommReq:1,0 model ignore:1,0 dummy:1,0 IODev IOList IOgrp rssiLog:1,0 actCycle hmKey hmKey2 hmKey3 readingOnDead:multiple,noChange,state,periodValues,periodString,channels subType:AlarmControl,KFM100,THSensor,blindActuator,blindActuatorSol,dimmer,display,keyMatic,motionAndBtn,motionDetector,no,outputUnit,powerMeter,powerSensor,pushButton,remote,repeater,rgb,senBright,sensRain,sensor,singleButton,siren,smokeDetector,swi,switch,thermostat,threeStateSensor,timer,tipTronic,virtual,winMatic modelForce:ACTIONDETECTOR,ACTIONDETECTOR,ASH550,ASH550I,CCU-FHEM,CMM,DORMA_ATENT,DORMA_BRC-H,DORMA_RC-H,HM-CC-RT-DN,HM-CC-RT-DN-BOM,HM-CC-SCD,HM-CC-TC,HM-CC-VD,HM-DIS-EP-WM55,HM-DIS-TD-T,HM-DIS-WM55,HM-DW-WM,HM-ES-PMSW1-DR,HM-ES-PMSW1-PL,HM-ES-PMSW1-PL-DN-R1,HM-ES-PMSW1-PL-DN-R2,HM-ES-PMSW1-PL-DN-R3,HM-ES-PMSW1-PL-DN-R4,HM-ES-PMSW1-PL-DN-R5,HM-ES-PMSW1-SM,HM-ES-TX-WM,HM-HM-LC-DW-WM,HM-LC-AO-SM,HM-LC-BL1-FM,HM-LC-BL1-FM-2,HM-LC-BL1-PB-FM,HM-LC-BL1-SM,HM-LC-BL1-SM-2,HM-LC-BL1PBU-FM,HM-LC-DDC1-PCB,HM-LC-DIM1L-CV,HM-LC-DIM1L-CV-2,HM-LC-DIM1L-CV-644,HM-LC-DIM1L-PL,HM-LC-DIM1L-PL-2,HM-LC-DIM1L-PL-3,HM-LC-DIM1L-PL-644,HM-LC-DIM1PWM-CV,HM-LC-DIM1PWM-CV-2,HM-LC-DIM1T-CV,HM-LC-DIM1T-CV-2,HM-LC-DIM1T-CV-644,HM-LC-DIM1T-DR,HM-LC-DIM1T-FM,HM-LC-DIM1T-FM-2,HM-LC-DIM1T-FM-644,HM-LC-DIM1T-FM-LF,HM-LC-DIM1T-PL,HM-LC-DIM1T-PL-2,HM-LC-DIM1T-PL-3,HM-LC-DIM1T-PL-644,HM-LC-DIM1TPBU-FM,HM-LC-DIM1TPBU-FM-2,HM-LC-DIM2L-CV,HM-LC-DIM2L-SM,HM-LC-DIM2L-SM-2,HM-LC-DIM2L-SM-644,HM-LC-DIM2T-SM,HM-LC-DIM2T-SM,HM-LC-DIM2T-SM-2,HM-LC-JA1PBU-FM,HM-LC-RGBW-WM,HM-LC-SW1-BA-PCB,HM-LC-SW1-DR,HM-LC-SW1-FM,HM-LC-SW1-FM-2,HM-LC-SW1-PB-FM,HM-LC-SW1-PCB,HM-LC-SW1-PL,HM-LC-SW1-PL-3,HM-LC-SW1-PL-CT-R1,HM-LC-SW1-PL-CT-R2,HM-LC-SW1-PL-CT-R3,HM-LC-SW1-PL-CT-R4,HM-LC-SW1-PL-CT-R5,HM-LC-SW1-PL-DN-R1,HM-LC-SW1-PL-DN-R2,HM-LC-SW1-PL-DN-R3,HM-LC-SW1-PL-DN-R4,HM-LC-SW1-PL-DN-R5,HM-LC-SW1-PL-OM54,HM-LC-SW1-PL2,HM-LC-SW1-SM,HM-LC-SW1-SM-2,HM-LC-SW1-SM-ATMEGA168,HM-LC-SW1PBU-FM,HM-LC-SW2-DR,HM-LC-SW2-DR-2,HM-LC-SW2-FM,HM-LC-SW2-FM-2,HM-LC-SW2-PB-FM,HM-LC-SW2-SM,HM-LC-SW2PBU-FM,HM-LC-SW4-BA-PCB,HM-LC-SW4-DR,HM-LC-SW4-DR-2,HM-LC-SW4-PCB,HM-LC-SW4-PCB-2,HM-LC-SW4-SM,HM-LC-SW4-SM-2,HM-LC-SW4-SM-ATMEGA168,HM-LC-SW4-WM,HM-LC-SW4-WM-2,HM-MOD-EM-8,HM-MOD-EM-8BIT,HM-MOD-RE-8,HM-OU-CF-PL,HM-OU-CFM-PL,HM-OU-CFM-TW,HM-OU-CM-PCB,HM-OU-LED16,HM-PB-2-FM,HM-PB-2-WM,HM-PB-2-WM55,HM-PB-2-WM55-2,HM-PB-4-WM,HM-PB-4DIS-WM,HM-PB-4DIS-WM-2,HM-PB-6-WM55,HM-PBI-4-FM,HM-RC-12,HM-RC-12-B,HM-RC-12-SW,HM-RC-19,HM-RC-19-B,HM-RC-19-SW,HM-RC-2-PBU-FM,HM-RC-4,HM-RC-4-2,HM-RC-4-3,HM-RC-4-3-D,HM-RC-4-B,HM-RC-8,HM-RC-DIS-H-X-EU,HM-RC-KEY3,HM-RC-KEY3-B,HM-RC-KEY4-2,HM-RC-KEY4-3,HM-RC-P1,HM-RC-SEC3,HM-RC-SEC3-B,HM-RC-SEC4-2,HM-RC-SEC4-3,HM-SCI-3-FM,HM-SEC-CEN,HM-SEC-KEY,HM-SEC-KEY-O,HM-SEC-KEY-S,HM-SEC-MDIR,HM-SEC-MDIR-2,HM-SEC-MDIR-3,HM-SEC-RHS,HM-SEC-RHS-2,HM-SEC-SC,HM-SEC-SC-2,HM-SEC-SCO,HM-SEC-SD,HM-SEC-SD-2,HM-SEC-SFA-SM,HM-SEC-SIR-WM,HM-SEC-TIS,HM-SEC-WDS,HM-SEC-WDS-2,HM-SEC-WIN,HM-SEN-DB-PCB,HM-SEN-EP,HM-SEN-LI-O,HM-SEN-MDIR-O,HM-SEN-MDIR-O-2,HM-SEN-MDIR-O-3,HM-SEN-MDIR-SM,HM-SEN-MDIR-WM55,HM-SEN-RD-O,HM-SEN-WA-OD,HM-SWI-3-FM,HM-SYS-SRP-PL,HM-TC-IT-WM-W-EU,HM-WDC7000,HM-WDS10-TH-O,HM-WDS100-C6-O,HM-WDS100-C6-O-2,HM-WDS20-TH-O,HM-WDS30-OT2-SM,HM-WDS30-OT2-SM-2,HM-WDS30-T-O,HM-WDS40-TH-I,HM-WDS40-TH-I-2,HM-WS550,HM-WS550LCB,HM-WS550LCW,HM-WS550TECH,IS-WDS-TH-OD-S-R3,KFM-DISPLAY,KFM-SENSOR,KS550,KS550LC,KS550TECH,KS888,OLIGO-SMART-IQ-HM,PS-SWITCH,PS-TH-SENS,ROTO_ZEL-STG-RM-DWT-10,ROTO_ZEL-STG-RM-FDK,ROTO_ZEL-STG-RM-FEP-230V,ROTO_ZEL-STG-RM-FFK,ROTO_ZEL-STG-RM-FSA,ROTO_ZEL-STG-RM-FSS-UP3,ROTO_ZEL-STG-RM-FST-UP4,ROTO_ZEL-STG-RM-FWT,ROTO_ZEL-STG-RM-FZS,ROTO_ZEL-STG-RM-FZS-2,ROTO_ZEL-STG-RM-HS-4,ROTO_ZEL-STG-RM-WT-2,S550IA,SCHUECO_263-130,SCHUECO_263-131,SCHUECO_263-132,SCHUECO_263-133,SCHUECO_263-134,SCHUECO_263-135,SCHUECO_263-144,SCHUECO_263-145,SCHUECO_263-146,SCHUECO_263-147,SCHUECO_263-155,SCHUECO_263-157,SCHUECO_263-158,SCHUECO_263-160,SCHUECO_263-162,SCHUECO_263-167,SCHUECO_263-XXX,SENSOTIMER-ST-6,VIRTUAL,WDF-SOLAR,WS888 .mId serialNr firmware .stc .devInfo actStatus autoReadReg:0_off,1_restart,2_pon-restart,3_onChange,4_reqStatus,5_readMissing,8_stateOnly burstAccess:0_off,1_auto msgRepeat hmProtocolEvents:0_off,1_dump,2_dumpFull,3_dumpTrigger aesKey:5,4,3,2,1,0  repPeers peerIDs tempListTmpl:none,defaultWeekplan, levelRange levelMap cyclicMsgOffset 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 devStateIcon:textField-long devStateStyle gassistantName:textField genericDeviceType:aircondition,airfreshener,airpurifier,awning,blinds,boiler,camera,coffeemaker,curtain,dishwasher,door,dryer,fan,fireplace,garage,gate,heater,hood,kettle,light,lock,microwave,outlet,oven,pregola,refrigerator,scene,securitysystem,shutter,shower,sprinkler,switch,thermostat,vacuum,valve,washer,waterheater,window,ac_unit,bathtub,bed,blender,closet,coffee_maker,cooktop,dehumidifier,dehydrator,drawer,faucet,fryer,grill,humidifier,mop,mower,multicooker,pergola,petfeeder,pressurecooker,radiator,sousvide,standmixer,yogurtmaker homebridgeMapping:textField-long icon realRoom:textField sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
    "Internals": {
      "DEF": "314697",
      "FUUID": "5cdae698-f33f-c16c-f042-e813e20e7e3c288c",
      "HMLANRTG_MSGCNT": "4",
      "HMLANRTG_RAWMSG": "E314697,0000,43BA3286,FF,FFBC,18A4103146970B117A0601C800",
      "HMLANRTG_RSSI": "-68",
      "HMLANRTG_TIME": "2020-02-04 07:50:06",
      "LASTInputDev": "HMLANRTG",
      "MSGCNT": "4",
      "NAME": "Wz_Ro_Essecke",
      "NOTIFYDEV": "global",
      "NR": "134",
      "NTFY_ORDER": "50-Wz_Ro_Essecke",
      "STATE": "on",
      "TYPE": "CUL_HM",
      "chanNo": "01",
      "lastMsg": "No:18 - t:10 s:314697 d:0B117A 0601C800",
      "peerList": "Wz_Akt4_Rolladen_Btn_01,Wz_Akt4_Rolladen_Btn_02,",
      "protLastRcv": "2020-02-04 07:50:06",
      "protRcv": "3 last_at:2020-02-04 07:50:06",
      "protSnd": "2 last_at:2020-02-04 07:49:46",
      "protState": "CMDs_done",
      "rssi_HMLANRTG": "cnt:2 min:-66 max:-64 avg:-65 lst:-64 ",
      "rssi_at_HMLANRTG": "cnt:4 min:-69 max:-68 avg:-68.75 lst:-68 "
    },
    "Readings": {
      "CommandAccepted": { "Value":"yes", "Time":"2020-02-04 07:49:46" },
      "D-firmware": { "Value":"2.3", "Time":"2020-01-07 18:16:20" },
      "D-serialNr": { "Value":"x", "Time":"2020-01-07 18:16:20" },
      "PairedTo": { "Value":"x", "Time":"2020-01-07 18:59:16" },
      "R-Wz_Akt4_Rolladen_Btn_01-lgActionType": { "Value":"jmpToTarget", "Time":"2020-01-07 18:59:19" },
      "R-Wz_Akt4_Rolladen_Btn_01-lgOnLevel": { "Value":"100 %", "Time":"2020-01-07 18:59:19" },
      "R-Wz_Akt4_Rolladen_Btn_01-shActionType": { "Value":"jmpToTarget", "Time":"2020-01-07 18:59:19" },
      "R-Wz_Akt4_Rolladen_Btn_01-shOnLevel": { "Value":"100 %", "Time":"2020-01-07 18:59:19" },
      "R-Wz_Akt4_Rolladen_Btn_02-lgActionType": { "Value":"jmpToTarget", "Time":"2020-01-07 18:59:20" },
      "R-Wz_Akt4_Rolladen_Btn_02-lgOnLevel": { "Value":"100 %", "Time":"2020-01-07 18:59:20" },
      "R-Wz_Akt4_Rolladen_Btn_02-shActionType": { "Value":"jmpToTarget", "Time":"2020-01-07 18:59:20" },
      "R-Wz_Akt4_Rolladen_Btn_02-shOnLevel": { "Value":"100 %", "Time":"2020-01-07 18:59:20" },
      "R-driveDown": { "Value":"16 s", "Time":"2020-01-07 18:59:17" },
      "R-driveTurn": { "Value":"0.5 s", "Time":"2020-01-07 18:59:17" },
      "R-driveUp": { "Value":"16 s", "Time":"2020-01-07 18:59:17" },
      "R-pairCentral": { "Value":"x", "Time":"2020-01-07 18:59:16" },
      "R-sign": { "Value":"off", "Time":"2020-01-07 18:59:17" },
      "RegL_00.": { "Value":"00:00 02:01 0A:0B 0B:11 0C:7A 15:FF 18:00", "Time":"2020-01-07 18:59:16" },
      "RegL_01.": { "Value":"00:00 08:00 09:00 0A:00 0B:00 0C:A0 0D:00 0E:A0 0F:05 10:00 30:06 57:24", "Time":"2020-01-07 18:59:17" },
      "RegL_03.Wz_Akt4_Rolladen_Btn_01": { "Value":"00:00 01:00 02:00 03:00 04:32 05:64 06:00 07:FF 08:00 09:FF 0A:01 0B:44 0C:54 0D:93 0E:00 0F:00 11:C8 12:00 13:00 14:00 15:00 16:00 17:00 18:00 19:00 1A:00 1B:00 1C:00 1D:FF 1E:93 1F:00 81:00 82:00 83:00 84:32 85:64 86:00 87:FF 88:00 89:FF 8A:21 8B:44 8C:54 8D:93 8E:00 8F:00 91:C8 92:00 93:00 94:00 95:00 96:00 97:00 98:00 99:00 9A:00 9B:00 9C:00 9D:05 9E:93 9F:00", "Time":"2020-01-07 18:59:19" },
      "RegL_03.Wz_Akt4_Rolladen_Btn_02": { "Value":"00:00 01:00 02:00 03:00 04:32 05:64 06:00 07:FF 08:00 09:FF 0A:01 0B:11 0C:12 0D:68 0E:00 0F:00 11:C8 12:00 13:00 14:00 15:00 16:00 17:00 18:00 19:00 1A:00 1B:00 1C:00 1D:FF 1E:68 1F:00 81:00 82:00 83:00 84:32 85:64 86:00 87:FF 88:00 89:FF 8A:21 8B:11 8C:12 8D:68 8E:00 8F:00 91:C8 92:00 93:00 94:00 95:00 96:00 97:00 98:00 99:00 9A:00 9B:00 9C:00 9D:05 9E:68 9F:00", "Time":"2020-01-07 18:59:20" },
      "deviceMsg": { "Value":"on (to Wz_Temp)", "Time":"2020-02-04 07:50:06" },
      "level": { "Value":"100", "Time":"2020-02-04 07:50:06" },
      "motor": { "Value":"stop:on", "Time":"2020-02-04 07:50:06" },
      "pct": { "Value":"100", "Time":"2020-02-04 07:50:06" },
      "peerList": { "Value":"Wz_Akt4_Rolladen_Btn_01,Wz_Akt4_Rolladen_Btn_02,", "Time":"2020-02-04 07:40:14" },
      "recentStateType": { "Value":"info", "Time":"2020-02-04 07:50:06" },
      "state": { "Value":"on", "Time":"2020-02-04 07:50:06" },
      "timedOn": { "Value":"off", "Time":"2020-02-04 07:50:06" }
    },
    "Attributes": {
      "IODev": "HMLANRTG",
      "alias": "Essecke",
      "autoReadReg": "5_readMissing",
      "devStateIcon": "on:shutter_open [98].*:shutter_2 [7654].*:shutter_4 [3210].*:shutter_7 off:shutter_closed",
      "expert": "2_full",
      "firmware": "2.3",
      "gassistantName": "Jalousie Seite",
      "genericDeviceType": "blinds",
      "group": "Rolladen",
      "model": "HM-LC-BL1PBU-FM",
      "peerIDs": "x,",
      "realRoom": "Küche",
      "room": "EG,GoogleAssistant",
      "serialNr": "x",
      "subType": "blindActuator",
      "webCmd": "on:off:pct"
    }
  }  ],
  "totalResultsReturned":1
}


Muss du denn für diesen hier eine Sonderbehandlung einbauen? Sieht für mich in fhem konsistent aus, und so wie es Google erwartet.... 100% ist offen und 0% geschlossen.

Gruß
Diddle.

Ist im naechsten Update hoffentlich behoben, wahrscheinlich morgen Abend. Bitte dann um Test & Feedback. Bei pct war standardmaessig ein invert

Zitat von: Fry3199 am 04 Februar 2020, 20:20:27
Hallo Dominik, hier der Jsonlist2 Eintrag von meinem Shelly2.5 der als Rollo eingerichtet ist:

{
  "Arg":"Shelly",
  "Results": [
  {
    "Name":"Shelly",
    "PossibleSets":"open:noArg close:noArg half:noArg stop:noArg pct:slider,0,1,100 x_recalibration:noArg x_update:noArg x_mqttcom attrTemplate:?,General_Info,MQTT2_CLIENT_general_bridge,tasmota_basic,tasmota_basic_state_power1,tasmota_1ch+motion+SI7021,tasmota_POW,tasmota_POW_USB_split,tasmota_plug_with_rgbw_split,tasmota_ir,tasmota_rf,tasmota_use_DS18x20_id,tasmota_clear_readings_reset_readingsList_and_reboot,tasmota_prefix_clearing_and_reboot,tasmota_set_lowercase_texts_and_state1,tasmota_set_uppercase_texts_and_state1,tasmota_set_power1_state_to_power,tasmota_2channel_split,tasmota_2ch_unified,tasmota_2ch_shutter_invert_1,tasmota_2ch_shutter_invert_0,tasmota_4channel_split,tasmota_4ch_unified_basic_text,tasmota_4ch_unified_icon,tasmota_rgb_led_controller,tasmota_rgbw_led,tasmota_rgbwct_led,tasmota_TuyaMCU_dimmer,shelly1,shelly_announces,shellyplug,shelly1_w_energy_meassuring,shelly1_w_energy_meassuring_washer_example,shelly2_split,shelly25_split,shelly2_roller,shelly25_roller_invert_0,shelly25_roller_invert_1,shelly4pro_split,shelly4pro_unified,shellybulb,shellyht,shellyflood,shelly2rgbw_color,shelly2rgbw_4w_split,shellydimmer,eBus_daemon_splitter,ems-esp_heater_device,ems-esp_boiler,ems-esp_thermostat_read-only,ems-esp_thermostat_simple,ems-esp_thermostat_RC35_type,zigbee2mqtt_bridge,wled_controller,go_eCharger,esp_milight_hub_bridge,OpenMQTTGateway_MCU,wallpanel_app",
    "PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev autocreate:0,1 bridgeRegexp:textField-long devicetopic devPos disable:0,1 disabledForIntervals getList:textField-long imageLink jsonMap:textField-long model readingList:textField-long setExtensionsEvent:1,0 setList:textField-long setStateList 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 devStateIcon:textField-long devStateStyle gassistantName:textField genericDeviceType:switch,outlet,light,thermostat,aircondition,airfreshener,airpurifier,blinds,camera,coffeemaker,dishwasher,dryer,fan,fireplace,heater,kettle,oven,refrigerator,scene,sprinkler,vacuum,washer,awning,boiler,curtain,door,garage,gate,hood,lock,microwave,pregola,securitysystem,shutter,shower,valve,waterheater,window,ac_unit,bathtub,bed,blender,closet,coffee_maker,cooktop,dehumidifier,dehydrator,drawer,faucet,fryer,grill,humidifier,mop,mower,multicooker,pergola,petfeeder,pressurecooker,radiator,sousvide,standmixer,yogurtmaker homebridgeMapping:textField-long icon realRoom:textField sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
    "Internals": {
      "CID": "shellyswitch25_98F4ABF2E66D",
      "DEF": "shellyswitch25_98F4ABF2E66D",
      "DEVICETOPIC": "Shelly",
      "FUUID": "5e3498c7-f33f-5a63-8fa5-c44e22e674aea1a4",
      "LASTInputDev": "MQTT2_FHEM_Server",
      "MQTT2_FHEM_Server_MSGCNT": "1054",
      "MQTT2_FHEM_Server_TIME": "2020-02-04 20:14:50",
      "MSGCNT": "1054",
      "NAME": "Shelly",
      "NR": "30",
      "STATE": "<a href=\"http://192.168.178.63\" target=\"_blank\">\ntrue\n</a>\n-1",
      "TYPE": "MQTT2_DEVICE"
    },
    "Readings": {
      "current": { "Value":"stop", "Time":"2020-02-04 20:07:19" },
      "energy": { "Value":"0", "Time":"2020-02-04 20:14:50" },
      "fw_ver": { "Value":"20200122-090247/v1.5.9@4b657c90", "Time":"2020-02-04 20:07:19" },
      "id": { "Value":"shellyswitch25-98F4ABF2E66D", "Time":"2020-02-04 20:07:19" },
      "input0": { "Value":"0", "Time":"2020-02-04 20:14:50" },
      "input1": { "Value":"0", "Time":"2020-02-04 20:14:50" },
      "ip": { "Value":"192.168.178.63", "Time":"2020-02-04 20:07:19" },
      "mac": { "Value":"98F4ABF2E66D", "Time":"2020-02-04 20:07:19" },
      "new_fw": { "Value":"false", "Time":"2020-02-04 20:07:19" },
      "online": { "Value":"true", "Time":"2020-02-04 20:07:19" },
      "overtemperature": { "Value":"0", "Time":"2020-02-04 20:14:50" },
      "pct": { "Value":"-1", "Time":"2020-02-04 20:14:50" },
      "power": { "Value":"0.00", "Time":"2020-02-04 20:14:50" },
      "relay_0": { "Value":"off", "Time":"2020-01-31 22:35:37" },
      "relay_0_energy": { "Value":"0", "Time":"2020-01-31 22:35:37" },
      "relay_0_power": { "Value":"0.00", "Time":"2020-01-31 22:35:37" },
      "relay_1": { "Value":"off", "Time":"2020-01-31 22:35:37" },
      "relay_1_energy": { "Value":"0", "Time":"2020-01-31 22:35:37" },
      "relay_1_power": { "Value":"0.00", "Time":"2020-01-31 22:35:37" },
      "roller_0_energy": { "Value":"0", "Time":"2020-02-04 20:14:50" },
      "roller_0_power": { "Value":"0.00", "Time":"2020-02-04 20:14:50" },
      "state": { "Value":"-1", "Time":"2020-02-04 20:14:50" },
      "temperature": { "Value":"46.06", "Time":"2020-02-04 20:14:50" },
      "temperature_f": { "Value":"114.90", "Time":"2020-02-04 20:14:50" },
      "x_mqttcom": { "Value":"set announce", "Time":"2020-01-31 22:15:44" }
    },
    "Attributes": {
      "IODev": "MQTT2_FHEM_Server",
      "cmdIcon": "open:fts_shutter_up close:fts_shutter_down stop:fts_shutter_manual half:fts_shutter_50",
      "comment": "Shelly 2.5 in Roller-Mode. 100=opened / 0=closed",
      "devStateIcon": "{ my $amp = ReadingsVal($name,\"online\",\"false\") eq \"false\" ? \"rot\" : ReadingsVal($name,\"new_fw\",\"false\") eq \"true\" ? \"gelb\" : \"gruen\";; my $con = ReadingsVal($name,\"state\",\"undef\");; $con = 100 - $con if $con =~ /\u005cd+/;; my $pic = $con eq \"opening\" ? 'fts_shutter_up@red' : $con eq \"closing\" ? 'fts_shutter_down@red' : $con eq \"100\" ? 'fts_shutter_100' : $con =~ /(\u005cd)\u005cd/ ? 'fts_shutter_'.$1.'0' : $con =~ /\u005cb\u005cd\u005cb/ ? 'fts_shutter_10' : 'fts_shutter_updown';; my $show = \"$amp\" eq \"gelb\" ? \"<a href=\u005c\"/fhem?cmd.dummy=set $name x_update&XHR=1\u005c\">\".FW_makeImage(\"10px-kreis-\".$amp).\"</a>\" : \"<a href=\u005c\"http://\".ReadingsVal($name,\"ip\",\"none\").\" \u005c\"target=\u005c\"_blank\u005c\">\".FW_makeImage(\"10px-kreis-\".$amp).\"</a>\";; \"<div> $show <a href=\u005c\"/fhem?cmd.dummy=set $name toggle&XHR=1\u005c\"></a>\".FW_makeImage($pic).\" </div>\"}",
      "getList": "power:noArg shellies/shellyswitch25-98F4ABF2E66D/relay/power power",
      "model": "shelly25_roller_invert_0",
      "readingList": "shellies/shellyswitch25-98F4ABF2E66D/roller/0/pos:.* pct\n  shellies/shellyswitch25-98F4ABF2E66D/status/0/rollers:.* power\n  shellies/shellyswitch25-98F4ABF2E66D/online:.* online\n  shellies/shellyswitch25-98F4ABF2E66D/announce:.* { json2nameValue($EVENT) }\n  shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-98F4ABF2E66D...mac.*, ? json2nameValue($EVENT) : undef }\n  shellies/shellyswitch25-98F4ABF2E66D/roller/0:.* current\n  shellies/shellyswitch25-98F4ABF2E66D/roller/0:open {{'state' => 'opening'}}\n  shellies/shellyswitch25-98F4ABF2E66D/roller/0:close {{'state' => 'closing'}}\n  shellies/shellyswitch25-98F4ABF2E66D/roller/0/pos:.* state\n  shellies/shellyswitch25-98F4ABF2E66D/input/1:.* input1\n  shellies/shellyswitch25-98F4ABF2E66D/input/0:.* input0\n  shellies/shellyswitch25-98F4ABF2E66D/relay/power:.* power\n  shellies/shellyswitch25-98F4ABF2E66D/relay/energy:.* energy\n  shellies/shellyswitch25-98F4ABF2E66D/temperature:.* temperature\n  shellies/shellyswitch25-98F4ABF2E66D/overtemperature:.* overtemperature\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/relay/0:.* relay_0\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/relay/0/power:.* relay_0_power\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/relay/0/energy:.* relay_0_energy\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/relay/1:.* relay_1\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/relay/1/power:.* relay_1_power\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/relay/1/energy:.* relay_1_energy\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/temperature_f:.* temperature_f\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/roller/0/power:.* roller_0_power\nshellyswitch25_98F4ABF2E66D:shellies/shellyswitch25-98F4ABF2E66D/roller/0/energy:.* roller_0_energy",
      "realRoom": "Wohnzimmer",
      "room": "GoogleAssistant,MQTT2_DEVICE,Wohnzimmer",
      "setList": "open:noArg shellies/shellyswitch25-98F4ABF2E66D/roller/0/command open\n  close:noArg shellies/shellyswitch25-98F4ABF2E66D/roller/0/command close\n  half:noArg shellies/shellyswitch25-98F4ABF2E66D/roller/0/command/pos 50\n  stop:noArg shellies/shellyswitch25-98F4ABF2E66D/roller/0/command stop\n  pct:slider,0,1,100 shellies/shellyswitch25-98F4ABF2E66D/roller/0/command/pos $EVTPART1\n  x_recalibration:noArg shellies/shellyswitch25-98F4ABF2E66D/roller/0/command rc\n  x_update:noArg shellies/shellyswitch25-98F4ABF2E66D/command update_fw\n  x_mqttcom shellies/shellyswitch25-98F4ABF2E66D/command $EVTPART1",
      "setStateList": "open close half stop pct",
      "stateFormat": "<a href=\"http://ip\" target=\"_blank\">\nonline\n</a>\nstate",
      "webCmd": ":open:close:half:stop:pct"
    }
  }  ],
  "totalResultsReturned":1
}


Was fuer einen Wert hat state wenn die Rollo geschlossen ist? Open/close sollte dann morgen Abend nach dem Update laufen.

Zitat von: Pythonf am 04 Februar 2020, 21:42:11
Ich komme gerade nicht weiter, bei einem Schalter, der mir als Dimmer eingetragen wird. Das Z-Wave Gerät hat ärgerlicherweise einen set <> dim befehl ohne Funktion.
Internals:
   DEF        cbc625fe 1282
   FUUID      5e35e009-f33f-3663-a8ec-3af742f9c1ea14b2
   FVERSION   10_ZWave.pm:0.210250/2020-01-20
   INTRIGGER  1
   IODev      ZWDongle_0
   LASTInputDev ZWDongle_0
   MSGCNT     9
   NAME       Deckenlicht.Flur.02
   NR         44
   NTFY_TRIGGERTIME 2020-02-04 21:37:06
   STATE      off
   TYPE       ZWave
   ZWDongle_0_MSGCNT 9
   ZWDongle_0_RAWMSG 000400050c600d02013202213200000000
   ZWDongle_0_TIME 2020-02-04 21:37:20
   ZWaveSubDevice yes
   endpointParent Deckenlicht.Flur
   homeId     cbc625fe
   isWakeUp   
   nodeIdHex  0502
   CHANGED:
     off
     off
     off
     reportedState: off
     power: 0 W
     off
     reportedState: off
     power: 0 W
     off
     off
     reportedState: off
     on
     on
     reportedState: on
     power: 10.6 W
     dim 100
     on
     dim 100
     off
     off
     reportedState: off
     power: 0 W
   CHANGEDWITHSTATE:
   CHANGETIME:
   Helper:
     DBLOG:
       state:
         logdb:
           TIME       1580848626.0278
           VALUE      off
   READINGS:
     2020-02-04 21:36:01   associatedWith  Deckenlicht.Flur
     2020-02-04 20:58:34   energy          25.85 kWh
     2020-02-04 21:37:20   power           0 W
     2020-02-04 21:37:19   reportedState   off
     2020-02-04 21:37:19   state           off
Attributes:
   IODev      ZWDongle_0
   classes    ZWAVEPLUS_INFO VERSION SWITCH_BINARY ASSOCIATION ASSOCIATION_GRP_INFO MULTI_CHANNEL_ASSOCIATION METER MARK SWITCH_MULTILEVEL
   group      Beleuchtung,ZWave
   homebridgeMapping clear
On=state,valueOn=on,valueOff=off,cmdOn=on,cmdOff=off
   room       GoogleAssistant,ZWave
   userattr   Deckenlicht.Flur.01 Deckenlicht.Flur.01_map room_map structexclude


Ich hab schon genericDeviceType switch/light versucht, dann auch clear sowie clear=Brightness, clear=RGB und mir gehen langsam die Ideen aus.
gassistant und fhem sind auf dem neuesten Stand. Sowohl reload, restart als auch fhem restart habe ich getestet.

Grüße
Fabian

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

KaseKasimir

Hallo dominik,

Gibt es bereits Erfahrungen mit den Shuttern von UNIroll? Ich habe diese über das UNIRoll Modul in FHEM eingebunden. Diese werden allerdings nicht von FHEM Connect erkannt. "No mappings...". Setze ich das genericDeviceType auf Shutter erscheint der Fehler nicht mehr. Jedoch wird der Shutter dann in Google Home nur ohne Kommandos angezeigt.

Ich hoffe du kannst helfen.

Grüße

Carsten

diddle

Zitat von: KaseKasimir am 06 Februar 2020, 09:27:41
Jedoch wird der Shutter dann in Google Home nur ohne Kommandos angezeigt.

Das ist leider aktuell immer so... probier mal einfach Sprachkommandos.
Keine Ahnung, warum es für Google so schwierig ist, mal wenigstens up/down-Knöpfe dranzumachen. ;-)

Gruß
Diddle.

KaseKasimir

#1460
Hallo Diddle,

Die Sprachkommandos werden tatsächlich erkannt. Jedoch tut sich dann nichts. Ich vermute, dass die Mappings dennoch nicht passen. UNIRoll arbeitet zb nicht mit Prozent Werten, wie scheinbar alle anderen in diesem Thread beschriebenen Shutter Lösungen. Das UNIRoll Modul hat eine pos Eingabe mit sekundenwerten.

Grüße Carsten

dominik

Posten bitte ein jsonlist2 vom Device und die Befehle inkl. der gewünschten Commands (auf= open, 20% offen => pos 20%, ...).
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

KaseKasimir

#1462

{
  "Arg":"1.3_Rollladen",
  "Results": [
  {
    "Name":"1.3_Rollladen",
    "PossibleSets":"luecke:noArg down pos stop up",
    "PossibleAttrs":"alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev do_not_notify:1,0 ignore:1,0 showtime:1,0 rMin:slider,0,1,120 rMax:slider,0,1,120 rPos:slider,0,1,120 useRolloPos:1,0 sendStopBeforeCmd:1,0,2,3 model:R_23700,dummySimple assistantName:textField cmdIcon devStateIcon 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 homebridgeMapping:textField-long icon realRoom:textField sortby webCmd webCmdLabel:textField-long widgetOverride userattr",
    "Internals": {
      "BTN": "2",
      "DEF": "1234 2",
      "FUUID": "5ca67c54-f33f-00d1-23b4-c9cb40c29e96e496",
      "NAME": "1.3_Rollladen",
      "NR": "100",
      "STATE": "down",
      "TYPE": "UNIRoll",
      "XMIT": "1234"
    },
    "Readings": {
      "Prozent": { "Value":"100", "Time":"2020-02-06 18:03:16" },
      "oldPos": { "Value":"20", "Time":"2020-02-06 18:03:16" },
      "oldstate": { "Value":"down 21", "Time":"2020-02-06 18:02:55" },
      "state": { "Value":"down", "Time":"2020-02-06 18:02:56" }
    },
    "Attributes": {
      "IODev": "myCUL",
      "cmdIcon": "up:fts_shutter_up down:fts_shutter_down stop:fts_shutter_manual luecke:fts_shutter_automatic",
      "devStateIcon": "{RollladenIcon($name)}",
      "eventMap": "/pos 16:luecke/",
      "icon": "fts_shutter_updown",
      "model": "R_23700",
      "rMax": "21",
      "rMin": "0",
      "rPos": "21",
      "room": "1.3_Büro",
      "useRolloPos": "1",
      "webCmd": "up:stop:down:luecke"
    }
  }  ],
  "totalResultsReturned":1
}


Als Befehle machen nur up und down Sinn. Da die Angaben über pos einen Zeitwert benötigt, welcher bei jedem Rollladen unterschiedlich ist. Eine Steuerung in % gibt es nicht. Das Reading Prozent erzeuge ich momentan selbst. rMax gibt die untere Position (geschlossen) in Sekunden an. Und rMin die obere Position (offen) in Sekunden. Ich begnüge mich jedoch schon mit öffnen -> up, schließen -> down. Perfekt wäre natürlich wenn man sagen könnte Rolladen auf 50% -> pos rMax/100*50
Bzw eben umgedreht. Ich weiß nicht ob bei Google normal 100% offen oder zu ist.

Grüße

Carsten

dominik

Update ist online.

- delayAfter kann nun auch in Sekunden angegeben werden (z.B. delayAfter:3)
- HM-LC-BL1PBU-FM support
- shelly25_roller_invert_0 support
- UNIRoll support (bitte % testen, sollte funktionieren)

Es muss nur ein reload gemacht werden. Sync wird damit automatisch initiiert.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

KaseKasimir

Das ging ja schnell der Sprachbefehl "öffnen" liefert jedoch
"set 1.2_Rollladen opens"
Dabei müsste es "Set 1.2_Rollladen up" sein
"Set 1.2_Rollladen pos 0" funktioniert bei dem Modul leider nicht. Es werden wohl nur Zahlen größer 0 akzeptiert. Ist wohl im UNIRoll Modul etwas unglücklich gewählt. Für ganz hoch sollte also immer "Up" genommen werden ganz runter immer "down" und nur dazwischen "pos"

Öffne Rolladen zu 50% liefert ebenfalls nur den falschen Befehl:
"set 1.2_Rollladen opens"

Könntest du nochmal schauen? Bin ja schon sehr begeistert wie schnell du FHEM Connect weiterentwickelst.

Danke und Gruß

Carsten

dominik

Danke fuer den schnellen Test! Hatte noch einen kleinen Fehler drin, bitte nochmals testen (reload).
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

KaseKasimir

Hallo Dominik,

Hoch und runter funktioniert jetzt. Allerdings ist die Umrechnung von Prozent in POS als Zeitwert noch fehlerhaft. Mein Beispielrollladen hat 0-33 Sekunden. 0 oben und 33 unten. Bei Sprachbefehl 50% wird jedoch versucht. Pos 151.52 anzufahren. Was natürlich nicht geht. Ich würde auch eine Rundung auf ganze zahlen >rMin und <rMax empfehlen.

Grüße

Carsten

dominik

Bitte nochmals reload und testen, jetzt sollte die Umrechnung richtig rum sein.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

KaseKasimir

Funktioniert einwandfrei. Vielen vielen Dank. Wirklich top!

Fry3199

Zitat von: dominik am 05 Februar 2020, 23:01:31

Was fuer einen Wert hat state wenn die Rollo geschlossen ist? Open/close sollte dann morgen Abend nach dem Update laufen.

Brightness=clear

Open/Close funktioniert jetzt über Google Spracheingabe, danke!
Der State ist opening und closing wärend des Fahrens des Rollos. Nachdem die Zeitbeschränkung in dem Shelly (z.B. 20 Sekunden) schaltet der Shelly ab. Dann ist der State -1 egal ob das Rollo dann offen oder geschlossen ist.