Shelly 2.5 Jalousiesteuerung

Begonnen von uxtuner, 11 Juni 2020, 15:04:55

Vorheriges Thema - Nächstes Thema

uxtuner

Hallo,

leider bekomme ich bei den Kommandos - wenn ich nicht nach jeder Ausführung auf "Stop" gehe - die Meldung "Error: roller blind still moving, wait for some time".
Auch das HomeBridgeMapping bekomme ich nicht wirklich hin - im Moment läuft das im Try and Error Modus ohne das ich eine Ahnung hätte, wie es konfiguriert werden muss.

Hier das Device List:

Internals:
   DEF        192.168.179.216
   DURATION   0
   FUUID      5ee1f16d-f33f-55bb-ac35-db3dcf456fd5a97c
   INTERVAL   0
   MOVING     stopped
   NAME       shellyswitch25B944F8
   NR         337
   STATE      stopped
   TARGETPCT  100
   TCPIP      192.168.179.216
   TYPE       Shelly
   READINGS:
     2020-06-11 11:12:19   cloud           disabled
     2020-06-11 13:26:36   config          rc= [channel r]
     2020-06-11 14:56:20   energy_0        12.7
     2020-06-11 11:12:19   firmware        v1.7.0
     2020-06-11 14:56:20   last_dir        up
     2020-06-11 14:08:24   network         <html>connected to <a href="http://192.168.179.216">192.168.179.216</a></html>
     2020-06-11 14:56:19   pct             100
     2020-06-11 14:56:19   position        open
     2020-06-11 14:56:20   power           0
     2020-06-11 14:56:20   power_0         0
     2020-06-11 14:56:20   state           stopped
     2020-06-11 11:12:19   stop_reason     normal
Attributes:
   alias      Jalousie
   genericDeviceType blind
   group      Shelly 2.5
   homebridgeMapping clear
CurrentPosition=state,values=open:0;closed:100 TargetPosition=state,cmd=+,values=closed:0;open:100,minStep=10,cmds=100:open;0:closed
   icon       fts_shutter_20
   mode       roller
   model      shelly2.5
   room       EG->Stube,Homekit,Shelly
   shellyuser admin
   webCmd     pct:closed:stop:open


Freue mich über Hilfe ..
Viele Grüße
  Uwe

Intel NUC (VDR & FHEM & HA & AgentDVR), QNAP TS-453, Esera OneWire (8-fach Schalter, Hub, Controller II), EDS 1-Wire Server, Mosquitto Server, Wolf CGW-2 m. ISM7MQTT, Shelly (Plug S, H&T, 2.5, 1 PM, Floodsensor/Rauchmelder), Tado (Thermostat V3+) etc.

uxtuner

Die Steuerung funktioniert einwandfrei:
"closed" fährt komplett herunter
"open" fährt komplett rauf
"stop" hält an

nur die Readings stimmen nicht. Wenn ich auf closed gehe bekomme ich als reading:

2020-06-13 07:52:38 Shelly shellyswitch25B944F8 closed
2020-06-13 07:52:38 Shelly shellyswitch25B944F8 moving_down
2020-06-13 07:52:38 Shelly shellyswitch25B944F8 pct: 0
2020-06-13 07:52:38 Shelly shellyswitch25B944F8 position: closed
2020-06-13 07:52:39 Shelly shellyswitch25B944F8 pct: 100
2020-06-13 07:52:39 Shelly shellyswitch25B944F8 position: open
2020-06-13 07:52:39 Shelly shellyswitch25B944F8 power: 81.21
2020-06-13 07:52:39 Shelly shellyswitch25B944F8 power_0: 81.21
2020-06-13 07:52:39 Shelly shellyswitch25B944F8 energy_0: 8.2


das ist komplett verwirrend und dann kommt auch kein(!) weiteres Reading mehr bis ich auf "stop" gehe:

2020-06-13 07:55:29 Shelly shellyswitch25B944F8 stop
2020-06-13 07:55:29 Shelly shellyswitch25B944F8 moving_down
2020-06-13 07:55:29 Shelly shellyswitch25B944F8 pct: 0
2020-06-13 07:55:29 Shelly shellyswitch25B944F8 position: closed
2020-06-13 07:55:30 Shelly shellyswitch25B944F8 power_0: 0
2020-06-13 07:55:30 Shelly shellyswitch25B944F8 energy_0: 9.2
2020-06-13 07:55:30 Shelly shellyswitch25B944F8 stopped
2020-06-13 07:55:30 Shelly shellyswitch25B944F8 power: 0
2020-06-13 07:55:30 Shelly shellyswitch25B944F8 last_dir: down


