mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_GAEBUS.pm : consider ebusWritesEnabled for "set hex"
git-svn-id: https://svn.fhem.de/fhem/trunk@12328 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e62f77c704
commit
abf94abb2a
@ -32,8 +32,9 @@
|
|||||||
# 30.08.2016 : A.Goebel : add reading "state_ebus" containing output from "state" of ebusd
|
# 30.08.2016 : A.Goebel : add reading "state_ebus" containing output from "state" of ebusd
|
||||||
# 16.09.2016 : A.Goebel : add reset "state_ebus" if ebus is not connected
|
# 16.09.2016 : A.Goebel : add reset "state_ebus" if ebus is not connected
|
||||||
# 06.10.2016 : A.Goebel : add valueFormat can now be used to access all values returned from one read
|
# 06.10.2016 : A.Goebel : add valueFormat can now be used to access all values returned from one read
|
||||||
# 11.10.2016 : A.Goebel : add implement hex read from ebusctl
|
# 11.10.2016 : A.Goebel : add implement hex write from ebusctl
|
||||||
# 11.10.2016 : A.Goebel : add set initial reading name after "set" to "class~variable"
|
# 11.10.2016 : A.Goebel : add set initial reading name after "set" to "class~variable"
|
||||||
|
# 11.10.2016 : A.Goebel : fix "set hex" is only available if ebusWritesEnabled is '1'
|
||||||
|
|
||||||
package main;
|
package main;
|
||||||
|
|
||||||
@ -95,9 +96,9 @@ GAEBUS_Initialize($)
|
|||||||
$hash->{ShutdownFn} = "GAEBUS_Shutdown";
|
$hash->{ShutdownFn} = "GAEBUS_Shutdown";
|
||||||
|
|
||||||
|
|
||||||
%sets = ( "reopen" => [], "hex" => [] );
|
%sets = ( "reopen" => [] );
|
||||||
%gets = ( "ebusd_find" => [], "ebusd_info" => [] );
|
%gets = ( "ebusd_find" => [], "ebusd_info" => [] );
|
||||||
%setsForWriting = ( );
|
%setsForWriting = ( "hex" => [] );
|
||||||
|
|
||||||
GAEBUS_initParams($hash);
|
GAEBUS_initParams($hash);
|
||||||
|
|
||||||
@ -878,9 +879,9 @@ GAEBUS_doEbusCmd($$$$$$$)
|
|||||||
if ($action eq "f")
|
if ($action eq "f")
|
||||||
{
|
{
|
||||||
|
|
||||||
%sets = ( "reopen" => [], "hex" => [] );
|
%sets = ( "reopen" => [] );
|
||||||
%gets = ( "ebusd_find" => [], "ebusd_info" => [] );
|
%gets = ( "ebusd_find" => [], "ebusd_info" => [] );
|
||||||
%setsForWriting = ( );
|
%setsForWriting = ( "hex" => [] );
|
||||||
|
|
||||||
my $cnt = 0;
|
my $cnt = 0;
|
||||||
foreach my $line (split /\n/, $actMessage) {
|
foreach my $line (split /\n/, $actMessage) {
|
||||||
@ -1204,6 +1205,7 @@ GAEBUS_valueFormat(@)
|
|||||||
<ul>
|
<ul>
|
||||||
<li>hex<br>
|
<li>hex<br>
|
||||||
Will pass the input value to the "write" command of ebusd. See "ebusctl help write" for valid parameters.<br>
|
Will pass the input value to the "write" command of ebusd. See "ebusctl help write" for valid parameters.<br>
|
||||||
|
This command is only available if "ebusWritesEnabled" is set to '1'.<br>
|
||||||
</li><br>
|
</li><br>
|
||||||
<li>reopen<br>
|
<li>reopen<br>
|
||||||
Will close and open the socket connection.
|
Will close and open the socket connection.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user