teleBot telegram Global Symbol Fehler

Begonnen von Hackstall, 09 März 2018, 20:08:19

Vorheriges Thema - Nächstes Thema

Hackstall

Hallo,
ich konvergiere mit meinen Problemen und habe noch eins offen:

In einem Notify würde ich gerne eine Telebot Ausgabe machen, jedoch kommt immer dieser Fehler wobei es in anderen IF constructs immer funktioniert.
active: Error evaluating ZWave_SWITCH_BINARY_6 userReading active: Global symbol "@meinname" requires explicit package name at (eval 300) line 1.

Der Code sieht we folgt aus:

define ntfy_KE_Waschmaschine_Miele_1764_start notify KE_Waschmaschine_Miele_1764:power:.* {\
     if (($EVTPART1 > 10.0) && (ReadingsVal("running_KE_Waschmaschine_Miele_1764", "state", "off") eq "off"))\
    {fhem("set running_KE_Waschmaschine_Miele_1764 on");;\
             fhem("set teleBotAK msg @meinname PLUG ON);;\
};;\
        }\
     elsif (($EVTPART1 < 2.0) && (ReadingsVal("running_KE_Waschmaschine_Miele_1764", "state", "off") eq "on"))\
    {fhem("set running_KE_Waschmaschine_Miele_1764 off");;\
             fhem("set teleBotAK msg @meinname PLUG OFF);;\
        }\
}


Wzut

Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

Hackstall

Sorry war duch noch nicht ganz gelöst:

der Global symbol "@meinname" ist nun weg aber jetzt kommt

TelegramBot_SendIt teleBotAK: Failed with :FAILED peer not found :@meinname::

Mein Code sieht so aus:

define teleBotAK TelegramBot
attr teleBotAK DbLogExclude .*
attr teleBotAK pollingTimeout 180
attr teleBotAK room 9.6_System

fhem("set teleBotAK msg \@\@meinname Miele Waschmaschine 2234 Waschkeller fertig");;\



Bitte um letzte Hilfe.

Danke

Wzut

command.ref :
ZitatEach peer given needs to be always prefixed with a '@'. Peers can be specified as contact ids, full names (with underscore instead of space), usernames (prefixed with another @) or chat names (also known as groups in telegram groups must be prefixed with #). Multiple peers are to be separated by space

wenn @meinname nicht dein username ist must du entweder den richtigen einsetzen oder meinname ist dein full name dann nur
\@meinname
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher