diff --git a/FHEM/71_XiaomiSmartHome.pm b/FHEM/71_XiaomiSmartHome.pm
index 06f33a4..bfac9a6 100644
--- a/FHEM/71_XiaomiSmartHome.pm
+++ b/FHEM/71_XiaomiSmartHome.pm
@@ -40,8 +40,7 @@ eval "use Crypt::CBC";
return "\nERROR: Please install Crypt::CBC" if($@);
eval "use Net::Ping";
return "\nERROR: Please install Net::Ping" if($@);
-eval "use Math::Round";
-return "\nERROR: Please install libmath-round-perl" if($@);
+
use Color;
@@ -53,7 +52,7 @@ sub XiaomiSmartHome_Notify($$);
sub XiaomiSmartHome_updateSingleReading($$);
my $iv="\x17\x99\x6d\x09\x3d\x28\xdd\xb3\xba\x69\x5a\x2e\x6f\x58\x56\x2e";
-my $version = "1.19";
+my $version = "1.20";
my %XiaomiSmartHome_gets = (
"getDevices" => ["get_id_list", '^.+get_id_list_ack' ],
@@ -922,9 +921,11 @@ sub XiaomiSmartHome_updateAllReadings($)
password: without password no write to the gateway is possible. Use the MI APP to find the password
RGB(Colorpicker): set the color
PCT(Slider): set the brightness in percent
+ intervals: set the gateway to on for an time eg. set intervals 07:00-08:00
ringtone: set the ringtone 0-8,13,21-29,10001-.. | 10000 = off
volume: set the volume 1-100, (100 is very loud)
ringvol: set ringtone and volume in on step e.g. set [GWNAME] ringvol 21 10
+ learn: set the gateway in learningmode to learn new sensors now push the button from the new sensor
Set: Devices
@@ -1021,9 +1022,11 @@ sub XiaomiSmartHome_updateAllReadings($)
password: Ohne Passwort ist ein Schalten des GATEWAY nicht möglich. Das Passwort findet man in der MI APP
RGB(Colorpicker): Einstellen der LED Farbe des Gateways
PCT(Slider): Einstellen der Helligkeit des Gateways
+ intervals: Einschalten des gateway für einen Zeitraum zb. set intervals 07:00-08:00
ringtone: Wiedergeben eines Arlarmtones 0-8,13,21-29,10001-.. Benutzerdefinierte| 10000 = aus
volume: Einstellen der Lautstärke des Arlarmtones 1-100, (100 ist sehr laut!)
- ringvol: Wiedergeben eines Arlamtones und gleichzeitiges verändern der Lautstärke set [GWNAME] ringvol 21 10
+ ringvol: Wiedergeben eines Arlamtones und gleichzeitiges verändern der Lautstärke set [GWNAME] ringvol 21 10
+ learn: Anlernen neuer Sensoren, nach dem Set an dem neuem Sensor den Button drücken
Set: Devices
diff --git a/FHEM/71_XiaomiSmartHome_Device.pm b/FHEM/71_XiaomiSmartHome_Device.pm
index f3e0329..3b19e56 100644
--- a/FHEM/71_XiaomiSmartHome_Device.pm
+++ b/FHEM/71_XiaomiSmartHome_Device.pm
@@ -24,10 +24,10 @@ package main;
use strict;
use warnings;
-use Math::Round qw/nearest/;
-my $version = "1.19";
+
+my $version = "1.20";
sub XiaomiSmartHome_Device_updateSReading($);
@@ -512,6 +512,7 @@ sub XiaomiSmartHome_round {
=pod
=item device
=item summary Module to control XiaomiSmartHome Gateway
+=item summary_DE Modul zum steuern des XiaomiSmartHome Gateway
=begin html
@@ -550,15 +551,35 @@ sub XiaomiSmartHome_round {
- magnet: Window/Door magnetic sensor
- motion: Human body motion sensor
- - sensor_ht: Temperatur and humidity sensor
+ - sensor_motion.aq2: Aqara Human body motion sensor with lux readings
+ - sensor_ht: Temperature and humidity sensor
+ - weather.v1: Aqara Temperature, pressure and humidity sensor
- switch: Wireless sensor switch
- - plug: Smart socket
+ - plug & 86plug: Smart socket
- cube: Cube sensor
- 86sw1: Wireless switch single
- 86sw2: Wireless switch double
- ctrl_neutral1: Single bond ignition switch
- ctrl_neutral2: Double bond ignition switch
- rgbw_light: Smart lights (report only)
+ - curtain: Curtain (Control only if device has reporte curtain_level)
+ - water: water detector
+ - smoke: smoke alarm detector
+
+ - 0: disarm
+ - 1: arlarm
+ - 8: battery arlarm
+ - 64: arlarm sensitivity
+ - 32768: ICC communication failure
+
+ - gas: gas alarm detector
+
+ - 0: disarm
+ - 1: arlarm
+ - 2: analog arlarm
+ - 64: arlarm sensitivity
+ - 32768: ICC communication failure
+
Heartbeat
@@ -573,16 +594,18 @@ sub XiaomiSmartHome_round {
password: without password no write to the gateway is possible. Use the MI APP to find the password
RGB(Colorpicker): set the color
PCT(Slider): set the brightness in percent
+ intervals: set the gateway to on for an time eg. set intervals 07:00-08:00
ringtone: set the ringtone 0-8,13,21-29,10001-.. | 10000 = off
volume: set the volume 1-100, (100 is very loud)
ringvol: set ringtone and volume in on step e.g. set [GWNAME] ringvol 21 10
+ learn: set the gateway in learningmode to learn new sensors now push the button from the new sensor
Set: Devices
- motionOffTimer: (only motionsensor)
You can set a motion Off Timer Attribut on the motion sensor device. You can set 1, 5 or 10 seconds after
-
the motion sensors will automatically set to off.
+
the motion sensors will automatically set to off. MotionOffTimer is set to 5 by default.
Background: The motionsensors does not send off immediately.
The Motionsensor send a no_motion after 120, 180, 300, 600, 1200 seconds no motion is detected.
- Power: (only smart soket) on off switch a plug on or off
@@ -596,7 +619,7 @@ sub XiaomiSmartHome_round {
=begin html_DE
-
+
XiaomiSmartHome
XiaomiSmartHome Steuern des XiaomiSmartHome Gateway und deren verbundener Sensoren.
@@ -631,17 +654,33 @@ sub XiaomiSmartHome_round {
- magnet: Magnetischer Fenster/Tür Sensor
- motion: Bewegungsmelder
- - sensor_motion.aq2: Aqara Bewegungsmelder mit lux-Messung
- sensor_ht: Temperatur und Luftdruck
- - weather.v1: Aqara Temperatur, Luftdruck und Feuchtigkeit
- switch: Funkschalter
- - plug: Schaltbare Funksteckdose
+ - plug & 86plug: Schaltbare Funksteckdose
- cube: Würfel Sensor
- 86sw1: Einfacher Wandfunkschalter
- 86sw2: Wandfunkschalter doppelt
- ctrl_neutral1: Einfacher Wandschalter schaltbar
- ctrl_neutral2: Doppelter Wandschalter schaltbar
- rgbw_light: RBGW Lampe (nur Anzeige)
+ - curtain: Vorhangmotor (ohne das das device den curtain_level gemeldet hat ist ein steuern nicht möglich)
+ - water: Wasser Sensor
+ - smoke: Rauchmelder
+
+ - 0: disarm
+ - 1: arlarm
+ - 8: battery arlarm
+ - 64: arlarm sensitivity
+ - 32768: ICC communication failure
+
+ - gas: Gasmelder
+
+ - 0: disarm
+ - 1: arlarm
+ - 2: analog arlarm
+ - 64: arlarm sensitivity
+ - 32768: ICC communication failure
+
Heartbeat
@@ -656,16 +695,18 @@ sub XiaomiSmartHome_round {
- password: Ohne Passwort ist ein Schalten des GATEWAY nicht möglich. Das Passwort findet man in der MI APP
- RGB(Colorpicker): Einstellen der LED Farbe des Gateways
- PCT(Slider): Einstellen der Helligkeit des Gateways
+ - intervals: Einschalten des gateway für einen Zeitraum zb. set intervals 07:00-08:00
- ringtone: Wiedergeben eines Arlarmtones 0-8,13,21-29,10001-.. Benutzerdefinierte| 10000 = aus
- volume: Einstellen der Lautstärke des Arlarmtones 1-100, (100 ist sehr laut!)
- - ringvol: Wiedergeben eines Arlamtones und gleichzeitiges verändern der Lautstärke set [GWNAME] ringvol 21 10
+ - ringvol: Wiedergeben eines Arlamtones und gleichzeitiges verändern der Lautstärke set [GWNAME] ringvol 21 10
+ - learn: Anlernen neuer Sensoren, nach dem Set an dem neuem Sensor den Button drücken
Set: Devices
- motionOffTimer: (nur Bewegungsmelder)
Durch setzen des Parameters ist es möglich das das Reading des Bewegungsmelder nach 1, 5 oder 10 Sekunden
-
automatisch wieder auf off gestellt wird. Standardmäßig ist dieser Wert auf 5 gestellt, sodass der Sensor alle 5 Sekunden auf eine erneute Bewegung reagiert.
+
automatisch wieder auf off gestellt wird.
Hintergrund: Der Bewegungsmelder sendet kein selber kein off.
Der Bewegungsmelder sendet no_motion nach 120, 180, 300, 600, 1200 Sekunden wenn keine Bewegung festgestellt wurde.
- Power: (nur Funksteckdose) on off Funktsteckdose ein oder ausschalten
diff --git a/controls_mish.txt b/controls_mish.txt
index 9d2ed06..a42d017 100644
--- a/controls_mish.txt
+++ b/controls_mish.txt
@@ -1,2 +1,2 @@
-UPD 2017-12_08_08:06:18 36907 FHEM/71_XiaomiSmartHome.pm
-UPD 2017-12-13_08:02:11 26609 FHEM/71_XiaomiSmartHome_Device.pm
+UPD 2017-12-15_09:45:00 37305 FHEM/71_XiaomiSmartHome.pm
+UPD 2017-12-15_09:46:40 28101 FHEM/71_XiaomiSmartHome_Device.pm