steps39 / dtgbot

Telegram Bot for Domoticz
19 stars 18 forks source link

dtgbot crashes with special characters #12

Closed victordz closed 3 years ago

victordz commented 5 years ago

If a device has a name with special characters like accents or "ñ" in Spain, dtgbot chrases.

I have found this lua function:

Click arrow to see / hide function ``` function stripChars(str) local tableAccents = {} tableAccents["à"] = "a" tableAccents["á"] = "a" tableAccents["â"] = "a" tableAccents["ã"] = "a" tableAccents["ä"] = "a" tableAccents["ç"] = "c" tableAccents["è"] = "e" tableAccents["é"] = "e" tableAccents["ê"] = "e" tableAccents["ë"] = "e" tableAccents["ì"] = "i" tableAccents["í"] = "i" tableAccents["î"] = "i" tableAccents["ï"] = "i" tableAccents["ñ"] = "n" tableAccents["ò"] = "o" tableAccents["ó"] = "o" tableAccents["ô"] = "o" tableAccents["õ"] = "o" tableAccents["ö"] = "o" tableAccents["ù"] = "u" tableAccents["ú"] = "u" tableAccents["û"] = "u" tableAccents["ü"] = "u" tableAccents["ý"] = "y" tableAccents["ÿ"] = "y" tableAccents["À"] = "A" tableAccents["Á"] = "A" tableAccents["Â"] = "A" tableAccents["Ã"] = "A" tableAccents["Ä"] = "A" tableAccents["Ç"] = "C" tableAccents["È"] = "E" tableAccents["É"] = "E" tableAccents["Ê"] = "E" tableAccents["Ë"] = "E" tableAccents["Ì"] = "I" tableAccents["Í"] = "I" tableAccents["Î"] = "I" tableAccents["Ï"] = "I" tableAccents["Ñ"] = "N" tableAccents["Ò"] = "O" tableAccents["Ó"] = "O" tableAccents["Ô"] = "O" tableAccents["Õ"] = "O" tableAccents["Ö"] = "O" tableAccents["Ù"] = "U" tableAccents["Ú"] = "U" tableAccents["Û"] = "U" tableAccents["Ü"] = "U" tableAccents["Ý"] = "Y" tableAccents["/"] = "_" tableAccents["\\"] = "_" tableAccents["*"] = "_" tableAccents["&"] = "_" tableAccents[":"] = "_" tableAccents[";"] = "_" tableAccents["!"] = "_" tableAccents["@"] = "at" local normalizedString = str:gsub("[%z\1-\127\194-\244][\128-\191]*", tableAccents) return normalizedString end ```
chatainsim commented 4 years ago

Same here, with accent: image

odelma commented 4 years ago

Seems to be the same with Scandinavian letters, ä, ö, å. Did you find a way to fix it with the above function?

steps39 commented 4 years ago

The current approach is rather simple purely using an asci character set. Implementing a more modern and hence more forgiving character set is in the plan.

steps39 commented 4 years ago

@chatainsim Hi dtgbot has not crashed in your case, it is saying the command does not exist. Please could you give me more detail as to how you thought a command entrée should exist. @odelma I assume dtgbot has not crashed for you, but you can not use Scandinavian letters in devices etc. and @victordz function would make many Scandinavian words the same.

Currently dtgbot does not handle devices with non-ASCI characters correctly, as it removes the characters but it does not crash (for me). I do not want to solve one issue if there is another related issues I miss or if I create another. Currently in order to make dtgbot forgiving about capitalisation, it is ignored, as I am expecting most use to be on a smartphone. I don't believe I can treat accented / special language characters in the same way as ä needs to be different from å, in a way that currently A is not different from a in dtgbot.

chatainsim commented 4 years ago

@steps39 It was a one time error. Entrée is the name of one of my room and no crash, yes.

odelma commented 4 years ago

@odelma I assume dtgbot has not crashed for you, but you can not use Scandinavian letters in devices etc. and @victordz function would make many Scandinavian words the same.

@steps39 - correct, no crash. Actually, the scandis do not usually ”mix and match”. E.g. Keittö is kitchen but keittiö or keittiå do not mean anything. And keittio neither. So if it could command a device named keittiö in Domoticz by replacing ö with o (=keittio) I don’t think there actually would be any confusions between words.

odelma commented 3 years ago

Hi, was wondering if anyone has solved this? It seems I can not get rid of scandis...😄

steps39 commented 3 years ago

Hi, was wondering if anyone has solved this? It seems I can not get rid of scandis...

Hi, I have a fix it is stable for me. I need to just get myself reconnected to github, so it will not break the git. I will add it in the next 48 hours.

odelma commented 3 years ago

Excellent! 🙂

jvanderzande commented 3 years ago

Hi, was wondering if anyone has solved this? It seems I can not get rid of scandis...

Hi, I have a fix it is stable for me. I need to just get myself reconnected to github, so it will not break the git. I will add it in the next 48 hours.

I have a fix tested for both DTGBOT and DTGMENU too, so will see what you have done and merge that into the DTGMENU versions.

steps39 commented 3 years ago

Hi, was wondering if anyone has solved this? It seems I can not get rid of scandis...

Hi, I have a fix it is stable for me. I need to just get myself reconnected to github, so it will not break the git. I will add it in the next 48 hours.

I have a fix tested for both DTGBOT and DTGMENU too, so will see what you have done and merge that into the DTGMENU versions.

With the latest commit DTGBOT should now be ok with non-asci characters.

odelma commented 3 years ago

Thank you! I tested with trying to turn on a device with letter ä in its name. After sending the "On" command it still got stuck. In the errors log I can see:

/usr/bin/lua5.2: /home/pi/dtgbot/dtg_domoticz.lua:324: attempt to index field '?' (a nil value) stack traceback: /home/pi/dtgbot/dtg_domoticz.lua:324: in function 'sSwitchName' /home/pi/dtgbot/lua/dtgmenu.lua:1080: in function 'handler' /home/pi/dtgbot/dtgbot.lua:309: in function 'HandleCommand' /home/pi/dtgbot/dtgbot.lua:494: in function 'on_msg_receive' /home/pi/dtgbot/dtgbot.lua:651: in main chunk [C]: in ?

jvanderzande commented 3 years ago

That is because the fix by @steps39 is only for the commandline commands and not for DTGMENU. I have just made the same fix to DTGMENU.lua so hope it will also work for you now.

odelma commented 3 years ago

Hmm, this is quite strange. Now I get stuck in sending commands to any device (ok, after last change I did not test that, but now I did). Error refers to bit different lines:

/usr/bin/lua5.2: /home/pi/dtgbot/dtg_domoticz.lua:324: attempt to index field '?' (a nil value) stack traceback: /home/pi/dtgbot/dtg_domoticz.lua:324: in function 'sSwitchName' /home/pi/dtgbot/lua/dtgmenu.lua:1082: in function 'handler' /home/pi/dtgbot/dtgbot.lua:309: in function 'HandleCommand' /home/pi/dtgbot/dtgbot.lua:494: in function 'on_msg_receive' /home/pi/dtgbot/dtgbot.lua:651: in main chunk [C]: in ?

But probably because of the latest commit. It seems it is not getting the DeviceName back.

