2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 07:56:03 +00:00

10_NeuronPin.pm: Autocreated Devices now named <IODev-Name>_Pin_...

git-svn-id: https://svn.fhem.de/fhem/trunk@20972 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klausw 2020-01-14 11:54:51 +00:00
parent 6f4de21ea6
commit b1b062e62c

View File

@ -1,8 +1,6 @@
############################################## ##############################################
# $Id$ # $Id$
# todo: # todo:
# holen von status nach sets nicht wenn ws verbindung
# ao funktioniert nicht
package main; package main;
@ -22,7 +20,7 @@ sub NeuronPin_Initialize($) {
$hash->{DefFn} = 'NeuronPin_Define'; $hash->{DefFn} = 'NeuronPin_Define';
$hash->{InitFn} = 'NeuronPin_Init'; $hash->{InitFn} = 'NeuronPin_Init';
$hash->{StateFn} = "NeuronPin_State"; $hash->{StateFn} = 'NeuronPin_State';
$hash->{AttrFn} = 'NeuronPin_Attr'; $hash->{AttrFn} = 'NeuronPin_Attr';
$hash->{SetFn} = 'NeuronPin_Set'; $hash->{SetFn} = 'NeuronPin_Set';
$hash->{GetFn} = 'NeuronPin_Get'; $hash->{GetFn} = 'NeuronPin_Get';
@ -171,7 +169,7 @@ sub NeuronPin_Parse ($$) {
return $hash->{NAME}; return $hash->{NAME};
} else { } else {
Log3 ($hash, 4, "NeuronPin_Parse von $io_hash->{NAME} nix gefunden...anlegen"); Log3 ($hash, 4, "NeuronPin_Parse von $io_hash->{NAME} nix gefunden...anlegen");
return "UNDEFINED NeuronPin_".$message->{dev}."_".$message->{circuit}." NeuronPin " . $port; return "UNDEFINED $io_hash->{NAME}_Pin_".$message->{dev}."_".$message->{circuit}." NeuronPin " . $port;
} }
} }