was mach ich falsch?
Viele Grüße
  Uwe

Intel NUC (VDR & FHEM & HA & AgentDVR), QNAP TS-453, Esera OneWire (8-fach Schalter, Hub, Controller II), EDS 1-Wire Server, Mosquitto Server, Wolf CGW-2 m. ISM7MQTT, Shelly (Plug S, H&T, 2.5, 1 PM, Floodsensor/Rauchmelder), Tado (Thermostat V3+) etc.

uxtuner

habe es jetzt mit MQTT2 realisiert, das funktioniert 1a  :)

Jetzt fehlt nur noch das HomeBridgeMapping. Hat da jemand die passenden Settings (genericsType ist vermutlich blind - oder)?
Viele Grüße
  Uwe

Intel NUC (VDR & FHEM & HA & AgentDVR), QNAP TS-453, Esera OneWire (8-fach Schalter, Hub, Controller II), EDS 1-Wire Server, Mosquitto Server, Wolf CGW-2 m. ISM7MQTT, Shelly (Plug S, H&T, 2.5, 1 PM, Floodsensor/Rauchmelder), Tado (Thermostat V3+) etc.

Prof. Dr. Peter Henning

Wenn man die Anleitung liest, funktioniert es auch mit dem Shelly-Modul. Es muss nämlich erstens die Hardware auf die Laufzeit des Rollladens kalibriert werden, und zweitens diese Laufzeit auch FHEM bekannt gemacht werden.

LG

pah

johndoe

Ich hänge mich hier mal an.
Mein Shelly 2.5 steuert über die Shelly App erfolgreich das Rollo.
In FHEM kann ich ihn im Set-Bereich des Devices auch manuell steuern.
Ich bekomme es aber nicht hin, dass mir für das Device irgendwelche Buttons angezeigt werden zur Steuerung, z.B hoch/runter/stop/50%.
Das Device bekommt überhaupt keinen Button, egal was ich (als FHEM Anfänger) probiere, in der Übersicht steht immer nur der Status ,,stopped" ohne irgendeine Interaktionsmöglichkeit. Kann mir einer helfen, was ich ändern muss?


defmod ShellyRollo1 Shelly 192.168.178.149
attr ShellyRollo1 cmdIcon open:fts_shutter_up closed:fts_shutter_down stop:fts_shutter_manual
attr ShellyRollo1 group Rolladen
attr ShellyRollo1 icon shutter_5
attr ShellyRollo1 maxtime 25
attr ShellyRollo1 mode roller
attr ShellyRollo1 model shelly2.5
attr ShellyRollo1 pct100 open
attr ShellyRollo1 room Wohnzimmer
attr ShellyRollo1 webCmd open:closed:stop
attr ShellyRollo1 widgetOverride pct:slider,0,5,100

setstate ShellyRollo1 stopped
setstate ShellyRollo1 2021-10-02 20:17:19 cloud disabled
setstate ShellyRollo1 2021-10-02 20:59:06 config maxtime= [channel s]
setstate ShellyRollo1 2021-10-02 21:51:23 energy_0 46.3
setstate ShellyRollo1 2021-10-02 20:17:19 firmware v1.11.4
setstate ShellyRollo1 2021-10-03 07:06:05 last_dir up
setstate ShellyRollo1 2021-10-02 20:17:19 network <html>connected to <a href="http://192.168.178.149">192.168.178.149</a></html>
setstate ShellyRollo1 2021-10-03 07:06:05 pct 100
setstate ShellyRollo1 2021-10-03 07:06:05 position open
setstate ShellyRollo1 2021-10-03 07:06:05 power 0
setstate ShellyRollo1 2021-10-02 21:51:23 power_0 0
setstate ShellyRollo1 2021-10-03 07:06:05 state stopped
setstate ShellyRollo1 2021-10-02 20:24:00 stop_reason normal

uxtuner

bei mir funktioniert das so:


Internals:
   CID        shellyswitch25_B944F8
   DEF        shellyswitch25_B944F8
   DEVICETOPIC MQTT2_shellyswitch25_B944F8
   FUUID      5ee4b459-f33f-55bb-b9a1-a2d9da317bf16b29
   IODev      MQTT2_FHEM_Server
   NAME       MQTT2_shellyswitch25_B944F8
   NR         322
   STATE      ???
   TYPE       MQTT2_DEVICE
   READINGS:
     2021-10-02 14:26:02   IODev           MQTT2_FHEM_Server