2020-11-19 23:14:50 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-19 23:14:50 - Succesfully handled incoming request .2020-11-19 23:14:56 - WhiteList: 2020-11-19 23:14:56 - WhiteList: 2020-11-19 23:14:56 - Handle command function started with TV_taustavalo - 75 % and Group: msg_type: 2020-11-19 23:14:56 - dtgbot: Start DTGMENU ... (1) TV_taustavalo - 75 % 2020-11-19 23:14:56 - ==> menu.lua process:TV_taustavalo - 75 % 2020-11-19 23:14:56 - -< replymarkup:{"keyboard":[["Off","On","25%","50%","75%","99%","?"],["*Sisävalot","ATV","Erkkerin_valot - Off"],["Media - On","Musiikki_yleisettilat - Off","Olohuone - 23.3°C - 43%"],["PIR","Ruokailualueen_valomäärä","Ruokapöydän_valaisin - Off"],["Smart_TV","SqueezeBox","TV-seinän_spottivalot - Off"],["TV-seinän_valo - Off","TV_taustavalo - 75 %","Takan_valot - On"],["Takka - 31°C","en_ikkunavalot - Off","en_kaappivalot - Off"],["en_kattovalo - Off","en_tauluvalot - Off","en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-19 23:14:56 - ==< Show device options menu plus other devices in submenu. 2020-11-19 23:14:56 - Message sent (1) 200 2020-11-19 23:14:56 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-19 23:14:56 - Succesfully handled incoming request .2020-11-19 23:14:59 - WhiteList: 2020-11-19 23:14:59 - WhiteList: 2020-11-19 23:14:59 - Handle command function started with 50% and Group: msg_type: 2020-11-19 23:14:59 - dtgbot: Start DTGMENU ... (1) 50% 2020-11-19 23:14:59 - ==> menu.lua process:50%

(removed whitelists and group)

jvanderzande commented 3 years ago

Could you do me a favor so I can see what exactly is happening?:

Jos

odelma commented 3 years ago

Certainly. Or is it ok to just paste here? I hope I removed anything too personal but kept the info that is needed. Let me know if not 😃

Log:

Click arrow to see / hide log ``` 2020-11-20 10:55:59 - #### End populating menuarray 2020-11-20 10:55:59 - JSON request 2020-11-20 10:55:59 - Decoded 9 2020-11-20 10:55:59 - dtgbotLogLevel set to: 9 2020-11-20 10:55:59 - WLidx 85 2020-11-20 10:55:59 - JSON request 2020-11-20 10:55:59 - Decoded XXX 2020-11-20 10:55:59 - WLString: XXX 2020-11-20 10:55:59 - Name :XXX 2020-11-20 10:55:59 - Name :XXX 2020-11-20 10:55:59 - Getting TelegramBotOffset the previous Telegram bot message offset from Domoticz 2020-11-20 10:55:59 - TBOidx 83 2020-11-20 10:55:59 - JSON request 2020-11-20 10:55:59 - Decoded XXX 2020-11-20 10:55:59 - TBO XXX 2020-11-20 10:55:59 - https://api.telegram.org/XXX 2020-11-20 10:56:08 - 2020-11-20 10:56:08 - ### In contact with Telegram servers .2020-11-20 10:56:08 - 2020-11-20 10:56:08 - {"ok":true,"result":[{"update_id":XXX 2020-11-20 10:56:08 - Message: 1 2020-11-20 10:56:08 - update_id (1) XXX 2020-11-20 10:56:08 - TelegramBotOffset XXX 2020-11-20 10:56:08 - JSON request 2020-11-20 10:56:08 - menu 2020-11-20 10:56:08 - WhiteList: XXX 2020-11-20 10:56:08 - WhiteList: XXX 2020-11-20 10:56:08 - Handle command function started with menu and XXX Group:XXX msg_type: 2020-11-20 10:56:08 - dtgbot: Start DTGMENU ... (1) menu 2020-11-20 10:56:08 - ==> menu.lua process:menu 2020-11-20 10:56:08 - => SendTo: (1) XXX 2020-11-20 10:56:08 - => commandline : (1) menu 2020-11-20 10:56:08 - => command : (1) menu 2020-11-20 10:56:08 - => param1 : (1) 2020-11-20 10:56:08 - => Lastmenu submenu : (1) 2020-11-20 10:56:08 - => Lastmenu devs/cmds: (1) 2020-11-20 10:56:08 - => Lastmenu actions : (1) 2020-11-20 10:56:08 - => Lastcmd prompt : (1) false 2020-11-20 10:56:08 - => Lastcmd submenu: (1) 2020-11-20 10:56:08 - => Lastcmd device : (1) 2020-11-20 10:56:08 - -< ChkInTable not found: menu (1) 0 (2) 2020-11-20 10:56:08 - -< ChkInTable not found: menu (1) 0 (2) 2020-11-20 10:56:08 - -< ChkInTable not found: menu (1) 0 (2) 2020-11-20 10:56:08 - -< ChkInTable not found: ? (1) 0 (2) 2020-11-20 10:56:08 - Start makereplymenu: (1) XXX (2) mainmenu (3) (4) 2020-11-20 10:56:08 - -> makereplymenu Level: (1) mainmenu (2) submenu (3) (4) devicename (5) 2020-11-20 10:56:08 - submenu: 2020-11-20 10:56:08 - process buildmenu: (1) Autotalli|BMW|Eteinen|Hidden|Homebridge|Keittiö|Kodinhoitohuone|LUX|Lastenhuone|Lämpöpumppu|Makuuhuone|Milight|Misc|Musiikkihuone|Olohuone|PIR|Piha|Power|RFLink|Sauna|Työhuone|VW|Xiaomi|menu (2) w: (3) 3 2020-11-20 10:56:08 - -< buildmenu: (1) ["Autotalli","BMW","Eteinen"],["Hidden","Homebridge","Keittiö"],["Kodinhoitohuone","LUX","Lastenhuone"],["Lämpöpumppu","Makuuhuone","Milight"],["Misc","Musiikkihuone","Olohuone"],["PIR","Piha","Power"],["RFLink","Sauna","Työhuone"],["VW","Xiaomi","menu"] 2020-11-20 10:56:08 - -< replymarkup:{"keyboard":[["Autotalli","BMW","Eteinen"],["Hidden","Homebridge","Keittiö"],["Kodinhoitohuone","LUX","Lastenhuone"],["Lämpöpumppu","Makuuhuone","Milight"],["Misc","Musiikkihuone","Olohuone"],["PIR","Piha","Power"],["RFLink","Sauna","Työhuone"],["VW","Xiaomi","menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 10:56:08 - ==< Show main menu 2020-11-20 10:56:08 - msg_type: 2020-11-20 10:56:08 - replymarkup:{"keyboard":[["Autotalli","BMW","Eteinen"],["Hidden","Homebridge","Keittiö"],["Kodinhoitohuone","LUX","Lastenhuone"],["Lämpöpumppu","Makuuhuone","Milight"],["Misc","Musiikkihuone","Olohuone"],["PIR","Piha","Power"],["RFLink","Sauna","Työhuone"],["VW","Xiaomi","menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 10:56:08 - https://api.telegram.org/bot267970515:AAGtbQd5MrnIhsNqWBTx52-TR1X0619vpYI/sendMessage?chat_id=XXX&reply_to_message_id=1005&text=Select+the+submenu.&reply_markup=%7B%22keyboard%22%3A%5B%5B%22Autotalli%22%2C%22BMW%22%2C%22Eteinen%22%5D%2C%5B%22Hidden%22%2C%22Homebridge%22%2C%22Keitti%C3%B6%22%5D%2C%5B%22Kodinhoitohuone%22%2C%22LUX%22%2C%22Lastenhuone%22%5D%2C%5B%22L%C3%A4mp%C3%B6pumppu%22%2C%22Makuuhuone%22%2C%22Milight%22%5D%2C%5B%22Misc%22%2C%22Musiikkihuone%22%2C%22Olohuone%22%5D%2C%5B%22PIR%22%2C%22Piha%22%2C%22Power%22%5D%2C%5B%22RFLink%22%2C%22Sauna%22%2C%22Ty%C3%B6huone%22%5D%2C%5B%22VW%22%2C%22Xiaomi%22%2C%22menu%22%5D%5D%2C%22selective%22%3Atrue%2C%22resize_keyboard%22%3Atrue%7D 2020-11-20 10:56:08 - Message sent (1) 200 2020-11-20 10:56:08 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-20 10:56:08 - Succesfully handled incoming request .2020-11-20 10:56:14 - 2020-11-20 10:56:14 - {"ok":true,"result":[{"update_id":XXX 2020-11-20 10:56:14 - Message: 1 2020-11-20 10:56:14 - update_id (1) XXX 2020-11-20 10:56:14 - TelegramBotOffset XXX 2020-11-20 10:56:14 - JSON request 2020-11-20 10:56:14 - Työhuone 2020-11-20 10:56:14 - WhiteList: XXX 2020-11-20 10:56:14 - WhiteList: XXX 2020-11-20 10:56:14 - Handle command function started with Työhuone and XXX Group:XXX msg_type: 2020-11-20 10:56:14 - dtgbot: Start DTGMENU ... (1) Työhuone 2020-11-20 10:56:14 - ==> menu.lua process:Työhuone 2020-11-20 10:56:14 - => SendTo: (1) XXX 2020-11-20 10:56:14 - => commandline : (1) Työhuone 2020-11-20 10:56:14 - => command : (1) Työhuone 2020-11-20 10:56:14 - => param1 : (1) 2020-11-20 10:56:14 - => Lastmenu submenu : (1) Autotalli|BMW|Eteinen|Hidden|Homebridge|Keittiö|Kodinhoitohuone|LUX|Lastenhuone|Lämpöpumppu|Makuuhuone|Milight|Misc|Musiikkihuone|Olohuone|PIR|Piha|Power|RFLink|Sauna|Työhuone|VW|Xiaomi|menu 2020-11-20 10:56:14 - => Lastmenu devs/cmds: (1) 2020-11-20 10:56:14 - => Lastmenu actions : (1) 2020-11-20 10:56:14 - => Lastcmd prompt : (1) false 2020-11-20 10:56:14 - => Lastcmd submenu: (1) 2020-11-20 10:56:14 - => Lastcmd device : (1) 2020-11-20 10:56:14 - -< ChkInTable not found: Työhuone (1) 0 (2) 2020-11-20 10:56:14 - -< ChkInTable not found: Työhuone (1) 0 (2) 2020-11-20 10:56:14 - -< ChkInTable found: Työhuone (1) 21 (2) Autotalli|BMW|Eteinen|Hidden|Homebridge|Keittiö|Kodinhoitohuone|LUX|Lastenhuone|Lämpöpumppu|Makuuhuone|Milight|Misc|Musiikkihuone|Olohuone|PIR|Piha|Power|RFLink|Sauna|Työhuone|VW|Xiaomi|menu 2020-11-20 10:56:14 - -< ChkInTable not found: ? (1) 0 (2) 2020-11-20 10:56:14 - - Showing Submenu as no device name specified. submenu: Työhuone 2020-11-20 10:56:14 - Start makereplymenu: (1) XXX (2) submenu (3) Työhuone (4) 2020-11-20 10:56:14 - -> makereplymenu Level: (1) submenu (2) submenu (3) Työhuone (4) devicename (5) 2020-11-20 10:56:14 - submenu: Työhuone 2020-11-20 10:56:14 - Submenu item: (1) Musiikki_työhuone 2020-11-20 10:56:14 - - Submenu item: (1) Musiikki_työhuone (2) y (3) devices (4) 305 (5) Playing 2020-11-20 10:56:14 - ==> start devinfo_from_name (1) 305 (2) Musiikki työhuone 2020-11-20 10:56:14 - JSON request 2020-11-20 10:56:14 - device (1) Musiikki työhuone (2) Musiikki työhuone (3) 305 (4) 305 2020-11-20 10:56:14 - Type (1) Lighting 2 2020-11-20 10:56:14 - --< devinfo_from_name: (1) 1 (2) 305 (3) Musiikki työhuone (4) devices (5) Lighting 2 (6) Media Player (7) Playing (8) (9) 0 2020-11-20 10:56:14 - Musiikki_työhuone - Playing| 2020-11-20 10:56:14 - Submenu item: (1) PIR_ 2020-11-20 10:56:14 - - Submenu item: (1) PIR_ (2) y (3) devices (4) 619 (5) On 2020-11-20 10:56:14 - ==> start devinfo_from_name (2) PIR Työhuone 2020-11-20 10:56:14 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 10:56:14 - Musiikki_työhuone - Playing|PIR_| 2020-11-20 10:56:14 - Submenu item: (1) en_kattovalo 2020-11-20 10:56:14 - - Submenu item: (1) en_kattovalo (2) y (3) devices (4) 536 (5) On 2020-11-20 10:56:14 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 10:56:14 - JSON request 2020-11-20 10:56:14 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 10:56:14 - Type (1) Color Switch 2020-11-20 10:56:14 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) On (8) (9) 30032 2020-11-20 10:56:14 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - On| 2020-11-20 10:56:14 - Submenu item: (1) en_valomäärä 2020-11-20 10:56:14 - - Submenu item: (1) en_valomäärä (2) y (3) devices (4) 622 (5) 56 Lux 2020-11-20 10:56:14 - ==> start devinfo_from_name (2) Työhuoneen valomäärä 2020-11-20 10:56:14 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 10:56:14 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| 2020-11-20 10:56:14 - process buildmenu: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| (2) w: (3) 3 2020-11-20 10:56:14 - -< buildmenu: (1) ["Musiikki_työhuone - Playing","PIR_","en_kattovalo - On"],["en_valomäärä"] 2020-11-20 10:56:14 - process buildmenu: (1) menu (2) w: (3) 3 2020-11-20 10:56:14 - -< buildmenu: (1) ["menu"] 2020-11-20 10:56:14 - -< replymarkup:{"keyboard":[["Musiikki_työhuone - Playing","PIR_","en_kattovalo - On"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 10:56:14 - ==< show options in submenu. 2020-11-20 10:56:14 - msg_type: 2020-11-20 10:56:14 - replymarkup:{"keyboard":[["Musiikki_työhuone - Playing","PIR_","en_kattovalo - On"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 10:56:14 - https://api.telegram.org/XXX 2020-11-20 10:56:14 - Message sent (1) 200 2020-11-20 10:56:14 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-20 10:56:14 - Succesfully handled incoming request .2020-11-20 10:56:18 - 2020-11-20 10:56:18 - {"ok":true,"result":[{"update_id":XXX 2020-11-20 10:56:18 - Message: 1 2020-11-20 10:56:18 - update_id (1) XXX 2020-11-20 10:56:18 - TelegramBotOffset XXX 2020-11-20 10:56:18 - JSON request 2020-11-20 10:56:18 - en_kattovalo - On 2020-11-20 10:56:18 - WhiteList: XXX 2020-11-20 10:56:18 - WhiteList: XXX 2020-11-20 10:56:18 - Handle command function started with en_kattovalo - On and XXX Group:XXX msg_type: 2020-11-20 10:56:18 - dtgbot: Start DTGMENU ... (1) en_kattovalo - On 2020-11-20 10:56:18 - ==> menu.lua process:en_kattovalo - On 2020-11-20 10:56:18 - => SendTo: (1) XXX 2020-11-20 10:56:18 - => commandline : (1) en_kattovalo - On 2020-11-20 10:56:18 - => command : (1) en_kattovalo 2020-11-20 10:56:18 - => param1 : (1) - 2020-11-20 10:56:18 - => Lastmenu submenu : (1) menu 2020-11-20 10:56:18 - => Lastmenu devs/cmds: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| 2020-11-20 10:56:18 - => Lastmenu actions : (1) 2020-11-20 10:56:18 - => Lastcmd prompt : (1) false 2020-11-20 10:56:18 - => Lastcmd submenu: (1) Työhuone 2020-11-20 10:56:18 - => Lastcmd device : (1) 2020-11-20 10:56:18 - -< ChkInTable not found: en_kattovalo - On (1) 0 (2) 2020-11-20 10:56:18 - -< ChkInTable found: en_kattovalo - On (1) 3 (2) Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| 2020-11-20 10:56:18 - -< ChkInTable not found: en_kattovalo - On (1) 1 (2) menu 2020-11-20 10:56:18 - => devicename : (1) en_kattovalo 2020-11-20 10:56:18 - => realdevicename : (1) Työhuoneen kattovalo 2020-11-20 10:56:18 - => idx: (1) 536 2020-11-20 10:56:18 - => Type : (1) Color Switch 2020-11-20 10:56:18 - => DeviceType : (1) devices 2020-11-20 10:56:18 - => SwitchType : (1) Dimmer 2020-11-20 10:56:18 - => MaxDimLevel: (1) 100 2020-11-20 10:56:18 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 10:56:18 - JSON request 2020-11-20 10:56:18 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 10:56:18 - Type (1) Color Switch 2020-11-20 10:56:18 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) On (8) (9) 30032 2020-11-20 10:56:18 - => dstatus : (1) On 2020-11-20 10:56:18 - => LevelNames : (1) 2020-11-20 10:56:18 - => LevelInt : (1) 30032 2020-11-20 10:56:18 - Start makereplymenu: (1) XXX (2) devicemenu (3) Työhuone (4) en_kattovalo 2020-11-20 10:56:18 - -> makereplymenu Level: (1) devicemenu (2) submenu (3) Työhuone (4) devicename (5) en_kattovalo 2020-11-20 10:56:18 - submenu: Työhuone 2020-11-20 10:56:18 - Submenu item: (1) Musiikki_työhuone 2020-11-20 10:56:18 - - Submenu item: (1) Musiikki_työhuone (2) y (3) devices (4) 305 (5) Playing 2020-11-20 10:56:18 - ==> start devinfo_from_name (1) 305 (2) Musiikki työhuone 2020-11-20 10:56:18 - JSON request 2020-11-20 10:56:18 - device (1) Musiikki työhuone (2) Musiikki työhuone (3) 305 (4) 305 2020-11-20 10:56:18 - Type (1) Lighting 2 2020-11-20 10:56:18 - --< devinfo_from_name: (1) 1 (2) 305 (3) Musiikki työhuone (4) devices (5) Lighting 2 (6) Media Player (7) Playing (8) (9) 0 2020-11-20 10:56:18 - Musiikki_työhuone - Playing| 2020-11-20 10:56:18 - Submenu item: (1) PIR_ 2020-11-20 10:56:18 - - Submenu item: (1) PIR_ (2) y (3) devices (4) 619 (5) On 2020-11-20 10:56:18 - ==> start devinfo_from_name (2) PIR Työhuone 2020-11-20 10:56:18 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 10:56:18 - Musiikki_työhuone - Playing|PIR_| 2020-11-20 10:56:18 - Submenu item: (1) en_kattovalo 2020-11-20 10:56:18 - - Submenu item: (1) en_kattovalo (2) y (3) devices (4) 536 (5) On 2020-11-20 10:56:18 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 10:56:18 - JSON request 2020-11-20 10:56:18 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 10:56:18 - Type (1) Color Switch 2020-11-20 10:56:18 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) On (8) (9) 30032 2020-11-20 10:56:18 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - On| 2020-11-20 10:56:18 - ---< (1) Color Switch (2) Dimmer (3) using replymarkup: (4) 2020-11-20 10:56:18 - -< Dimmer using replymarkup: (1) Off,On,25%,50%,75%,99%,? 2020-11-20 10:56:18 - Submenu item: (1) en_valomäärä 2020-11-20 10:56:18 - - Submenu item: (1) en_valomäärä (2) y (3) devices (4) 622 (5) 56 Lux 2020-11-20 10:56:18 - ==> start devinfo_from_name (2) Työhuoneen valomäärä 2020-11-20 10:56:18 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 10:56:18 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| 2020-11-20 10:56:18 - process buildmenu: (1) Off,On,25%,50%,75%,99%,? (2) w: (3) 8 2020-11-20 10:56:18 - -< buildmenu: (1) ["Off","On","25%","50%","75%","99%","?"] 2020-11-20 10:56:18 - process buildmenu: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| (2) w: (3) 3 2020-11-20 10:56:18 - -< buildmenu: (1) ["Musiikki_työhuone - Playing","PIR_","en_kattovalo - On"],["en_valomäärä"] 2020-11-20 10:56:18 - process buildmenu: (1) menu (2) w: (3) 3 2020-11-20 10:56:18 - -< buildmenu: (1) ["menu"] 2020-11-20 10:56:18 - -< replymarkup:{"keyboard":[["Off","On","25%","50%","75%","99%","?"],["Musiikki_työhuone - Playing","PIR_","en_kattovalo - On"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 10:56:18 - ==< Show device options menu plus other devices in submenu. 2020-11-20 10:56:18 - msg_type: 2020-11-20 10:56:18 - replymarkup:{"keyboard":[["Off","On","25%","50%","75%","99%","?"],["Musiikki_työhuone - Playing","PIR_","en_kattovalo - On"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 10:56:18 - https://api.telegram.org/XXX 2020-11-20 10:56:18 - Message sent (1) 200 2020-11-20 10:56:18 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-20 10:56:18 - Succesfully handled incoming request .2020-11-20 10:56:20 - 2020-11-20 10:56:20 - {"ok":true,"result":[{"update_id":XXX 2020-11-20 10:56:20 - Message: 1 2020-11-20 10:56:20 - update_id (1) 2020-11-20 10:56:20 - TelegramBotOffset XXX 2020-11-20 10:56:20 - JSON request 2020-11-20 10:56:20 - Off 2020-11-20 10:56:20 - WhiteList: XXX 2020-11-20 10:56:20 - WhiteList: XXX 2020-11-20 10:56:20 - Handle command function started with Off and XXX Group:XXX msg_type: 2020-11-20 10:56:20 - dtgbot: Start DTGMENU ... (1) Off 2020-11-20 10:56:20 - ==> menu.lua process:Off 2020-11-20 10:56:20 - => SendTo: (1) XXX 2020-11-20 10:56:20 - => commandline : (1) Off 2020-11-20 10:56:20 - => command : (1) Off 2020-11-20 10:56:20 - => param1 : (1) 2020-11-20 10:56:20 - => Lastmenu submenu : (1) menu 2020-11-20 10:56:20 - => Lastmenu devs/cmds: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| 2020-11-20 10:56:20 - => Lastmenu actions : (1) Off,On,25%,50%,75%,99%,? 2020-11-20 10:56:20 - => Lastcmd prompt : (1) false 2020-11-20 10:56:20 - => Lastcmd submenu: (1) Työhuone 2020-11-20 10:56:20 - => Lastcmd device : (1) en_kattovalo 2020-11-20 10:56:20 - -< ChkInTable found: Off (1) 1 (2) Off,On,25%,50%,75%,99%,? 2020-11-20 10:56:20 - -< ChkInTable not found: Off (1) 4 (2) Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| 2020-11-20 10:56:20 - -< ChkInTable not found: Off (1) 1 (2) menu 2020-11-20 10:56:20 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 10:56:20 - JSON request 2020-11-20 10:56:20 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 10:56:20 - Type (1) Color Switch 2020-11-20 10:56:20 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) On (8) (9) 30032 2020-11-20 10:56:20 - => dstatus : (1) On 2020-11-20 10:56:20 - => LevelNames : (1) 2020-11-20 10:56:20 - => LevelInt : (1) 30032 2020-11-20 10:56:20 - => devicename : (1) en_kattovalo 2020-11-20 10:56:20 - => realdevicename : (1) Työhuoneen kattovalo 2020-11-20 10:56:20 - => idx: (1) 536 2020-11-20 10:56:20 - => Type : (1) Color Switch 2020-11-20 10:56:20 - => DeviceType : (1) devices 2020-11-20 10:56:20 - => SwitchType : (1) Dimmer 2020-11-20 10:56:20 - => MaxDimLevel: (1) 100 2020-11-20 10:56:20 - => LevelNames : (1) 2020-11-20 10:56:20 - -< ChkInTable found: off (1) 1 (2) off,open 2020-11-20 10:56:20 - JSON request 2020-11-20 10:56:20 - JSON feedback: (1) { "status" : "OK", "title" : "SwitchLight" } Errors: /usr/bin/lua5.2: /home/pi/dtgbot/dtg_domoticz.lua:324: attempt to index field '?' (a nil value) stack traceback: /home/pi/dtgbot/dtg_domoticz.lua:324: in function 'sSwitchName' /home/pi/dtgbot/lua/dtgmenu.lua:1080: in function 'handler' /home/pi/dtgbot/dtgbot.lua:309: in function 'HandleCommand' /home/pi/dtgbot/dtgbot.lua:494: in function 'on_msg_receive' /home/pi/dtgbot/dtgbot.lua:651: in main chunk [C]: in ? ```
jvanderzande commented 3 years ago

Strange, so the switch actually does switch but then it reports a nil issue. You do have the language tables in your user config up-to-date? anyway, I have just pushed a change for dtg_domoticz.lua to do some extra checking for the variables on the line with the issue, so could you do the same again for me? ...and i really need the whole log as I also need to see the table initialization to see what is possibly missing. Maybe you can also provide the config files to me so I can double check those? Thanks Jos

odelma commented 3 years ago

Hmm, that might be it. I had not noticed it as I think it does not mention about that in the main wiki article. I checked the file and there were option nl and en ready, I enabled en. Now I do not even get the menu populated:

Click arrow to see / hide log ``` 2020-11-20 13:04:29 - Message: 1 2020-11-20 13:04:29 - update_id (1) XXX 2020-11-20 13:04:29 - TelegramBotOffset XXX 2020-11-20 13:04:29 - JSON request 2020-11-20 13:04:29 - menu 2020-11-20 13:04:29 - WhiteList: XXX 2020-11-20 13:04:29 - WhiteList: XXX 2020-11-20 13:04:29 - Handle command function started with menu and XXX Group:XXX msg_type: 2020-11-20 13:04:29 - dtgbot: Start DTGMENU ... (1) menu 2020-11-20 13:04:29 - ==> menu.lua process:menu 2020-11-20 13:04:29 - => SendTo: (1) XXX 2020-11-20 13:04:29 - => commandline : (1) menu 2020-11-20 13:04:29 - => command : (1) menu 2020-11-20 13:04:29 - => param1 : (1) 2020-11-20 13:04:29 - => Lastmenu submenu : (1) 2020-11-20 13:04:29 - => Lastmenu devs/cmds: (1) 2020-11-20 13:04:29 - => Lastmenu actions : (1) 2020-11-20 13:04:29 - => Lastcmd prompt : (1) false 2020-11-20 13:04:29 - => Lastcmd submenu: (1) 2020-11-20 13:04:29 - => Lastcmd device : (1) 2020-11-20 13:04:29 - -< ChkInTable not found: menu (1) 0 (2) 2020-11-20 13:04:29 - -< ChkInTable not found: menu (1) 0 (2) 2020-11-20 13:04:29 - -< ChkInTable not found: menu (1) 0 (2) 2020-11-20 13:04:29 - -< ChkInTable not found: ? (1) 0 (2) 2020-11-20 13:04:29 - Start makereplymenu: (1) XXX (2) mainmenu (3) (4) 2020-11-20 13:04:29 - -> makereplymenu Level: (1) mainmenu (2) submenu (3) (4) devicename (5) 2020-11-20 13:04:29 - submenu: 2020-11-20 13:04:29 - process buildmenu: (1) Autotalli|BMW|Eteinen|Hidden|Homebridge|Keittiö|Kodinhoitohuone|LUX|Lastenhuone|Lämpöpumppu|Makuuhuone|Milight|Misc|Musiikkihuone|Olohuone|PIR|Piha|Power|RFLink|Sauna|Työhuone|VW|Xiaomi|menu (2) w: (3) 3 2020-11-20 13:04:29 - -< buildmenu: (1) ["Autotalli","BMW","Eteinen"],["Hidden","Homebridge","Keittiö"],["Kodinhoitohuone","LUX","Lastenhuone"],["Lämpöpumppu","Makuuhuone","Milight"],["Misc","Musiikkihuone","Olohuone"],["PIR","Piha","Power"],["RFLink","Sauna","Työhuone"],["VW","Xiaomi","menu"] 2020-11-20 13:04:29 - -< replymarkup:{"keyboard":[["Autotalli","BMW","Eteinen"],["Hidden","Homebridge","Keittiö"],["Kodinhoitohuone","LUX","Lastenhuone"],["Lämpöpumppu","Makuuhuone","Milight"],["Misc","Musiikkihuone","Olohuone"],["PIR","Piha","Power"],["RFLink","Sauna","Työhuone"],["VW","Xiaomi","menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:04:29 - ==< Show main menu 2020-11-20 13:04:29 - msg_type: 2020-11-20 13:04:29 - replymarkup:{"keyboard":[["Autotalli","BMW","Eteinen"],["Hidden","Homebridge","Keittiö"],["Kodinhoitohuone","LUX","Lastenhuone"],["Lämpöpumppu","Makuuhuone","Milight"],["Misc","Musiikkihuone","Olohuone"],["PIR","Piha","Power"],["RFLink","Sauna","Työhuone"],["VW","Xiaomi","menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:04:29 - https://api.telegram.org/XXX 2020-11-20 13:04:29 - Message sent (1) 200 2020-11-20 13:04:29 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-20 13:04:29 - Succesfully handled incoming request ```

It stops there...

I again commented out the language and same thing, not getting the menu anymore.

Well, then I run another command which was custom created and working yesterday. That worked and also the menu appeared right after this command was processed. Seems like it was some temporary glitch. I then tested the same switch I was testing in my previous message and now it works as well. And yes, the language is still commented out. In any case, it seems to work now. A few log lines from the last commands (if it tells anything about the reason in the background):

Click arrow to see / hide log ``` 2020-11-20 13:11:55 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 13:11:55 - JSON request 2020-11-20 13:11:55 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 13:11:55 - Type (1) Color Switch 2020-11-20 13:11:55 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) On (8) (9) 100 2020-11-20 13:11:55 - => dstatus : (1) On 2020-11-20 13:11:55 - => LevelNames : (1) 2020-11-20 13:11:55 - => LevelInt : (1) 100 2020-11-20 13:11:55 - => devicename : (1) en_kattovalo 2020-11-20 13:11:55 - => realdevicename : (1) Työhuoneen kattovalo 2020-11-20 13:11:55 - => idx: (1) 536 2020-11-20 13:11:55 - => Type : (1) Color Switch 2020-11-20 13:11:55 - => DeviceType : (1) devices 2020-11-20 13:11:55 - => SwitchType : (1) Dimmer 2020-11-20 13:11:55 - => MaxDimLevel: (1) 100 2020-11-20 13:11:55 - => LevelNames : (1) 2020-11-20 13:11:55 - -< ChkInTable found: off (1) 1 (2) off,open 2020-11-20 13:11:55 - JSON request 2020-11-20 13:11:56 - JSON feedback: (1) { "status" : "OK", "title" : "SwitchLight" } 2020-11-20 13:11:56 - -< sSwitchName: (1) Työhuoneen kattovalo (2) 536 (3) 200 (4) Switched Työhuoneen kattovalo => Off 2020-11-20 13:11:56 - Start makereplymenu: (1) 196847530 (2) devicemenu (3) Työhuone (4) en_kattovalo 2020-11-20 13:11:56 - -> makereplymenu Level: (1) devicemenu (2) submenu (3) Työhuone (4) devicename (5) en_kattovalo 2020-11-20 13:11:56 - submenu: Työhuone 2020-11-20 13:11:56 - Submenu item: (1) Musiikki_työhuone 2020-11-20 13:11:56 - - Submenu item: (1) Musiikki_työhuone (2) y (3) devices (4) 305 (5) Playing 2020-11-20 13:11:56 - ==> start devinfo_from_name (1) 305 (2) Musiikki työhuone 2020-11-20 13:11:56 - JSON request 2020-11-20 13:11:56 - device (1) Musiikki työhuone (2) Musiikki työhuone (3) 305 (4) 305 2020-11-20 13:11:56 - Type (1) Lighting 2 2020-11-20 13:11:56 - --< devinfo_from_name: (1) 1 (2) 305 (3) Musiikki työhuone (4) devices (5) Lighting 2 (6) Media Player (7) Playing (8) (9) 0 2020-11-20 13:11:56 - Musiikki_työhuone - Playing| 2020-11-20 13:11:56 - Submenu item: (1) PIR_ 2020-11-20 13:11:56 - - Submenu item: (1) PIR_ (2) y (3) devices (4) 619 (5) On 2020-11-20 13:11:56 - ==> start devinfo_from_name (2) PIR Työhuone 2020-11-20 13:11:56 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 13:11:56 - Musiikki_työhuone - Playing|PIR_| 2020-11-20 13:11:56 - Submenu item: (1) en_kattovalo 2020-11-20 13:11:56 - - Submenu item: (1) en_kattovalo (2) y (3) devices (4) 536 (5) Off 2020-11-20 13:11:56 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 13:11:56 - JSON request 2020-11-20 13:11:56 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 13:11:56 - Type (1) Color Switch 2020-11-20 13:11:56 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) Off (8) (9) 100 2020-11-20 13:11:56 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off| 2020-11-20 13:11:56 - ---< (1) Color Switch (2) Dimmer (3) using replymarkup: (4) 2020-11-20 13:11:56 - -< Dimmer using replymarkup: (1) Off,On,25%,50%,75%,99%,? 2020-11-20 13:11:56 - Submenu item: (1) en_valomäärä 2020-11-20 13:11:56 - - Submenu item: (1) en_valomäärä (2) y (3) devices (4) 622 (5) 23 Lux 2020-11-20 13:11:56 - ==> start devinfo_from_name (2) Työhuoneen valomäärä 2020-11-20 13:11:56 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 13:11:56 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off|en_valomäärä| 2020-11-20 13:11:56 - process buildmenu: (1) Off,On,25%,50%,75%,99%,? (2) w: (3) 8 2020-11-20 13:11:56 - -< buildmenu: (1) ["Off","On","25%","50%","75%","99%","?"] 2020-11-20 13:11:56 - process buildmenu: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off|en_valomäärä| (2) w: (3) 3 2020-11-20 13:11:56 - -< buildmenu: (1) ["Musiikki_työhuone - Playing","PIR_","en_kattovalo - Off"],["en_valomäärä"] 2020-11-20 13:11:56 - process buildmenu: (1) menu (2) w: (3) 3 2020-11-20 13:11:56 - -< buildmenu: (1) ["menu"] 2020-11-20 13:11:56 - -< replymarkup:{"keyboard":[["Off","On","25%","50%","75%","99%","?"],["Musiikki_työhuone - Playing","PIR_","en_kattovalo - Off"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:11:56 - ==< Switched Työhuoneen kattovalo => Off 2020-11-20 13:11:56 - msg_type: 2020-11-20 13:11:56 - replymarkup:{"keyboard":[["Off","On","25%","50%","75%","99%","?"],["Musiikki_työhuone - Playing","PIR_","en_kattovalo - Off"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:11:56 - https://api.telegram.org/XXX 2020-11-20 13:11:56 - Message sent (1) 200 2020-11-20 13:11:56 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-20 13:11:56 - Succesfully handled incoming request .2020-11-20 13:12:46 - 2020-11-20 13:12:46 - {"ok":true,"result":[]} ```
jvanderzande commented 3 years ago

So it works now.. and I am pretty sure there is a glitch with the language settings, but as you didn't provide what I asked, it will be hard for me to determine the exact issue. ;-)

...and i really need the whole log as I also need to see the table initialization to see what is possibly missing. Maybe you can also provide the config files to me so I can double check those?**

odelma commented 3 years ago

Yes, true, sorry about that. Got a bit carried away when it started working 😄 I think I have not touched the .cfg files if you mean those. 0nly /etc/profile.d/DomoticzData.sh as mentioned in the main wiki page. I definitely need to look closer as I see there are more links defining what can be done and what should be updated. Would you still want the full log? I can create it again or maybe it is not useful anymore now that it works? I have still this from the old log, but I guess this is missing the start as well. This starts from where I run the custom command "lampo" and suddenly after that it starts to work again:

Click arrow to see / hide log ``` 2020-11-20 13:11:12 - {"ok":true,"result":[{"update_id":XXX, "message":{"message_id":1022,"from":{"id":XXX,"is_bot":false,"first_name":"XXX","last_name":"XXX","username":"XXX","language_code":"fi"},"chat":{"id":XXX,"first_name":"XXX","last_name":"XXX","username":"XXX","type":"private"},"date":1605870672,"text":"lampo"}}]} 2020-11-20 13:11:12 - Message: 1 2020-11-20 13:11:12 - update_id (1) XXX 2020-11-20 13:11:12 - TelegramBotOffset XXX1 2020-11-20 13:11:12 - JSON request 2020-11-20 13:11:12 - lampo 2020-11-20 13:11:12 - WhiteList: XXX 2020-11-20 13:11:12 - WhiteList: XXX 2020-11-20 13:11:12 - Handle command function started with lampo and XXX Group:XXX msg_type: 2020-11-20 13:11:12 - dtgbot: Start DTGMENU ... (1) lampo 2020-11-20 13:11:12 - ==> menu.lua process:lampo 2020-11-20 13:11:12 - => SendTo: (1) XXX 2020-11-20 13:11:12 - => commandline : (1) lampo 2020-11-20 13:11:12 - => command : (1) lampo 2020-11-20 13:11:12 - => param1 : (1) 2020-11-20 13:11:12 - => Lastmenu submenu : (1) Autotalli|BMW|Eteinen|Hidden|Homebridge|Keittiö|Kodinhoitohuone|LUX|Lastenhuone|Lämpöpumppu|Makuuhuone|Milight|Misc|Musiikkihuone|Olohuone|PIR|Piha|Power|RFLink|Sauna|Työhuone|VW|Xiaomi|menu 2020-11-20 13:11:12 - => Lastmenu devs/cmds: (1) 2020-11-20 13:11:12 - => Lastmenu actions : (1) 2020-11-20 13:11:12 - => Lastcmd prompt : (1) false 2020-11-20 13:11:12 - => Lastcmd submenu: (1) 2020-11-20 13:11:12 - => Lastcmd device : (1) 2020-11-20 13:11:12 - -< ChkInTable not found: lampo (1) 0 (2) 2020-11-20 13:11:12 - -< ChkInTable not found: lampo (1) 0 (2) 2020-11-20 13:11:12 - -< ChkInTable not found: lampo (1) 24 (2) Autotalli|BMW|Eteinen|Hidden|Homebridge|Keittiö|Kodinhoitohuone|LUX|Lastenhuone|Lämpöpumppu|Makuuhuone|Milight|Misc|Musiikkihuone|Olohuone|PIR|Piha|Power|RFLink|Sauna|Työhuone|VW|Xiaomi|menu 2020-11-20 13:11:12 - -< ChkInTable not found: ? (1) 0 (2) 2020-11-20 13:11:12 - ==<1b found regular lua command and param was given. -> hand back to dtgbot to run (1) lampo 2020-11-20 13:11:12 - dtgbot:continue regular processing. cmd => (1) lampo 2020-11-20 13:11:12 - checking line checkdomoticzupdate.sh 2020-11-20 13:11:12 - checking line doorbell.sh 2020-11-20 13:11:12 - checking line ilmoitus.sh 2020-11-20 13:11:12 - checking line lampo.sh 2020-11-20 13:11:12 - lampo.sh {"ok":true,"result":{"message_id":1023,"from":{"id":267970515,"is_bot":true,"first_name":"Koti","username":"XXX"},"chat":{"id":XXX,"first_name":"XXX","last_name":"XXX","username":"XXX","type":"private"},"date":1605870674,"text":"Etupiha: 0.2\u00b0C / 39%\nTakapiha: -0.5\u00b0C / 49%\nOlohuone: 22.7\u00b0C / 40%\n: \u00b0C / %\n: \u00b0C / %\n: \u00b0C / %\nMusiikkihuone: 22.5\u00b0C \nTerassi: 2.8\u00b0C / 83%\nTalli: 10.2\u00b0C / 70%\nVarasto: 17.1\u00b0C / 40%\nSauna: 21.6\u00b0C \nEnnuste: Rain"}}2020-11-20 13:11:14 - checking line letterbox.sh 2020-11-20 13:11:14 - checking line smiliesoverview.sh 2020-11-20 13:11:14 - checking line status.sh 2020-11-20 13:11:14 - checking line systemstatus.sh 2020-11-20 13:11:14 - checking line temperature.sh 2020-11-20 13:11:14 - checking line varia.sh 2020-11-20 13:11:14 - checking line video_note.sh 2020-11-20 13:11:14 - checking line voice.sh 2020-11-20 13:11:14 - msg_type: 2020-11-20 13:11:14 - replymarkup:{"keyboard":[["menu"]],"resize_keyboard":true} 2020-11-20 13:11:14 - https://api.telegram.org/XXX/sendMessage?chat_id=XXX&reply_to_message_id=1022&text=done&reply_markup=%7B%22keyboard%22%3A%5B%5B%22menu%22%5D%5D%2C%22resize_keyboard%22%3Atrue%7D 2020-11-20 13:11:14 - Message sent (1) 200 2020-11-20 13:11:14 - Succesfully handled incoming request .2020-11-20 13:11:26 - 2020-11-20 13:11:26 - {"ok":true,"result":[{"update_id":XXX1, "message":{"message_id":1025,"from":{"id":XXX,"is_bot":false,"first_name":"XXX","last_name":"XXX","username":"XXX","language_code":"fi"},"chat":{"id":XXX,"first_name":"XXX","last_name":"XXX","username":"XXX","type":"private"},"date":1605870686,"text":"menu"}}]} 2020-11-20 13:11:26 - Message: 1 2020-11-20 13:11:26 - update_id (1) XXX1 2020-11-20 13:11:26 - TelegramBotOffset XXX2 2020-11-20 13:11:26 - JSON request 2020-11-20 13:11:26 - menu 2020-11-20 13:11:26 - WhiteList: XXX 2020-11-20 13:11:26 - WhiteList: XXX 2020-11-20 13:11:26 - Handle command function started with menu and XXX Group:XXX msg_type: 2020-11-20 13:11:26 - dtgbot: Start DTGMENU ... (1) menu 2020-11-20 13:11:26 - ==> menu.lua process:menu 2020-11-20 13:11:26 - => SendTo: (1) XXX 2020-11-20 13:11:26 - => commandline : (1) menu 2020-11-20 13:11:26 - => command : (1) menu 2020-11-20 13:11:26 - => param1 : (1) 2020-11-20 13:11:26 - => Lastmenu submenu : (1) 2020-11-20 13:11:26 - => Lastmenu devs/cmds: (1) 2020-11-20 13:11:26 - => Lastmenu actions : (1) 2020-11-20 13:11:26 - => Lastcmd prompt : (1) false 2020-11-20 13:11:26 - => Lastcmd submenu: (1) 2020-11-20 13:11:26 - => Lastcmd device : (1) 2020-11-20 13:11:26 - -< ChkInTable not found: menu (1) 0 (2) 2020-11-20 13:11:26 - -< ChkInTable not found: menu (1) 0 (2) 2020-11-20 13:11:26 - -< ChkInTable not found: menu (1) 0 (2) 2020-11-20 13:11:26 - -< ChkInTable not found: ? (1) 0 (2) 2020-11-20 13:11:26 - Start makereplymenu: (1) XXX (2) mainmenu (3) (4) 2020-11-20 13:11:26 - -> makereplymenu Level: (1) mainmenu (2) submenu (3) (4) devicename (5) 2020-11-20 13:11:26 - submenu: 2020-11-20 13:11:26 - process buildmenu: (1) Autotalli|BMW|Eteinen|Hidden|Homebridge|Keittiö|Kodinhoitohuone|LUX|Lastenhuone|Lämpöpumppu|Makuuhuone|Milight|Misc|Musiikkihuone|Olohuone|PIR|Piha|Power|RFLink|Sauna|Työhuone|VW|Xiaomi|menu (2) w: (3) 3 2020-11-20 13:11:26 - -< buildmenu: (1) ["Autotalli","BMW","Eteinen"],["Hidden","Homebridge","Keittiö"],["Kodinhoitohuone","LUX","Lastenhuone"],["Lämpöpumppu","Makuuhuone","Milight"],["Misc","Musiikkihuone","Olohuone"],["PIR","Piha","Power"],["RFLink","Sauna","Työhuone"],["VW","Xiaomi","menu"] 2020-11-20 13:11:26 - -< replymarkup:{"keyboard":[["Autotalli","BMW","Eteinen"],["Hidden","Homebridge","Keittiö"],["Kodinhoitohuone","LUX","Lastenhuone"],["Lämpöpumppu","Makuuhuone","Milight"],["Misc","Musiikkihuone","Olohuone"],["PIR","Piha","Power"],["RFLink","Sauna","Työhuone"],["VW","Xiaomi","menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:11:26 - ==< Show main menu 2020-11-20 13:11:26 - msg_type: 2020-11-20 13:11:26 - replymarkup:{"keyboard":[["Autotalli","BMW","Eteinen"],["Hidden","Homebridge","Keittiö"],["Kodinhoitohuone","LUX","Lastenhuone"],["Lämpöpumppu","Makuuhuone","Milight"],["Misc","Musiikkihuone","Olohuone"],["PIR","Piha","Power"],["RFLink","Sauna","Työhuone"],["VW","Xiaomi","menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:11:26 - https://api.telegram.org/XXX/sendMessage?chat_id=XXX&reply_to_message_id=1025&text=Select+the+submenu.&reply_markup=%7B%22keyboard%22%3A%5B%5B%22Autotalli%22%2C%22BMW%22%2C%22Eteinen%22%5D%2C%5B%22Hidden%22%2C%22Homebridge%22%2C%22Keitti%C3%B6%22%5D%2C%5B%22Kodinhoitohuone%22%2C%22LUX%22%2C%22Lastenhuone%22%5D%2C%5B%22L%C3%A4mp%C3%B6pumppu%22%2C%22Makuuhuone%22%2C%22Milight%22%5D%2C%5B%22Misc%22%2C%22Musiikkihuone%22%2C%22Olohuone%22%5D%2C%5B%22PIR%22%2C%22Piha%22%2C%22Power%22%5D%2C%5B%22RFLink%22%2C%22Sauna%22%2C%22Ty%C3%B6huone%22%5D%2C%5B%22VW%22%2C%22Xiaomi%22%2C%22menu%22%5D%5D%2C%22selective%22%3Atrue%2C%22resize_keyboard%22%3Atrue%7D 2020-11-20 13:11:26 - Message sent (1) 200 2020-11-20 13:11:26 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-20 13:11:26 - Succesfully handled incoming request .2020-11-20 13:11:37 - 2020-11-20 13:11:37 - {"ok":true,"result":[{"update_id":XXX2, "message":{"message_id":1027,"from":{"id":XXX,"is_bot":false,"first_name":"XXX","last_name":"XXX","username":"XXX","language_code":"fi"},"chat":{"id":XXX,"first_name":"XXX","last_name":"XXX","username":"XXX","type":"private"},"date":1605870697,"text":"Ty\u00f6huone"}}]} 2020-11-20 13:11:37 - Message: 1 2020-11-20 13:11:37 - update_id (1) XXX2 2020-11-20 13:11:37 - TelegramBotOffset XXX3 2020-11-20 13:11:37 - JSON request 2020-11-20 13:11:37 - Työhuone 2020-11-20 13:11:37 - WhiteList: XXX 2020-11-20 13:11:37 - WhiteList: XXX 2020-11-20 13:11:37 - Handle command function started with Työhuone and XXX Group:XXX msg_type: 2020-11-20 13:11:37 - dtgbot: Start DTGMENU ... (1) Työhuone 2020-11-20 13:11:37 - ==> menu.lua process:Työhuone 2020-11-20 13:11:37 - => SendTo: (1) XXX 2020-11-20 13:11:37 - => commandline : (1) Työhuone 2020-11-20 13:11:37 - => command : (1) Työhuone 2020-11-20 13:11:37 - => param1 : (1) 2020-11-20 13:11:37 - => Lastmenu submenu : (1) Autotalli|BMW|Eteinen|Hidden|Homebridge|Keittiö|Kodinhoitohuone|LUX|Lastenhuone|Lämpöpumppu|Makuuhuone|Milight|Misc|Musiikkihuone|Olohuone|PIR|Piha|Power|RFLink|Sauna|Työhuone|VW|Xiaomi|menu 2020-11-20 13:11:37 - => Lastmenu devs/cmds: (1) 2020-11-20 13:11:37 - => Lastmenu actions : (1) 2020-11-20 13:11:37 - => Lastcmd prompt : (1) false 2020-11-20 13:11:37 - => Lastcmd submenu: (1) 2020-11-20 13:11:37 - => Lastcmd device : (1) 2020-11-20 13:11:37 - -< ChkInTable not found: Työhuone (1) 0 (2) 2020-11-20 13:11:37 - -< ChkInTable not found: Työhuone (1) 0 (2) 2020-11-20 13:11:37 - -< ChkInTable found: Työhuone (1) 21 (2) Autotalli|BMW|Eteinen|Hidden|Homebridge|Keittiö|Kodinhoitohuone|LUX|Lastenhuone|Lämpöpumppu|Makuuhuone|Milight|Misc|Musiikkihuone|Olohuone|PIR|Piha|Power|RFLink|Sauna|Työhuone|VW|Xiaomi|menu 2020-11-20 13:11:37 - -< ChkInTable not found: ? (1) 0 (2) 2020-11-20 13:11:37 - - Showing Submenu as no device name specified. submenu: Työhuone 2020-11-20 13:11:37 - Start makereplymenu: (1) XXX (2) submenu (3) Työhuone (4) 2020-11-20 13:11:37 - -> makereplymenu Level: (1) submenu (2) submenu (3) Työhuone (4) devicename (5) 2020-11-20 13:11:37 - submenu: Työhuone 2020-11-20 13:11:37 - Submenu item: (1) Musiikki_työhuone 2020-11-20 13:11:37 - - Submenu item: (1) Musiikki_työhuone (2) y (3) devices (4) 305 (5) Playing 2020-11-20 13:11:37 - ==> start devinfo_from_name (1) 305 (2) Musiikki työhuone 2020-11-20 13:11:37 - JSON request 2020-11-20 13:11:37 - device (1) Musiikki työhuone (2) Musiikki työhuone (3) 305 (4) 305 2020-11-20 13:11:37 - Type (1) Lighting 2 2020-11-20 13:11:37 - --< devinfo_from_name: (1) 1 (2) 305 (3) Musiikki työhuone (4) devices (5) Lighting 2 (6) Media Player (7) Playing (8) (9) 0 2020-11-20 13:11:37 - Musiikki_työhuone - Playing| 2020-11-20 13:11:37 - Submenu item: (1) PIR_ 2020-11-20 13:11:37 - - Submenu item: (1) PIR_ (2) y (3) devices (4) 619 (5) On 2020-11-20 13:11:37 - ==> start devinfo_from_name (2) PIR Työhuone 2020-11-20 13:11:37 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 13:11:37 - Musiikki_työhuone - Playing|PIR_| 2020-11-20 13:11:37 - Submenu item: (1) en_kattovalo 2020-11-20 13:11:37 - - Submenu item: (1) en_kattovalo (2) y (3) devices (4) 536 (5) Off 2020-11-20 13:11:37 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 13:11:37 - JSON request 2020-11-20 13:11:37 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 13:11:37 - Type (1) Color Switch 2020-11-20 13:11:37 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) Off (8) (9) 100 2020-11-20 13:11:37 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off| 2020-11-20 13:11:37 - Submenu item: (1) en_valomäärä 2020-11-20 13:11:37 - - Submenu item: (1) en_valomäärä (2) y (3) devices (4) 622 (5) 23 Lux 2020-11-20 13:11:37 - ==> start devinfo_from_name (2) Työhuoneen valomäärä 2020-11-20 13:11:37 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 13:11:37 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off|en_valomäärä| 2020-11-20 13:11:37 - process buildmenu: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off|en_valomäärä| (2) w: (3) 3 2020-11-20 13:11:37 - -< buildmenu: (1) ["Musiikki_työhuone - Playing","PIR_","en_kattovalo - Off"],["en_valomäärä"] 2020-11-20 13:11:37 - process buildmenu: (1) menu (2) w: (3) 3 2020-11-20 13:11:37 - -< buildmenu: (1) ["menu"] 2020-11-20 13:11:37 - -< replymarkup:{"keyboard":[["Musiikki_työhuone - Playing","PIR_","en_kattovalo - Off"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:11:37 - ==< show options in submenu. 2020-11-20 13:11:37 - msg_type: 2020-11-20 13:11:37 - replymarkup:{"keyboard":[["Musiikki_työhuone - Playing","PIR_","en_kattovalo - Off"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:11:37 - https://api.telegram.org/XXX/sendMessage?chat_id=XXX&reply_to_message_id=1027&text=Ty%C3%B6huone%3ASelect+option.&reply_markup=%7B%22keyboard%22%3A%5B%5B%22Musiikki_ty%C3%B6huone+-+Playing%22%2C%22PIR_%22%2C%22en_kattovalo+-+Off%22%5D%2C%5B%22en_valom%C3%A4%C3%A4r%C3%A4%22%5D%2C%5B%22menu%22%5D%5D%2C%22selective%22%3Atrue%2C%22resize_keyboard%22%3Atrue%7D 2020-11-20 13:11:37 - Message sent (1) 200 2020-11-20 13:11:37 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-20 13:11:37 - Succesfully handled incoming request .2020-11-20 13:11:39 - 2020-11-20 13:11:39 - {"ok":true,"result":[{"update_id":XXX3, "message":{"message_id":1029,"from":{"id":XXX,"is_bot":false,"first_name":"XXX","last_name":"XXX","username":"XXX","language_code":"fi"},"chat":{"id":XXX,"first_name":"XXX","last_name":"XXX","username":"XXX","type":"private"},"date":1605870699,"text":"en_kattovalo - Off"}}]} 2020-11-20 13:11:39 - Message: 1 2020-11-20 13:11:39 - update_id (1) XXX3 2020-11-20 13:11:39 - TelegramBotOffset XXX4 2020-11-20 13:11:39 - JSON request 2020-11-20 13:11:39 - en_kattovalo - Off 2020-11-20 13:11:39 - WhiteList: XXX 2020-11-20 13:11:39 - WhiteList: XXX 2020-11-20 13:11:39 - Handle command function started with en_kattovalo - Off and XXX Group:XXX msg_type: 2020-11-20 13:11:39 - dtgbot: Start DTGMENU ... (1) en_kattovalo - Off 2020-11-20 13:11:39 - ==> menu.lua process:en_kattovalo - Off 2020-11-20 13:11:39 - => SendTo: (1) XXX 2020-11-20 13:11:39 - => commandline : (1) en_kattovalo - Off 2020-11-20 13:11:39 - => command : (1) en_kattovalo 2020-11-20 13:11:39 - => param1 : (1) - 2020-11-20 13:11:39 - => Lastmenu submenu : (1) menu 2020-11-20 13:11:39 - => Lastmenu devs/cmds: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off|en_valomäärä| 2020-11-20 13:11:39 - => Lastmenu actions : (1) 2020-11-20 13:11:39 - => Lastcmd prompt : (1) false 2020-11-20 13:11:39 - => Lastcmd submenu: (1) Työhuone 2020-11-20 13:11:39 - => Lastcmd device : (1) 2020-11-20 13:11:39 - -< ChkInTable not found: en_kattovalo - Off (1) 0 (2) 2020-11-20 13:11:39 - -< ChkInTable found: en_kattovalo - Off (1) 3 (2) Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off|en_valomäärä| 2020-11-20 13:11:39 - -< ChkInTable not found: en_kattovalo - Off (1) 1 (2) menu 2020-11-20 13:11:39 - => devicename : (1) en_kattovalo 2020-11-20 13:11:39 - => realdevicename : (1) Työhuoneen kattovalo 2020-11-20 13:11:39 - => idx: (1) 536 2020-11-20 13:11:39 - => Type : (1) Color Switch 2020-11-20 13:11:39 - => DeviceType : (1) devices 2020-11-20 13:11:39 - => SwitchType : (1) Dimmer 2020-11-20 13:11:39 - => MaxDimLevel: (1) 100 2020-11-20 13:11:39 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 13:11:39 - JSON request 2020-11-20 13:11:39 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 13:11:39 - Type (1) Color Switch 2020-11-20 13:11:39 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) Off (8) (9) 100 2020-11-20 13:11:39 - => dstatus : (1) Off 2020-11-20 13:11:39 - => LevelNames : (1) 2020-11-20 13:11:39 - => LevelInt : (1) 100 2020-11-20 13:11:39 - Start makereplymenu: (1) XXX (2) devicemenu (3) Työhuone (4) en_kattovalo 2020-11-20 13:11:39 - -> makereplymenu Level: (1) devicemenu (2) submenu (3) Työhuone (4) devicename (5) en_kattovalo 2020-11-20 13:11:39 - submenu: Työhuone 2020-11-20 13:11:39 - Submenu item: (1) Musiikki_työhuone 2020-11-20 13:11:39 - - Submenu item: (1) Musiikki_työhuone (2) y (3) devices (4) 305 (5) Playing 2020-11-20 13:11:39 - ==> start devinfo_from_name (1) 305 (2) Musiikki työhuone 2020-11-20 13:11:39 - JSON request 2020-11-20 13:11:39 - device (1) Musiikki työhuone (2) Musiikki työhuone (3) 305 (4) 305 2020-11-20 13:11:39 - Type (1) Lighting 2 2020-11-20 13:11:39 - --< devinfo_from_name: (1) 1 (2) 305 (3) Musiikki työhuone (4) devices (5) Lighting 2 (6) Media Player (7) Playing (8) (9) 0 2020-11-20 13:11:39 - Musiikki_työhuone - Playing| 2020-11-20 13:11:39 - Submenu item: (1) PIR_ 2020-11-20 13:11:39 - - Submenu item: (1) PIR_ (2) y (3) devices (4) 619 (5) On 2020-11-20 13:11:39 - ==> start devinfo_from_name (2) PIR Työhuone 2020-11-20 13:11:39 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 13:11:39 - Musiikki_työhuone - Playing|PIR_| 2020-11-20 13:11:39 - Submenu item: (1) en_kattovalo 2020-11-20 13:11:39 - - Submenu item: (1) en_kattovalo (2) y (3) devices (4) 536 (5) Off 2020-11-20 13:11:39 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 13:11:39 - JSON request 2020-11-20 13:11:39 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 13:11:39 - Type (1) Color Switch 2020-11-20 13:11:39 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) Off (8) (9) 100 2020-11-20 13:11:39 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off| 2020-11-20 13:11:39 - ---< (1) Color Switch (2) Dimmer (3) using replymarkup: (4) 2020-11-20 13:11:39 - -< Dimmer using replymarkup: (1) Off,On,25%,50%,75%,99%,? 2020-11-20 13:11:39 - Submenu item: (1) en_valomäärä 2020-11-20 13:11:39 - - Submenu item: (1) en_valomäärä (2) y (3) devices (4) 622 (5) 23 Lux 2020-11-20 13:11:39 - ==> start devinfo_from_name (2) Työhuoneen valomäärä 2020-11-20 13:11:39 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 13:11:39 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off|en_valomäärä| 2020-11-20 13:11:39 - process buildmenu: (1) Off,On,25%,50%,75%,99%,? (2) w: (3) 8 2020-11-20 13:11:39 - -< buildmenu: (1) ["Off","On","25%","50%","75%","99%","?"] 2020-11-20 13:11:39 - process buildmenu: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off|en_valomäärä| (2) w: (3) 3 2020-11-20 13:11:39 - -< buildmenu: (1) ["Musiikki_työhuone - Playing","PIR_","en_kattovalo - Off"],["en_valomäärä"] 2020-11-20 13:11:39 - process buildmenu: (1) menu (2) w: (3) 3 2020-11-20 13:11:39 - -< buildmenu: (1) ["menu"] 2020-11-20 13:11:39 - -< replymarkup:{"keyboard":[["Off","On","25%","50%","75%","99%","?"],["Musiikki_työhuone - Playing","PIR_","en_kattovalo - Off"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:11:39 - ==< Show device options menu plus other devices in submenu. 2020-11-20 13:11:39 - msg_type: 2020-11-20 13:11:39 - replymarkup:{"keyboard":[["Off","On","25%","50%","75%","99%","?"],["Musiikki_työhuone - Playing","PIR_","en_kattovalo - Off"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:11:39 - https://api.telegram.org/XXX/sendMessage?chat_id=XXX&reply_to_message_id=1029&text=Select+new+status.&reply_markup=%7B%22keyboard%22%3A%5B%5B%22Off%22%2C%22On%22%2C%2225%25%22%2C%2250%25%22%2C%2275%25%22%2C%2299%25%22%2C%22%3F%22%5D%2C%5B%22Musiikki_ty%C3%B6huone+-+Playing%22%2C%22PIR_%22%2C%22en_kattovalo+-+Off%22%5D%2C%5B%22en_valom%C3%A4%C3%A4r%C3%A4%22%5D%2C%5B%22menu%22%5D%5D%2C%22selective%22%3Atrue%2C%22resize_keyboard%22%3Atrue%7D 2020-11-20 13:11:40 - Message sent (1) 200 2020-11-20 13:11:40 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-20 13:11:40 - Succesfully handled incoming request .2020-11-20 13:11:42 - 2020-11-20 13:11:42 - {"ok":true,"result":[{"update_id":XXX4, "message":{"message_id":1031,"from":{"id":XXX,"is_bot":false,"first_name":"XXX","last_name":"XXX","username":"XXX","language_code":"fi"},"chat":{"id":XXX,"first_name":"XXX","last_name":"XXX","username":"XXX","type":"private"},"date":1605870702,"text":"On"}}]} 2020-11-20 13:11:42 - Message: 1 2020-11-20 13:11:42 - update_id (1) XXX4 2020-11-20 13:11:42 - TelegramBotOffset XXX5 2020-11-20 13:11:42 - JSON request 2020-11-20 13:11:42 - On 2020-11-20 13:11:42 - WhiteList: XXX 2020-11-20 13:11:42 - WhiteList: XXX 2020-11-20 13:11:42 - Handle command function started with On and XXX Group:XXX msg_type: 2020-11-20 13:11:42 - dtgbot: Start DTGMENU ... (1) On 2020-11-20 13:11:42 - ==> menu.lua process:On 2020-11-20 13:11:42 - => SendTo: (1) XXX 2020-11-20 13:11:42 - => commandline : (1) On 2020-11-20 13:11:42 - => command : (1) On 2020-11-20 13:11:42 - => param1 : (1) 2020-11-20 13:11:42 - => Lastmenu submenu : (1) menu 2020-11-20 13:11:42 - => Lastmenu devs/cmds: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off|en_valomäärä| 2020-11-20 13:11:42 - => Lastmenu actions : (1) Off,On,25%,50%,75%,99%,? 2020-11-20 13:11:42 - => Lastcmd prompt : (1) false 2020-11-20 13:11:42 - => Lastcmd submenu: (1) Työhuone 2020-11-20 13:11:42 - => Lastcmd device : (1) en_kattovalo 2020-11-20 13:11:42 - -< ChkInTable found: On (1) 2 (2) Off,On,25%,50%,75%,99%,? 2020-11-20 13:11:42 - -< ChkInTable not found: On (1) 4 (2) Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off|en_valomäärä| 2020-11-20 13:11:42 - -< ChkInTable not found: On (1) 1 (2) menu 2020-11-20 13:11:42 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 13:11:42 - JSON request 2020-11-20 13:11:42 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 13:11:42 - Type (1) Color Switch 2020-11-20 13:11:42 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) Off (8) (9) 100 2020-11-20 13:11:42 - => dstatus : (1) Off 2020-11-20 13:11:42 - => LevelNames : (1) 2020-11-20 13:11:42 - => LevelInt : (1) 100 2020-11-20 13:11:42 - => devicename : (1) en_kattovalo 2020-11-20 13:11:42 - => realdevicename : (1) Työhuoneen kattovalo 2020-11-20 13:11:42 - => idx: (1) 536 2020-11-20 13:11:42 - => Type : (1) Color Switch 2020-11-20 13:11:42 - => DeviceType : (1) devices 2020-11-20 13:11:42 - => SwitchType : (1) Dimmer 2020-11-20 13:11:42 - => MaxDimLevel: (1) 100 2020-11-20 13:11:42 - => LevelNames : (1) 2020-11-20 13:11:42 - -< ChkInTable not found: on (1) 2 (2) off,open 2020-11-20 13:11:42 - -< ChkInTable found: on (1) 1 (2) on,close,start 2020-11-20 13:11:42 - JSON request 2020-11-20 13:11:42 - JSON feedback: (1) { "status" : "OK", "title" : "SwitchLight" } 2020-11-20 13:11:42 - -< sSwitchName: (1) Työhuoneen kattovalo (2) 536 (3) 200 (4) Switched Työhuoneen kattovalo => On 2020-11-20 13:11:42 - Start makereplymenu: (1) XXX (2) devicemenu (3) Työhuone (4) en_kattovalo 2020-11-20 13:11:42 - -> makereplymenu Level: (1) devicemenu (2) submenu (3) Työhuone (4) devicename (5) en_kattovalo 2020-11-20 13:11:42 - submenu: Työhuone 2020-11-20 13:11:42 - Submenu item: (1) Musiikki_työhuone 2020-11-20 13:11:42 - - Submenu item: (1) Musiikki_työhuone (2) y (3) devices (4) 305 (5) Playing 2020-11-20 13:11:42 - ==> start devinfo_from_name (1) 305 (2) Musiikki työhuone 2020-11-20 13:11:42 - JSON request 2020-11-20 13:11:42 - device (1) Musiikki työhuone (2) Musiikki työhuone (3) 305 (4) 305 2020-11-20 13:11:42 - Type (1) Lighting 2 2020-11-20 13:11:42 - --< devinfo_from_name: (1) 1 (2) 305 (3) Musiikki työhuone (4) devices (5) Lighting 2 (6) Media Player (7) Playing (8) (9) 0 2020-11-20 13:11:42 - Musiikki_työhuone - Playing| 2020-11-20 13:11:42 - Submenu item: (1) PIR_ 2020-11-20 13:11:42 - - Submenu item: (1) PIR_ (2) y (3) devices (4) 619 (5) On 2020-11-20 13:11:42 - ==> start devinfo_from_name (2) PIR Työhuone 2020-11-20 13:11:42 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 13:11:42 - Musiikki_työhuone - Playing|PIR_| 2020-11-20 13:11:42 - Submenu item: (1) en_kattovalo 2020-11-20 13:11:42 - - Submenu item: (1) en_kattovalo (2) y (3) devices (4) 536 (5) Off 2020-11-20 13:11:42 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 13:11:42 - JSON request 2020-11-20 13:11:42 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 13:11:42 - Type (1) Color Switch 2020-11-20 13:11:42 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) On (8) (9) 100 2020-11-20 13:11:42 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - On| 2020-11-20 13:11:42 - ---< (1) Color Switch (2) Dimmer (3) using replymarkup: (4) 2020-11-20 13:11:42 - -< Dimmer using replymarkup: (1) Off,On,25%,50%,75%,99%,? 2020-11-20 13:11:42 - Submenu item: (1) en_valomäärä 2020-11-20 13:11:42 - - Submenu item: (1) en_valomäärä (2) y (3) devices (4) 622 (5) 23 Lux 2020-11-20 13:11:42 - ==> start devinfo_from_name (2) Työhuoneen valomäärä 2020-11-20 13:11:42 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 13:11:42 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| 2020-11-20 13:11:42 - process buildmenu: (1) Off,On,25%,50%,75%,99%,? (2) w: (3) 8 2020-11-20 13:11:42 - -< buildmenu: (1) ["Off","On","25%","50%","75%","99%","?"] 2020-11-20 13:11:42 - process buildmenu: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| (2) w: (3) 3 2020-11-20 13:11:42 - -< buildmenu: (1) ["Musiikki_työhuone - Playing","PIR_","en_kattovalo - On"],["en_valomäärä"] 2020-11-20 13:11:42 - process buildmenu: (1) menu (2) w: (3) 3 2020-11-20 13:11:42 - -< buildmenu: (1) ["menu"] 2020-11-20 13:11:42 - -< replymarkup:{"keyboard":[["Off","On","25%","50%","75%","99%","?"],["Musiikki_työhuone - Playing","PIR_","en_kattovalo - On"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:11:42 - ==< Switched Työhuoneen kattovalo => On 2020-11-20 13:11:42 - msg_type: 2020-11-20 13:11:42 - replymarkup:{"keyboard":[["Off","On","25%","50%","75%","99%","?"],["Musiikki_työhuone - Playing","PIR_","en_kattovalo - On"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:11:42 - https://api.telegram.org/XXX/sendMessage?chat_id=XXX&reply_to_message_id=1031&text=Switched+Ty%C3%B6huoneen+kattovalo+%3D%3E+On&reply_markup=%7B%22keyboard%22%3A%5B%5B%22Off%22%2C%22On%22%2C%2225%25%22%2C%2250%25%22%2C%2275%25%22%2C%2299%25%22%2C%22%3F%22%5D%2C%5B%22Musiikki_ty%C3%B6huone+-+Playing%22%2C%22PIR_%22%2C%22en_kattovalo+-+On%22%5D%2C%5B%22en_valom%C3%A4%C3%A4r%C3%A4%22%5D%2C%5B%22menu%22%5D%5D%2C%22selective%22%3Atrue%2C%22resize_keyboard%22%3Atrue%7D 2020-11-20 13:11:43 - Message sent (1) 200 2020-11-20 13:11:43 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-20 13:11:43 - Succesfully handled incoming request .2020-11-20 13:11:53 - 2020-11-20 13:11:53 - {"ok":true,"result":[{"update_id":XXX5, "message":{"message_id":1033,"from":{"id":XXX,"is_bot":false,"first_name":"XXX","last_name":"XXX","username":"XXX","language_code":"fi"},"chat":{"id":XXX,"first_name":"XXX","last_name":"XXX","username":"XXX","type":"private"},"date":1605870713,"text":"en_kattovalo - On"}}]} 2020-11-20 13:11:53 - Message: 1 2020-11-20 13:11:53 - update_id (1) XXX5 2020-11-20 13:11:53 - TelegramBotOffset XXX6 2020-11-20 13:11:53 - JSON request 2020-11-20 13:11:53 - en_kattovalo - On 2020-11-20 13:11:53 - WhiteList: XXX 2020-11-20 13:11:53 - WhiteList: XXX 2020-11-20 13:11:53 - Handle command function started with en_kattovalo - On and XXX Group:XXX msg_type: 2020-11-20 13:11:53 - dtgbot: Start DTGMENU ... (1) en_kattovalo - On 2020-11-20 13:11:53 - ==> menu.lua process:en_kattovalo - On 2020-11-20 13:11:53 - => SendTo: (1) XXX 2020-11-20 13:11:53 - => commandline : (1) en_kattovalo - On 2020-11-20 13:11:53 - => command : (1) en_kattovalo 2020-11-20 13:11:53 - => param1 : (1) - 2020-11-20 13:11:53 - => Lastmenu submenu : (1) menu 2020-11-20 13:11:53 - => Lastmenu devs/cmds: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| 2020-11-20 13:11:53 - => Lastmenu actions : (1) Off,On,25%,50%,75%,99%,? 2020-11-20 13:11:53 - => Lastcmd prompt : (1) false 2020-11-20 13:11:53 - => Lastcmd submenu: (1) Työhuone 2020-11-20 13:11:53 - => Lastcmd device : (1) en_kattovalo 2020-11-20 13:11:53 - -< ChkInTable not found: en_kattovalo - On (1) 7 (2) Off,On,25%,50%,75%,99%,? 2020-11-20 13:11:53 - -< ChkInTable found: en_kattovalo - On (1) 3 (2) Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| 2020-11-20 13:11:53 - -< ChkInTable not found: en_kattovalo - On (1) 1 (2) menu 2020-11-20 13:11:53 - => devicename : (1) en_kattovalo 2020-11-20 13:11:53 - => realdevicename : (1) Työhuoneen kattovalo 2020-11-20 13:11:53 - => idx: (1) 536 2020-11-20 13:11:53 - => Type : (1) Color Switch 2020-11-20 13:11:53 - => DeviceType : (1) devices 2020-11-20 13:11:53 - => SwitchType : (1) Dimmer 2020-11-20 13:11:53 - => MaxDimLevel: (1) 100 2020-11-20 13:11:53 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 13:11:53 - JSON request 2020-11-20 13:11:53 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 13:11:53 - Type (1) Color Switch 2020-11-20 13:11:53 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) On (8) (9) 100 2020-11-20 13:11:53 - => dstatus : (1) On 2020-11-20 13:11:53 - => LevelNames : (1) 2020-11-20 13:11:53 - => LevelInt : (1) 100 2020-11-20 13:11:53 - Start makereplymenu: (1) XXX (2) devicemenu (3) Työhuone (4) en_kattovalo 2020-11-20 13:11:53 - -> makereplymenu Level: (1) devicemenu (2) submenu (3) Työhuone (4) devicename (5) en_kattovalo 2020-11-20 13:11:53 - submenu: Työhuone 2020-11-20 13:11:53 - Submenu item: (1) Musiikki_työhuone 2020-11-20 13:11:53 - - Submenu item: (1) Musiikki_työhuone (2) y (3) devices (4) 305 (5) Playing 2020-11-20 13:11:53 - ==> start devinfo_from_name (1) 305 (2) Musiikki työhuone 2020-11-20 13:11:53 - JSON request 2020-11-20 13:11:53 - device (1) Musiikki työhuone (2) Musiikki työhuone (3) 305 (4) 305 2020-11-20 13:11:53 - Type (1) Lighting 2 2020-11-20 13:11:53 - --< devinfo_from_name: (1) 1 (2) 305 (3) Musiikki työhuone (4) devices (5) Lighting 2 (6) Media Player (7) Playing (8) (9) 0 2020-11-20 13:11:53 - Musiikki_työhuone - Playing| 2020-11-20 13:11:53 - Submenu item: (1) PIR_ 2020-11-20 13:11:53 - - Submenu item: (1) PIR_ (2) y (3) devices (4) 619 (5) On 2020-11-20 13:11:53 - ==> start devinfo_from_name (2) PIR Työhuone 2020-11-20 13:11:53 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 13:11:53 - Musiikki_työhuone - Playing|PIR_| 2020-11-20 13:11:53 - Submenu item: (1) en_kattovalo 2020-11-20 13:11:53 - - Submenu item: (1) en_kattovalo (2) y (3) devices (4) 536 (5) Off 2020-11-20 13:11:53 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 13:11:53 - JSON request 2020-11-20 13:11:53 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 13:11:53 - Type (1) Color Switch 2020-11-20 13:11:53 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) On (8) (9) 100 2020-11-20 13:11:53 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - On| 2020-11-20 13:11:53 - ---< (1) Color Switch (2) Dimmer (3) using replymarkup: (4) 2020-11-20 13:11:53 - -< Dimmer using replymarkup: (1) Off,On,25%,50%,75%,99%,? 2020-11-20 13:11:53 - Submenu item: (1) en_valomäärä 2020-11-20 13:11:53 - - Submenu item: (1) en_valomäärä (2) y (3) devices (4) 622 (5) 23 Lux 2020-11-20 13:11:53 - ==> start devinfo_from_name (2) Työhuoneen valomäärä 2020-11-20 13:11:53 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 13:11:53 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| 2020-11-20 13:11:53 - process buildmenu: (1) Off,On,25%,50%,75%,99%,? (2) w: (3) 8 2020-11-20 13:11:53 - -< buildmenu: (1) ["Off","On","25%","50%","75%","99%","?"] 2020-11-20 13:11:53 - process buildmenu: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| (2) w: (3) 3 2020-11-20 13:11:53 - -< buildmenu: (1) ["Musiikki_työhuone - Playing","PIR_","en_kattovalo - On"],["en_valomäärä"] 2020-11-20 13:11:53 - process buildmenu: (1) menu (2) w: (3) 3 2020-11-20 13:11:53 - -< buildmenu: (1) ["menu"] 2020-11-20 13:11:53 - -< replymarkup: No update needed 2020-11-20 13:11:53 - ==< Show device options menu plus other devices in submenu. 2020-11-20 13:11:53 - msg_type: 2020-11-20 13:11:53 - replymarkup: 2020-11-20 13:11:53 - https://api.telegram.org/XXX/sendMessage?chat_id=XXX&reply_to_message_id=1033&text=Select+new+status. 2020-11-20 13:11:53 - Message sent (1) 200 2020-11-20 13:11:53 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-20 13:11:53 - Succesfully handled incoming request .2020-11-20 13:11:55 - 2020-11-20 13:11:55 - {"ok":true,"result":[{"update_id":XXX6, "message":{"message_id":1035,"from":{"id":XXX,"is_bot":false,"first_name":"XXX","last_name":"XXX","username":"XXX","language_code":"fi"},"chat":{"id":XXX,"first_name":"XXX","last_name":"XXX","username":"XXX","type":"private"},"date":1605870715,"text":"Off"}}]} 2020-11-20 13:11:55 - Message: 1 2020-11-20 13:11:55 - update_id (1) XXX6 2020-11-20 13:11:55 - TelegramBotOffset XXX7 2020-11-20 13:11:55 - JSON request 2020-11-20 13:11:55 - Off 2020-11-20 13:11:55 - WhiteList: XXX 2020-11-20 13:11:55 - WhiteList: XXX 2020-11-20 13:11:55 - Handle command function started with Off and XXX Group:XXX msg_type: 2020-11-20 13:11:55 - dtgbot: Start DTGMENU ... (1) Off 2020-11-20 13:11:55 - ==> menu.lua process:Off 2020-11-20 13:11:55 - => SendTo: (1) XXX 2020-11-20 13:11:55 - => commandline : (1) Off 2020-11-20 13:11:55 - => command : (1) Off 2020-11-20 13:11:55 - => param1 : (1) 2020-11-20 13:11:55 - => Lastmenu submenu : (1) menu 2020-11-20 13:11:55 - => Lastmenu devs/cmds: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| 2020-11-20 13:11:55 - => Lastmenu actions : (1) Off,On,25%,50%,75%,99%,? 2020-11-20 13:11:55 - => Lastcmd prompt : (1) false 2020-11-20 13:11:55 - => Lastcmd submenu: (1) Työhuone 2020-11-20 13:11:55 - => Lastcmd device : (1) en_kattovalo 2020-11-20 13:11:55 - -< ChkInTable found: Off (1) 1 (2) Off,On,25%,50%,75%,99%,? 2020-11-20 13:11:55 - -< ChkInTable not found: Off (1) 4 (2) Musiikki_työhuone - Playing|PIR_|en_kattovalo - On|en_valomäärä| 2020-11-20 13:11:55 - -< ChkInTable not found: Off (1) 1 (2) menu 2020-11-20 13:11:55 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 13:11:55 - JSON request 2020-11-20 13:11:55 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 13:11:55 - Type (1) Color Switch 2020-11-20 13:11:55 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) On (8) (9) 100 2020-11-20 13:11:55 - => dstatus : (1) On 2020-11-20 13:11:55 - => LevelNames : (1) 2020-11-20 13:11:55 - => LevelInt : (1) 100 2020-11-20 13:11:55 - => devicename : (1) en_kattovalo 2020-11-20 13:11:55 - => realdevicename : (1) Työhuoneen kattovalo 2020-11-20 13:11:55 - => idx: (1) 536 2020-11-20 13:11:55 - => Type : (1) Color Switch 2020-11-20 13:11:55 - => DeviceType : (1) devices 2020-11-20 13:11:55 - => SwitchType : (1) Dimmer 2020-11-20 13:11:55 - => MaxDimLevel: (1) 100 2020-11-20 13:11:55 - => LevelNames : (1) 2020-11-20 13:11:55 - -< ChkInTable found: off (1) 1 (2) off,open 2020-11-20 13:11:55 - JSON request 2020-11-20 13:11:56 - JSON feedback: (1) { "status" : "OK", "title" : "SwitchLight" } 2020-11-20 13:11:56 - -< sSwitchName: (1) Työhuoneen kattovalo (2) 536 (3) 200 (4) Switched Työhuoneen kattovalo => Off 2020-11-20 13:11:56 - Start makereplymenu: (1) XXX (2) devicemenu (3) Työhuone (4) en_kattovalo 2020-11-20 13:11:56 - -> makereplymenu Level: (1) devicemenu (2) submenu (3) Työhuone (4) devicename (5) en_kattovalo 2020-11-20 13:11:56 - submenu: Työhuone 2020-11-20 13:11:56 - Submenu item: (1) Musiikki_työhuone 2020-11-20 13:11:56 - - Submenu item: (1) Musiikki_työhuone (2) y (3) devices (4) 305 (5) Playing 2020-11-20 13:11:56 - ==> start devinfo_from_name (1) 305 (2) Musiikki työhuone 2020-11-20 13:11:56 - JSON request 2020-11-20 13:11:56 - device (1) Musiikki työhuone (2) Musiikki työhuone (3) 305 (4) 305 2020-11-20 13:11:56 - Type (1) Lighting 2 2020-11-20 13:11:56 - --< devinfo_from_name: (1) 1 (2) 305 (3) Musiikki työhuone (4) devices (5) Lighting 2 (6) Media Player (7) Playing (8) (9) 0 2020-11-20 13:11:56 - Musiikki_työhuone - Playing| 2020-11-20 13:11:56 - Submenu item: (1) PIR_ 2020-11-20 13:11:56 - - Submenu item: (1) PIR_ (2) y (3) devices (4) 619 (5) On 2020-11-20 13:11:56 - ==> start devinfo_from_name (2) PIR Työhuone 2020-11-20 13:11:56 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 13:11:56 - Musiikki_työhuone - Playing|PIR_| 2020-11-20 13:11:56 - Submenu item: (1) en_kattovalo 2020-11-20 13:11:56 - - Submenu item: (1) en_kattovalo (2) y (3) devices (4) 536 (5) Off 2020-11-20 13:11:56 - ==> start devinfo_from_name (1) 536 (2) Työhuoneen kattovalo 2020-11-20 13:11:56 - JSON request 2020-11-20 13:11:56 - device (1) Työhuoneen kattovalo (2) Työhuoneen kattovalo (3) 536 (4) 536 2020-11-20 13:11:56 - Type (1) Color Switch 2020-11-20 13:11:56 - --< devinfo_from_name: (1) 1 (2) 536 (3) Työhuoneen kattovalo (4) devices (5) Color Switch (6) Dimmer (7) Off (8) (9) 100 2020-11-20 13:11:56 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off| 2020-11-20 13:11:56 - ---< (1) Color Switch (2) Dimmer (3) using replymarkup: (4) 2020-11-20 13:11:56 - -< Dimmer using replymarkup: (1) Off,On,25%,50%,75%,99%,? 2020-11-20 13:11:56 - Submenu item: (1) en_valomäärä 2020-11-20 13:11:56 - - Submenu item: (1) en_valomäärä (2) y (3) devices (4) 622 (5) 23 Lux 2020-11-20 13:11:56 - ==> start devinfo_from_name (2) Työhuoneen valomäärä 2020-11-20 13:11:56 - --< devinfo_from_name: (1) 0 (2) 9999 (3) (4) command (5) command (6) command (7) (8) (9) 0 2020-11-20 13:11:56 - Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off|en_valomäärä| 2020-11-20 13:11:56 - process buildmenu: (1) Off,On,25%,50%,75%,99%,? (2) w: (3) 8 2020-11-20 13:11:56 - -< buildmenu: (1) ["Off","On","25%","50%","75%","99%","?"] 2020-11-20 13:11:56 - process buildmenu: (1) Musiikki_työhuone - Playing|PIR_|en_kattovalo - Off|en_valomäärä| (2) w: (3) 3 2020-11-20 13:11:56 - -< buildmenu: (1) ["Musiikki_työhuone - Playing","PIR_","en_kattovalo - Off"],["en_valomäärä"] 2020-11-20 13:11:56 - process buildmenu: (1) menu (2) w: (3) 3 2020-11-20 13:11:56 - -< buildmenu: (1) ["menu"] 2020-11-20 13:11:56 - -< replymarkup:{"keyboard":[["Off","On","25%","50%","75%","99%","?"],["Musiikki_työhuone - Playing","PIR_","en_kattovalo - Off"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:11:56 - ==< Switched Työhuoneen kattovalo => Off 2020-11-20 13:11:56 - msg_type: 2020-11-20 13:11:56 - replymarkup:{"keyboard":[["Off","On","25%","50%","75%","99%","?"],["Musiikki_työhuone - Playing","PIR_","en_kattovalo - Off"],["en_valomäärä"],["menu"]],"selective":true,"resize_keyboard":true} 2020-11-20 13:11:56 - https://api.telegram.org/XXX/sendMessage?chat_id=XXX&reply_to_message_id=1035&text=Switched+Ty%C3%B6huoneen+kattovalo+%3D%3E+Off&reply_markup=%7B%22keyboard%22%3A%5B%5B%22Off%22%2C%22On%22%2C%2225%25%22%2C%2250%25%22%2C%2275%25%22%2C%2299%25%22%2C%22%3F%22%5D%2C%5B%22Musiikki_ty%C3%B6huone+-+Playing%22%2C%22PIR_%22%2C%22en_kattovalo+-+Off%22%5D%2C%5B%22en_valom%C3%A4%C3%A4r%C3%A4%22%5D%2C%5B%22menu%22%5D%5D%2C%22selective%22%3Atrue%2C%22resize_keyboard%22%3Atrue%7D 2020-11-20 13:11:56 - Message sent (1) 200 2020-11-20 13:11:56 - dtgbot: dtgmenu ended and text send ...return:200 2020-11-20 13:11:56 - Succesfully handled incoming request .2020-11-20 13:12:46 - 2020-11-20 13:12:46 - {"ok":true,"result":[]} ```

Btw, is there some specific reason that if I .e.g have "Bedroom ceiling lamp" in "Bedroom" the menu shows just "ceiling lamp" after selecting the room? Well ok, it is making things tighter by not repeating what is already known. However, in my case the room in "Makuuhuone" and device is "Makuuhuoneen kattolamppu". This becomes en_kattolamppu which is a bit funny. Can I force dtgbot to repeat the full name somehow?

Thanks a lot for this great add-on for Domoticz and the support, really appreciate it 👍

jvanderzande commented 3 years ago

Yes, true, sorry about that. Got a bit carried away when it started working 😄 I think I have not touched the .cfg files if you mean those. 0nly /etc/profile.d/DomoticzData.sh as mentioned in the main wiki page. I definitely need to look closer as I see there are more links defining what can be done and what should be updated. Would you still want the full log? I can create it again or maybe it is not useful anymore now that it works? I have still this from the old log, but I guess this is missing the start as well. This starts from where I run the custom command "lampo" and suddenly after that it starts to work again:

Come on... please don't just dump those logfiles here anymore as this message thread has become totally unreadable for everybody. It can't be that hard to simply email them to me. (I've added a codebox (<>) around your log dump to make it all a little clearer) I am fine when you are happy but I am telling you there is something not correct with your setup, likely the config file containing the translation tables. The code change is just so it doesn't crash anymore when something is wrong with that specific keyword. I am now working on a more permanent "fix" which will ensure things don't crash anymore when language tables are incorrect or missing.

Thanks a lot for this great add-on for Domoticz and the support, really appreciate it 👍

You're welcome. :-)

steps39 commented 3 years ago

@jvanderzande thanks for adding in some more checks to help with stability.

Come on... please don't just dump those logfiles here anymore as this message thread has become totally unreadable for everybody. It can't be that hard to simply email them to me. (I've added a codebox (<>) around your log dump to make it all a little clearer)

@odelma I have added edited your reply with collapsible sections for your logs, so makes thread still readable, but contains your logs as well.

You can do this with markdown:

<details><summary>Click` arrow to see / hide log</summary>
Here is your log
</details>

Produces:

Click` arrow to see / hide log Here is your log
odelma commented 3 years ago

Come on... please don't just dump those logfiles here anymore as this message thread has become totally unreadable for everybody. It can't be that hard to simply email them to me. (I've added a codebox (<>) around your log dump to make it all a little clearer)

Yes, you are correct, sorry, will try to behave...👍

I am fine when you are happy but I am telling you there is something not correct with your setup, likely the config file containing the translation tables. The code change is just so it doesn't crash anymore when something is wrong with that specific keyword.

As said, I had not touched those config files (.cfg). So for example the "language" line was commented out. I now added "fi" as a language and it is working still so I guess nothing major should be wrong there. I think I first installed dtgbot around 2017 so it was working fine for quite some time. One of the recent changes changed also that. Let me know if you still want to see the config files and I'll email those to you...