Homegear / Homegear-CCU

CCU2 module for Homegear
2 stars 2 forks source link

Active getvalue() from device gives unknown application error #1

Closed nanosonde closed 6 years ago

nanosonde commented 6 years ago

Running this command on the command line

homegear` -e rc 'echo "Value: ".$hg->getValue(5, 1, "STATE", true)'

gives

02/26/18 14:48:33.348 Scriptengine (/var/lib/homegear/scripts/inline.php): PHP Fatal error:  Uncaught Homegear\HomegearException: Unknown application error. in /var/lib/homegear/scripts/inline.php:7
Stack trace:
#0 /var/lib/homegear/scripts/inline.php(7): Homegear\Homegear->__call('getValue', Array)
#1 {main}
  thrown in /var/lib/homegear/scripts/inline.php on line 7

Peer 5 in this case is a Homematic Switch Actor connected through this module.

Running this without requestFromDevice=true

homegear` -e rc 'echo "Value: ".$hg->getValue(5, 1, "STATE")'

gives back an empty string.

As this is working for my KNX peer, I assume that it is related to this module.

Tested with Homegear 0.8.0-2022 (nightly).

hfedcba commented 6 years ago

It's fixed in the next nightly.