added custom script plus some debugging
This commit is contained in:
@ -23,7 +23,7 @@ class availability
|
||||
{
|
||||
$log = INFO;
|
||||
}
|
||||
$device->availability = $value
|
||||
$device->availability = $value;
|
||||
logger($log, sprintf(_("Device: %s/%s is %s"), $topic, $fn , $value));
|
||||
}
|
||||
break;
|
||||
|
@ -32,12 +32,12 @@ class device
|
||||
|
||||
public function set($event)
|
||||
{
|
||||
publish($this, $this->payload, "set", $event);
|
||||
publish($this->topic . "/" . $this->friendlyName, $this->payload, "set", $event);
|
||||
}
|
||||
|
||||
public function get()
|
||||
{
|
||||
publish($this, $this->payload, "get", $event);
|
||||
publish($this->topic . "/" . $this->friendlyNames, $this->payload, "get", $event);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user