Attributes:
   IODev      MQTT2_FHEM_Server
   alias      Jalousie
   cmdIcon    open:fts_shutter_up close:fts_shutter_down stop:fts_shutter_manual half:fts_shutter_50
   comment    shelly2 roller operated
   devStateIcon 0:fts_shutter_100 100:fts_shutter_10 9\d.*:fts_shutter_10 8\d.*:fts_shutter_20 7\d.*:fts_shutter_30 6\d.*:fts_shutter_40 5\d.*:fts_shutter_50 4\d.*:fts_shutter_60 3\d.*:fts_shutter_70 2\d.*:fts_shutter_80 1\d.*:fts_shutter_90 0\d.*:fts_shutter_100 set_.*:fts_shutter_updown
   event-on-change-reading .*
   genericDeviceType blind
   group      Shelly 2.5
   icon       fts_shutter_50
   model      shelly2_roller
   readingList shellies/shellyswitch25-B944F8/roller/0/pos:.* pct
  shellies/shellyswitch25-B944F8/status/0/rollers:.* power
  shellies/shellyswitch25-B944F8/online:.* online
  shellies/shellyswitch25-B944F8/announce:.* { json2nameValue($EVENT) }
  shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-B944F8...mac.*, ? json2nameValue($EVENT) : return }
  shellies/shellyswitch25-B944F8/roller/0:.* state
  shellies/shellyswitch25-B944F8/input/1:.* input1
  shellies/shellyswitch25-B944F8/input/0:.* input0
shellyswitch25_B944F8:shellies/shellyswitch25-B944F8/roller/0/power:.* roller_0_power
shellyswitch25_B944F8:shellies/shellyswitch25-B944F8/relay/power:.* power
shellyswitch25_B944F8:shellies/shellyswitch25-B944F8/roller/0/energy:.* roller_0_energy
shellyswitch25_B944F8:shellies/shellyswitch25-B944F8/relay/energy:.* energy
shellyswitch25_B944F8:shellies/shellyswitch25-B944F8/temperature:.* temperature
shellyswitch25_B944F8:shellies/shellyswitch25-B944F8/temperature_f:.* temperature_f
shellyswitch25_B944F8:shellies/shellyswitch25-B944F8/overtemperature:.* overtemperature
shellyswitch25_B944F8:shellies/shellyswitch25-B944F8/roller/0/stop_reason:.* roller_0_stop_reason
   room       Hersteller->Shelly,System->MQTT
   setList    open:noArg shellies/shellyswitch25-B944F8/roller/0/command open
  close:noArg shellies/shellyswitch25-B944F8/roller/0/command close
  stop:noArg shellies/shellyswitch25-B944F8/roller/0/command stop
  pct:slider,0,1,100 shellies/shellyswitch25-B944F8/roller/0/command/pos $EVTPART1
  x_recalibration:noArg shellies/shellyswitch25-B944F8/roller/0/command rc
  x_update:noArg shellies/shellyswitch25-B944F8/command update_fw
  x_mqttcom shellies/shellyswitch25-B944F8/command $EVTPART1
   setStateList open close stop
   stateFormat pct
   webCmd     :open:close:half:stop:pct
Viele Grüße
  Uwe

Intel NUC (VDR & FHEM & HA & AgentDVR), QNAP TS-453, Esera OneWire (8-fach Schalter, Hub, Controller II), EDS 1-Wire Server, Mosquitto Server, Wolf CGW-2 m. ISM7MQTT, Shelly (Plug S, H&T, 2.5, 1 PM, Floodsensor/Rauchmelder), Tado (Thermostat V3+) etc.

johndoe

Ah, Kommando zurück, ich hatte das alles am Smartphone gemacht. Am Computer im Browser werden mir die Buttons wie gewünscht angezeigt. Aber warum nicht in der Sicht am Smartphone, was muss ich dafür ändern (hat vermutlich nichts mit Shelly zu tun, nur mit meinem FHEM-Anfängertum)?

Frank_Huber

Zitat von: johndoe am 03 Oktober 2021, 07:58:32
Ah, Kommando zurück, ich hatte das alles am Smartphone gemacht. Am Computer im Browser werden mir die Buttons wie gewünscht angezeigt. Aber warum nicht in der Sicht am Smartphone, was muss ich dafür ändern (hat vermutlich nichts mit Shelly zu tun, nur mit meinem FHEM-Anfängertum)?
nimm mal das Handy quer. ;-)

Oder wähle ein anderes Design aus.