mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
Vallox: Initialization bug fixed
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17170 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ebbe61080e
commit
8602f1bf4e
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.
|
||||||
|
- bugfix: 36_Vallox: Initialization bug fixed
|
||||||
- added: 00_MQTT: ability for client notifications: on connect,
|
- added: 00_MQTT: ability for client notifications: on connect,
|
||||||
on disconnect, on timeout
|
on disconnect, on timeout
|
||||||
- fixed: 00_MQTT: failure on handling with mqtt-devices without
|
- fixed: 00_MQTT: failure on handling with mqtt-devices without
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#
|
#
|
||||||
# @Author Skjall
|
# @Author Skjall
|
||||||
# @Created 21.07.2016 10:18:23
|
# @Created 21.07.2016 10:18:23
|
||||||
# @Version 1.5.0
|
# @Version 1.6.1
|
||||||
#
|
#
|
||||||
# The modul reads and writes parameters via RS485 from and to a Vallox
|
# The modul reads and writes parameters via RS485 from and to a Vallox
|
||||||
# ventilation bus.
|
# ventilation bus.
|
||||||
@ -1603,19 +1603,21 @@ sub Vallox_Get($@) {
|
|||||||
# "reading" is a predefined list of readings from the bus
|
# "reading" is a predefined list of readings from the bus
|
||||||
if ( $cmd eq "reading" ) {
|
if ( $cmd eq "reading" ) {
|
||||||
|
|
||||||
|
my $msg;
|
||||||
|
|
||||||
if ($arg eq "CO2SetPoint") {
|
if ($arg eq "CO2SetPoint") {
|
||||||
|
|
||||||
my $msg = Vallox_CreateMsg( $hash, "b3" );
|
$msg = Vallox_CreateMsg( $hash, "b3" );
|
||||||
DevIo_SimpleWrite( $hash, $msg, 1 );
|
DevIo_SimpleWrite( $hash, $msg, 1 );
|
||||||
Log3( $name, 3, "Vallox: Request " . $msg . " has been sent." );
|
Log3( $name, 3, "Vallox: Request " . $msg . " has been sent." );
|
||||||
|
|
||||||
my $msg = Vallox_CreateMsg( $hash, "b4" );
|
$msg = Vallox_CreateMsg( $hash, "b4" );
|
||||||
DevIo_SimpleWrite( $hash, $msg, 1 );
|
DevIo_SimpleWrite( $hash, $msg, 1 );
|
||||||
Log3( $name, 3, "Vallox: Request " . $msg . " has been sent." );
|
Log3( $name, 3, "Vallox: Request " . $msg . " has been sent." );
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
my $argKey = $Vallox_datatypesReverse{$arg};
|
my $argKey = $Vallox_datatypesReverse{$arg};
|
||||||
my $msg = Vallox_CreateMsg( $hash, $argKey );
|
$msg = Vallox_CreateMsg( $hash, $argKey );
|
||||||
|
|
||||||
DevIo_SimpleWrite( $hash, $msg, 1 );
|
DevIo_SimpleWrite( $hash, $msg, 1 );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user