Ich bekomme es nicht hin, ein item auf einem entferten Smarthome.py über nw_udp_send zu setzen. Es geht im interaktiven Modus mit:
wenn ich das nun in das Item einbauen will mit:
erscheint im Log:
mein Item auf dem sendenen:
config:
PHP-Code:
sh.nw.udp('192.168.XXXX',2727,'item|WMZ0.Energie|1234')
PHP-Code:
nw_udp_send = 192.168.XXXX:2727=item|WMZ0.Energie|itemvalue # sends an UDP packet with 'command: ' and the current item value as payload
nw = yes
PHP-Code:
2015-05-02 19:06:53,607 ERROR Update_WMZ Item WMZ0.Energie: problem running <bound method Network.update_item of <plugins.network.Network object at 0x1cc4050>>: 'list' object has no attribute 'partition' -- item.py:__update:377
Traceback (most recent call last):
File "/usr/smarthome/lib/item.py", line 375, in __update
method(self, caller, source, dest)
File "/usr/smarthome/plugins/network/__init__.py", line 287, in update_item
addr, __, message = item.conf['nw_udp_send'].partition('=')
AttributeError: 'list' object has no attribute 'partition'
PHP-Code:
[WMZ0]
[[Energie]]
type = num
visu_acl = rw
knx_dpt = 9
sqlite = yes
enforce_updates = true
nw_udp_send = 192.168.XXXXX:2727=item|WMZ0.Energie|itemvalue # sends an UDP packet with 'command: ' and the current item value as payload
nw = yes
PHP-Code:
[nw]
class_name = Network
class_path = plugins.network
port = 2727
tcp = yes
udp = yes
Kommentar