epierre a écrit :tonejay a écrit :Hello à tous!
Petite question concernant imperihome...comment gérer des interrupteur à 4 ou 5 états?
J'ai le problème pour l'intégration de mon vacuum Xiaomi, et pour le bouton poussoir de la même marque. J'ai 4 choix dans domoticz mais un seul possible sur imperihome...
Hello,
il me faudrait la définition de ton device dans:
http://domoticz_ip:8080/json.htm?type=devices&filter=all&used=true&order=Name
Voici pour le vacuum :
Code : Tout sélectionner
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 101,
"Data" : "Off",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 6,
"HardwareName" : "MiRobot",
"HardwareType" : "Xiaomi Mi Robot Vacuum",
"HardwareTypeVal" : 94,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00060002",
"Image" : "xiaomi-mi-robot-vacuum-icon",
"IsSubDevice" : false,
"LastUpdate" : "2017-10-02 19:35:02",
"Level" : 0,
"LevelActions" : "||||||",
"LevelInt" : 0,
"LevelNames" : "Off|Clean|Home|Spot|Pause|Stop|Find",
"LevelOffHidden" : true,
"MaxDimLevel" : 100,
"Name" : "MiRobot - Control",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"SelectorStyle" : 0,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Selector Switch",
"SwitchType" : "Selector",
"SwitchTypeVal" : 18,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "Light",
"Unit" : 2,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "26"
},
un second !
Code : Tout sélectionner
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 101,
"Data" : "On",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 6,
"HardwareName" : "MiRobot",
"HardwareType" : "Xiaomi Mi Robot Vacuum",
"HardwareTypeVal" : 94,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00060004",
"Image" : "xiaomi-mi-robot-vacuum-icon",
"IsSubDevice" : false,
"LastUpdate" : "2017-10-02 19:36:20",
"Level" : 20,
"LevelActions" : "||||",
"LevelInt" : 20,
"LevelNames" : "Off|Quiet|Balanced|Turbo|Max",
"LevelOffHidden" : true,
"MaxDimLevel" : 100,
"Name" : "MiRobot - Fan Level",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"SelectorStyle" : 0,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "On",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Selector Switch",
"SwitchType" : "Selector",
"SwitchTypeVal" : 18,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "Light",
"Unit" : 4,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "27"
},
et pour le switch !
Code : Tout sélectionner
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 81,
"CustomImage" : 9,
"Data" : "Off",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 2,
"HardwareName" : "Xiaomi Gateway",
"HardwareType" : "Xiaomi Gateway",
"HardwareTypeVal" : 95,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "016D7B3B",
"Image" : "Generic",
"IsSubDevice" : false,
"LastUpdate" : "2017-10-07 13:56:36",
"Level" : 0,
"LevelActions" : "",
"LevelInt" : 0,
"LevelNames" : "Off|Click|Double Click|Long Click|Long Click Release",
"LevelOffHidden" : false,
"MaxDimLevel" : 100,
"Name" : "Xiaomi Wireless Switch",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"SelectorStyle" : 0,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Selector Switch",
"SwitchType" : "Selector",
"SwitchTypeVal" : 18,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "Light",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "9"
}
Un grand merci d'avance pour ce boulot !! J'ai d'autres devices Xiaomi...si tu as besoin d'infos pour ameliorer la soluion n'hesites pas !