Hallo,
hat jemand ein passendes HomeBridgeMapping und genericsDeviceType für Shelly parat?
Habe leider im Forum nichts gefunden ...
TYPE=Shelly oder TYPE=MQTT2_DEVICE?
Poste bitte ein "list" vom zu steuernden Device.
genericdevicetype ist wahrscheinlich blind. Damit braucht man CurrentPosition und TargetPostion. Abhängig von deinen Readings ist vielleicht homeBridgeMapping nicht nötig.
sorry hatte ich vergessen
CFGFN
CID shellyswitch25_B944F8
DEF shellyswitch25_B944F8
DEVICETOPIC MQTT2_shellyswitch25_B944F8
FUUID 5ee4b459-f33f-55bb-b9a1-a2d9da317bf16b29
IODev MQTT2_FHEM_Server
LASTInputDev MQTT2_FHEM_Server
MQTT2_FHEM_Server_MSGCNT 5544
MQTT2_FHEM_Server_TIME 2020-06-13 17:35:14
MSGCNT 5544
NAME MQTT2_shellyswitch25_B944F8
NR 463
STATE 82
TYPE MQTT2_DEVICE
OLDREADINGS:
READINGS:
2020-06-13 13:12:46 attrTemplateVersion 20200522 or prior
2020-06-13 14:52:10 current stop
2020-06-13 17:35:14 energy 1450
2020-06-13 13:12:46 fw_ver 20200601-122849/v1.7.0@d7961837
2020-06-13 13:12:46 id shellyswitch25-B944F8
2020-06-13 17:35:14 input0 1
2020-06-13 17:35:14 input1 0
2020-06-13 13:12:46 ip 192.168.179.216
2020-06-13 13:12:46 mac 98F4ABB944F8
2020-06-13 13:12:46 new_fw false
2020-06-13 13:12:46 online true
2020-06-13 17:35:14 overtemperature 0
2020-06-13 17:35:14 pct 82
2020-06-13 17:35:14 power 0.00
2020-06-13 17:35:14 roller_0_energy 1450
2020-06-13 17:35:14 roller_0_power 0.00
2020-06-13 17:35:14 state 82
2020-06-13 17:35:14 temperature 54.48
2020-06-13 17:35:14 temperature_f 130.06
2020-06-13 13:12:46 x_mqttcom set announce
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 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","unknown");; $con = 100 - $con if $con =~ /\d+/;; my $pic = $con eq "opening" ? 'fts_shutter_up@red' : $con eq "closing" ? 'fts_shutter_down@red' : $con eq "100" ? 'fts_shutter_100' : $con =~ /(\d)\d/ ? 'fts_shutter_'.$1.'0' : $con =~ /\b\d\b/ ? 'fts_shutter_10' : 'fts_shutter_updown';; my $show = "$amp" eq "gelb" ? "<a href=\"/fhem?cmd.dummy=set $name x_update&XHR=1\">".FW_makeImage("10px-kreis-".$amp)."</a>" : "<a href=\"http://".ReadingsVal($name,"ip","none")." \"target=\"_blank\">".FW_makeImage("10px-kreis-".$amp)."</a>";; "<div> $show <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\"></a>".FW_makeImage($pic)." </div>"}
group Shelly 2.5
icon fts_shutter_50
model shelly25_roller_invert_0
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:.* current
shellies/shellyswitch25-B944F8/roller/0:open {{'state' => 'opening'}}
shellies/shellyswitch25-B944F8/roller/0:close {{'state' => 'closing'}}
shellies/shellyswitch25-B944F8/roller/0/pos:.* state
shellies/shellyswitch25-B944F8/input/1:.* input1
shellies/shellyswitch25-B944F8/input/0:.* input0
shellies/shellyswitch25-B944F8/relay/power:.* power
shellies/shellyswitch25-B944F8/relay/energy:.* energy
shellies/shellyswitch25-B944F8/temperature:.* temperature
shellies/shellyswitch25-B944F8/overtemperature:.* overtemperature
shellyswitch25_B944F8:shellies/shellyswitch25-B944F8/roller/0/power:.* roller_0_power
shellyswitch25_B944F8:shellies/shellyswitch25-B944F8/roller/0/energy:.* roller_0_energy
shellyswitch25_B944F8:shellies/shellyswitch25-B944F8/temperature_f:.* temperature_f
room MQTT2_DEVICE,Shelly
setList open:noArg shellies/shellyswitch25-B944F8/roller/0/command open
close:noArg shellies/shellyswitch25-B944F8/roller/0/command close
half:noArg shellies/shellyswitch25-B944F8/roller/0/command/pos 50
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 half stop pct
webCmd :open:close:half:stop:pct
Wenn pct die Position ist, und wenn man auch über pct die Bewegung steuern kann, sollte homeBridgeMapping gar nicht nötig sein, und genericdevicetype blind reichen.
Sonst ggf
CurrentPosition=pct TargetPosition=pct::pct
Das sollte aber das standard Mapping sein
Vielen Dank!
HomeBridgeMapping muss nicht gesetzt werden - mit Deinen Settings funktioniert es aber auch.
Mein Problem war, dass ich vergessen hatte die Jalousie in "HomeKit" aufzunehmen.
Aktuell kann ich nur die Position verändern, cool wären noch Buttons mit "auf", "zu", "stop" und ein Slideregler oder sowas in der Art
Du hast aber schon z.B. pct:slider,0,1,100 in setList. Damit sollte schon der Slider da sein, oder?
nur am Handy nicht am Ipad (ich nutze EVE)
Ah... in EVE kann ich leider nicht helfen.
funktioniert zwar, aber das Mapping oder GenericType ist noch nicht ganz ok
Ich wollte heute per Sprache hochfahren, da hat er mir glatt die Temperatur der Jalousie um 1 Grad erhöht 8)
Hier mal die Infos die er mir dazu in EVE anzeigt