Hauptmenü

Rollo MQTT Homebridge

Begonnen von hansgans, 13 Januar 2021, 16:11:18

Vorheriges Thema - Nächstes Thema

hansgans

Internals:
   CFGFN     
   CID        myBroker
   DEF        myBroker
   DEVICETOPIC wohnzimmer_rollo
   FUUID      5ffdd3c1-f33f-4744-240b-a3e969aef029f528
   IODev      myBroker
   LASTInputDev myBroker
   MSGCNT     2325
   NAME       wohnzimmer_rollo
   NR         76192
   STATE      target_position
   TYPE       MQTT2_DEVICE
   myBroker_MSGCNT 2325
   myBroker_TIME 2021-01-13 16:03:12
   .attraggr:
   .attrminint:
   READINGS:
     2021-01-13 16:02:10   command         STOP
     2021-01-13 16:03:12   current         0.00
     2021-01-13 16:02:10   direction       Stopped
     2021-01-12 18:56:55   error           Invalid motor speed!
     2021-01-13 16:03:12   motor_status    Stopped
     2021-01-13 16:03:12   position        599
     2021-01-13 16:03:12   speed           0
     2021-01-13 16:03:07   state           target_position
     2021-01-13 16:03:12   status          Stopped
     2021-01-13 16:03:08   target_position 600
Attributes:
   IODev      myBroker
   comment    https://forum.fhem.de/index.php/topic,90220.45.html
   genericDeviceType blind
   homebridgeMapping clear CurrentPosition=/home/cover/wohnzimmer_rollo/position,minValue=0,maxValue=100,minStep=100 TargetPosition=target_position,cmds=OPEN;CLOSE;lvl
   readingList myBroker:/home/cover/wohnzimmer_rollo/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
myBroker:/home/node/wohnzimmer_rollo/version:.* version
myBroker:/home/node/wohnzimmer_rollo/motor_version:.* motor_version
myBroker:/home/cover/wohnzimmer_rollo/position:.* position
myBroker:/home/cover/wohnzimmer_rollo/voltage:.* voltage
myBroker:/home/cover/wohnzimmer_rollo/speed:.* speed
myBroker:/home/cover/wohnzimmer_rollo/orientation:.* orientation
myBroker:/home/cover/wohnzimmer_rollo/motor_status:.* motor_status
myBroker:/home/cover/wohnzimmer_rollo/status:.* status
myBroker:/home/cover/wohnzimmer_rollo/direction:.* direction
myBroker:/home/control/wohnzimmer_rollo/set/speed\x2e:.* speed_
myBroker:/home/node/wohnzimmer_rollo/error:.* error
myBroker:/home/control/wohnzimmer_rollo/command:.* command
myBroker:/home/cover/wohnzimmer_rollo/target_position:.* target_position
myBroker:/home/cover/wohnzimmer_rollo/current:.* current
myBroker:/home/control/wohnzimmer_rollo/set/speed:.* speed
myBroker:/home/control/wohnzimmer_rollo/set/default_speed:.* default_speed
myBroker:/home/control/wohnzimmer_rollo/command\x2e:.* command_
myBroker:/home/control/wohnzimmer_rollo/set/command\x2e:.* command_
myBroker:/home/control/wohnzimmer_rollo/set/target_position:.* target_position
myBroker:myBroker_/home/control/wohnzimmer_rollo/command:.* command
myBroker:/home/control/wohnzimmer_rollo/command_\x5c\x2e\x2a:.* command_._
myBroker:myBroker_/home/control/wohnzimmer_rollo/command_\x5c\x2e\x2a:.* command_._
myBroker:myBroker_/home/control/wohnzimmer_rollo/set/target_position:.* target_position
myBroker:myBroker_myBroker_/home/control/wohnzimmer_rollo/set/target_position_\x5c\x2e\x2a:.* target_position_._
   room       Favourites,Homekit,Wohnzimmer
   setList    CLOSE /home/control/wohnzimmer_rollo/command CLOSE
OPEN /home/control/wohnzimmer_rollo/command OPEN
STOP /home/control/wohnzimmer_rollo/command  STOP

target_position /home/control/wohnzimmer_rollo/set/target_position
   siriName   Wohnzimmer Rollo
   webCmd     CLOSE:OPEN:STOP





position        1000 offen 0 ist zu
target_position 1000 offen 0 ist zu

mir fehlt nur noch das ich das auf % fahren kann und das die anzeige stimmt

homebridgeMapping clear CurrentPosition=position,minValue=0,maxValue=1000,minStep=100
TargetPosition=target_position minValue=0,maxValue=1000,minStep=100,cmds=OPEN;CLOSE;target_position

kann mir da wer helfen ?


Beta-User

Oh je, da ist einiges....

Auf die Schnelle:

   homebridgeMapping clear CurrentPosition=position,minValue=0,maxValue=1000,minStep=100 TargetPosition=position,cmds=OPEN;CLOSE;lvl

   readingList myBroker:/home/cover/wohnzimmer_rollo/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
/home/node/wohnzimmer_rollo/version:.* version
/home/node/wohnzimmer_rollo/motor_version:.* motor_version
/home/cover/wohnzimmer_rollo/position:.* position
/home/cover/wohnzimmer_rollo/voltage:.* voltage
/home/cover/wohnzimmer_rollo/speed:.* speed
/home/cover/wohnzimmer_rollo/orientation:.* orientation
/home/cover/wohnzimmer_rollo/motor_status:.* motor_status
/home/cover/wohnzimmer_rollo/status:.* status
/home/cover/wohnzimmer_rollo/direction:.* direction
/home/node/wohnzimmer_rollo/error:.* error
/home/control/wohnzimmer_rollo/command:.* command
/home/cover/wohnzimmer_rollo/target_position:.* target_position
/home/cover/wohnzimmer_rollo/current:.* current

   setList    CLOSE /home/control/wohnzimmer_rollo/command CLOSE
OPEN /home/control/wohnzimmer_rollo/command OPEN
STOP /home/control/wohnzimmer_rollo/command  STOP
position /home/control/wohnzimmer_rollo/set/target_position



Anmerkungen:
Da sind ein Haufen "cmd"-Zweige in der readingList; sortiere die aus (mit ignoreRegexp am IO)
Optimalerweise ist der "Kreis" geschlossen zwischen der Anweisung (setList) und dem Ergebnis (readingList). Daher nur ein "position".
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors

hansgans

#2
das macht jetzt homebridge

[2021-1-16 12:45:53 PM] [FHEM] wohnzimmer_rollo: executing set cmd for TargetPosition with value 100
[2021-1-16 12:45:53 PM] [FHEM]   executing: http://127.168.178.34:8083/fhem?cmd=set%20wohnzimmer_rollo%20undefined%20100&XHR=1

wenn ich öffnen sage bzw es öffne in der homekit app

und das wenn ich es schliessen will

wohnzimmer_rollo: executing set cmd for TargetPosition with value 0
[2021-1-16 12:46:49 PM] [FHEM]   executing: http://127.168.178.34:8083/fhem?cmd=set%20wohnzimmer_rollo%20undefined%200&XHR=1

und wieso schickt der das überhaupt an so eine komische ipadresse ?

192.168.178.34 wäre der server

das mit der ip adresse hat sich erledigt


auf und zu geht so

0:CLOSE;;100:OPEN

stellung geht noch nicht

und rückmeldung auch noch ned

hansgans

clear CurrentPosition=position::position,invert=1,minValue=0,maxValue=1000,minStep=100 TargetPosition=target_position::position,minValue=0,maxValue=1000,minStep=100,cmds=CLOSE;;OPEN

habs