Skip to content

Commit

Permalink
Ajout du module Mi Smart Plug EU
Browse files Browse the repository at this point in the history
  • Loading branch information
Freeman656 authored and KiwiHC16 committed May 13, 2020
1 parent 8e18f13 commit 62cb344
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/AbeilleParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -2207,7 +2207,7 @@ function decode8102( $dest, $payload, $ln, $qos, $quality)
// Relay Double
$this->mqqtPublish( $dest."/".$SrcAddr, '000C', '01-0055', $puissanceValue, $qos);
}
if ($EPoint=="02") {
if ( ($EPoint=="02") || ($EPoint=="15")) {
// Remontée puissance (instantannée) de la prise xiaomi et relay double switch 2
// On va envoyer ca sur la meme variable que le champ ff01
$hexNumber = substr($payload, 24, 8);
Expand Down
30 changes: 30 additions & 0 deletions core/config/devices/plug.mmeu01/plug.mmeu01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"plug.mmeu01": {
"nameJeedom": "Xiaomi Prise EU",
"timeout": "60",
"Categorie": {
"automatism": "1"
},
"configuration": {
"uniqId": "5c07c76625d9",
"icone": "XiaomiPriseEU",
"mainEP": "#EP#"
},
"Commandes": {
"include1": "SW",
"include2": "societe",
"include3": "nom",
"include4": "etat",
"include5": "On",
"include6": "Off",
"include7": "Toggle",
"include8": "getEtat",
"include9": "getManufacturerName",
"include10": "getModelIdentifier",
"include11": "conso",
"include12": "Xiaomi-ff01",
"include13": "puissance",
"include13 2": "Group-Membership"
}
}
}
Binary file added images/node_XiaomiPriseEU.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 62cb344

Please sign in to comment.