mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
88_xs1Bridge: documentation | xs1 with password
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16681 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c21df57e2d
commit
85bd785be1
1
CHANGED
1
CHANGED
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- change: 88_xs1Bridge: documentation | xs1 with password
|
||||||
- bugfix: 36_Vallox: Fixed Multireadings. Added Legacy Mapping.
|
- bugfix: 36_Vallox: Fixed Multireadings. Added Legacy Mapping.
|
||||||
added set commands
|
added set commands
|
||||||
- bugfix: 00_MQTT: topics and payload patch
|
- bugfix: 00_MQTT: topics and payload patch
|
||||||
|
@ -87,7 +87,7 @@ sub xs1Bridge_Define($$) {
|
|||||||
|
|
||||||
$hash->{STATE} = "Initialized"; ## Der Status des Modules nach Initialisierung.
|
$hash->{STATE} = "Initialized"; ## Der Status des Modules nach Initialisierung.
|
||||||
$hash->{TIME} = time(); ## Zeitstempel, derzeit vom anlegen des Moduls
|
$hash->{TIME} = time(); ## Zeitstempel, derzeit vom anlegen des Moduls
|
||||||
$hash->{VERSION} = "1.24"; ## Version
|
$hash->{VERSION} = "1.26"; ## Version
|
||||||
$hash->{BRIDGE} = 1;
|
$hash->{BRIDGE} = 1;
|
||||||
|
|
||||||
# Attribut gesetzt
|
# Attribut gesetzt
|
||||||
@ -141,18 +141,18 @@ sub xs1Bridge_Attr(@) {
|
|||||||
### Ansicht xs1_Device_function ###
|
### Ansicht xs1_Device_function ###
|
||||||
}elsif ($attrName eq "view_Device_function") {
|
}elsif ($attrName eq "view_Device_function") {
|
||||||
if ($attrValue eq "1") { ## Handling view_Device_function 1
|
if ($attrValue eq "1") { ## Handling view_Device_function 1
|
||||||
Log3 $name, 3, "$typ: Attribut view_Device_function $cmd to $attrValue";
|
#Log3 $name, 3, "$typ: Attribut view_Device_function $cmd to $attrValue";
|
||||||
}
|
}
|
||||||
elsif ($attrValue eq "0") { ## Handling view_Device_function 0
|
elsif ($attrValue eq "0") { ## Handling view_Device_function 0
|
||||||
Log3 $name, 3, "$typ: Attribut view_Device_function $cmd to $attrValue";
|
#Log3 $name, 3, "$typ: Attribut view_Device_function $cmd to $attrValue";
|
||||||
}
|
}
|
||||||
### Ansicht xs1_Device_name ###
|
### Ansicht xs1_Device_name ###
|
||||||
}elsif ($attrName eq "view_Device_name") {
|
}elsif ($attrName eq "view_Device_name") {
|
||||||
if ($attrValue eq "1") { ## Handling view_Device_name 1
|
if ($attrValue eq "1") { ## Handling view_Device_name 1
|
||||||
Log3 $name, 3, "$typ: Attribut view_Device_name $cmd to $attrValue";
|
#Log3 $name, 3, "$typ: Attribut view_Device_name $cmd to $attrValue";
|
||||||
}
|
}
|
||||||
elsif ($attrValue eq "0") { ## Handling view_Device_name 0
|
elsif ($attrValue eq "0") { ## Handling view_Device_name 0
|
||||||
Log3 $name, 3, "$typ: Attribut view_Device_name $cmd to $attrValue";
|
#Log3 $name, 3, "$typ: Attribut view_Device_name $cmd to $attrValue";
|
||||||
for my $i (0..64) {
|
for my $i (0..64) {
|
||||||
delete $hash->{READINGS}{"Aktor_".sprintf("%02d", $i)."_name"} if($hash->{READINGS});
|
delete $hash->{READINGS}{"Aktor_".sprintf("%02d", $i)."_name"} if($hash->{READINGS});
|
||||||
delete $hash->{READINGS}{"Sensor_".sprintf("%02d", $i)."_name"} if($hash->{READINGS});
|
delete $hash->{READINGS}{"Sensor_".sprintf("%02d", $i)."_name"} if($hash->{READINGS});
|
||||||
@ -161,10 +161,10 @@ sub xs1Bridge_Attr(@) {
|
|||||||
### Wertaenderung nur bei Difference ###
|
### Wertaenderung nur bei Difference ###
|
||||||
}elsif ($attrName eq "update_only_difference") {
|
}elsif ($attrName eq "update_only_difference") {
|
||||||
if ($attrValue eq "1") { ## Handling update_only_difference 1
|
if ($attrValue eq "1") { ## Handling update_only_difference 1
|
||||||
Log3 $name, 3, "$typ: Attribut update_only_difference $cmd to $attrValue";
|
#Log3 $name, 3, "$typ: Attribut update_only_difference $cmd to $attrValue";
|
||||||
}
|
}
|
||||||
elsif ($attrValue eq "0") { ## Handling update_only_difference 0
|
elsif ($attrValue eq "0") { ## Handling update_only_difference 0
|
||||||
Log3 $name, 3, "$typ: Attribut update_only_difference $cmd to $attrValue";
|
#Log3 $name, 3, "$typ: Attribut update_only_difference $cmd to $attrValue";
|
||||||
for my $i (0..64) {
|
for my $i (0..64) {
|
||||||
delete $hash->{READINGS}{"Aktor_".sprintf("%02d", $i)."_name"} if($hash->{READINGS});
|
delete $hash->{READINGS}{"Aktor_".sprintf("%02d", $i)."_name"} if($hash->{READINGS});
|
||||||
}
|
}
|
||||||
@ -698,16 +698,20 @@ sub is_in_array($$$)
|
|||||||
<a name="xs1Bridge_define"></a>
|
<a name="xs1Bridge_define"></a>
|
||||||
<b>Define</b><br>
|
<b>Define</b><br>
|
||||||
<ul>
|
<ul>
|
||||||
<code>define <NAME> xs1Bridge <IP></code>
|
xs1 without password: <code>define <NAME> xs1Bridge <IP></code><br>
|
||||||
|
xs1 with password: <code>define <NAME> xs1Bridge <User>:<Passwort>@<IP></code>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
The module can not create without the IP of the xs1. If the IP can not be reached during module definition, the Define process is aborted.
|
The module can not create without the IP of the xs1. If the IP can not be reached during module definition, the Define process is aborted.
|
||||||
<ul>
|
<ul>
|
||||||
<li><code><IP></code> is IP address in the local network.</li>
|
<li><code><IP></code> is IP address in the local network</li>
|
||||||
|
<li><code><User></code> is the administrator user admin (default)</li>
|
||||||
|
<li><code><Password></code> is the assigned administrator password in xs1</li>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
example:
|
examples:
|
||||||
<ul>
|
<ul>
|
||||||
define EZcontrol_xs1 xs1Bridge 192.168.1.45
|
define EZcontrol_xs1 xs1Bridge 192.168.1.45<br>
|
||||||
|
define EZcontrol_xs1 xs1Bridge admin:secret@192.168.1.45<br>
|
||||||
</ul>
|
</ul>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
<b>Set</b>
|
<b>Set</b>
|
||||||
@ -796,16 +800,20 @@ sub is_in_array($$$)
|
|||||||
<a name="xs1Bridge_define"></a>
|
<a name="xs1Bridge_define"></a>
|
||||||
<b>Define</b><br>
|
<b>Define</b><br>
|
||||||
<ul>
|
<ul>
|
||||||
<code>define <NAME> xs1Bridge <IP></code>
|
xs1 ohne Passwortabfrage: <code>define <NAME> xs1Bridge <IP></code><br>
|
||||||
|
xs1 mit Passwortabfrage: <code>define <NAME> xs1Bridge <User>:<Passwort>@<IP></code>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
Ein anlegen des Modules ohne Angabe der IP vom xs1 ist nicht möglich. Sollte die IP bei der Moduldefinierung nicht erreichbar sein, so bricht der Define Vorgang ab.
|
Ein anlegen des Modules ohne Angabe der IP vom xs1 ist nicht möglich. Sollte die IP bei der Moduldefinierung nicht erreichbar sein, so bricht der Define Vorgang ab.
|
||||||
<ul>
|
<ul>
|
||||||
<li><code><IP></code> ist IP-Adresse im lokalen Netzwerk.</li>
|
<li><code><IP></code> ist IP-Adresse im lokalen Netzwerk</li>
|
||||||
|
<li><code><User></code> ist der Administrator Benutzer admin (standard)</li>
|
||||||
|
<li><code><Passwort></code> ist das vergebene Administrator Passwort im xs1.</li>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
Beispiel:
|
Beispiele:
|
||||||
<ul>
|
<ul>
|
||||||
define EZcontrol_xs1 xs1Bridge 192.168.1.45
|
define EZcontrol_xs1 xs1Bridge 192.168.1.45<br>
|
||||||
|
define EZcontrol_xs1 xs1Bridge admin:geheim@192.168.1.45<br>
|
||||||
</ul>
|
</ul>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
<b>Set</b>
|
<b>Set</b>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user