Page 28 of 30
Re: dtgbot - Domoticz TeleGram BOT
Posted: Monday 12 September 2022 15:40
by Valiran
great!
Thanks, I'm gonna study it

Re: dtgbot - Domoticz TeleGram BOT
Posted: Tuesday 15 November 2022 9:18
by skom
I was reading this thread and I did not find an answer to my question: is it possible to control the security panel by dtgbot (arming / disarming the alarm) with a pin?
Re: dtgbot - Domoticz TeleGram BOT
Posted: Tuesday 15 November 2022 9:53
by jvdz
skom wrote: ↑Tuesday 15 November 2022 9:18
I was reading this thread and I did not find an answer to my question: is it possible to control the security panel by dtgbot (arming / disarming the alarm) with a pin?
No, this is not part of the standard implementation, but since the inline-reply option in Telegram, I guess you should be able to build that in a script.
Re: dtgbot - Domoticz TeleGram BOT
Posted: Tuesday 22 November 2022 17:04
by mojso
when i select Misc/dtgmenu i get this error

Command caused error. check dtgbot log

Error:/home/pi/dtgbot/lua/dtgmenu/dtgmenuinline.lua:360: attempt to index field '?' (a nil value)
Dtgbot v9
Re: dtgbot - Domoticz TeleGram BOT
Posted: Tuesday 22 November 2022 17:35
by jvdz
dtgmenuinline.lua ?
Which current branch are you running as none of them have that file as far as I know?
Re: dtgbot - Domoticz TeleGram BOT
Posted: Tuesday 22 November 2022 17:59
by mojso
jvdz wrote: ↑Tuesday 22 November 2022 17:35
dtgmenuinline.lua ?
Which current branch are you running as none of them have that file as far as I know?
Stability-and-new-install
Re: dtgbot - Domoticz TeleGram BOT
Posted: Tuesday 22 November 2022 22:39
by jvdz
Ah ... yes of course... sorry was looking at the wrong spot.
Could you enable the debugging by setting Domoticz variable "TelegramBotLoglevel' to 99 and Email me the generated log files so I can see what is happening?
Thanks
Re: dtgbot - Domoticz TeleGram BOT
Posted: Tuesday 22 November 2022 23:38
by mojso
jvdz wrote: ↑Tuesday 22 November 2022 22:39
Ah ... yes of course... sorry was looking at the wrong spot.
Could you enable the debugging by setting Domoticz variable "TelegramBotLoglevel' to 99 and Email me the generated log files so I can see what is happening?
Thanks
I sent you in messages, the last lines where the error appears
Re: dtgbot - Domoticz TeleGram BOT
Posted: Friday 20 January 2023 22:02
by dawid04
Hello,
Unfortunately, I ran into a problem when configuring domoticz with telegram
here is my dtg .log .errors file
/usr/bin/lua5 .2: error loading module 'ssl .core' from file '/usr/local/lib/lua/5 .2/ssl .so':
libssl .so .1 .0 .0: cannot open shared object file: No such file or directory
stack traceback:
[C]: in ?
[C]: in function 'require'
/usr/local/share/lua/5 .2/ssl .lua:7: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5 .2/ssl/https .lua:10: in main chunk
[C]: in function 'require'
/home/pi/dtgbot/dtgbot .lua:132: in main chunk
[C]: in ?
I followed the instructions on the forum but when typing:
Code: Select all
sudo dpkg -i libssl1 .0 .0_1 .0 .1t-1+deb8u8_armhf .deb
the following message occurs:
dpkg: regarding libssl1 .0 .0_1 .0 .1t-1+deb8u8_armhf .deb containing libssl1 .0 .0:armhf, pre-dependency issue:
libssl1 .0 .0 pre-depends on multiarch-support
multiarch-support is not installed.
dpkg: error processing archive libssl1 .0 .0_1 .0 .1t-1+deb8u8_armhf .deb (--install):
pre-dependency problem - not installing libssl1 .0 .0:armhf
Errors were encountered while processing:
libssl1 .0 .0_1 .0 .1t-1+deb8u8_armhf .deb
I also tried to install the libssl1 .0 .0 file but there is also a problem:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libssl1 .0 .0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libssl1 .0 .0' has no installation candidate
Re: dtgbot - Domoticz TeleGram BOT
Posted: Saturday 21 January 2023 7:39
by jvdz
Please use the install instructions and source files from the branch Stability-and-new-install .
This should work fine on all newer versions of raspberian.
Re: dtgbot - Domoticz TeleGram BOT
Posted: Saturday 21 January 2023 18:07
by phenix56
Hi all,
I am trying to install this bot on a Ubuntu Server 22.04 install. I installed lua-json and lua-socket, but it complains that '/usr/bin/lua is not found'. When installing lua.5.2 this error disappears, but I get another error: module 'ssl.https' not found'. This is the same error I got a few months back, when I was trying it on a 64-bit Pi.
Libssl.so.1.1 is already installed because Domoticz refuses to start without it.
How can I get this to work?
Re: dtgbot - Domoticz TeleGram BOT
Posted: Saturday 21 January 2023 20:26
by jvdz
Did you use the correct branch as I indicated in my previous post?
Re: dtgbot - Domoticz TeleGram BOT
Posted: Saturday 21 January 2023 20:52
by phenix56
Yep, I did. I used the command you gave earlier, double checking if I got the correct branch.
The only things I changed (apart from the config variables) is the home dir, from 'pi' to my actual username.
Not sure if it is related, but can the libssl version I needed for Domoticz cause this error?
Re: dtgbot - Domoticz TeleGram BOT
Posted: Sunday 22 January 2023 13:07
by phenix56
Update: I also tested this with a clean Ubuntu 20.04 install, and I have the same issues.
@jvdz do you mind if I send you a PM to troubleshoot this further?
Re: dtgbot - Domoticz TeleGram BOT
Posted: Sunday 22 January 2023 15:36
by jvdz
Sure ... no problem..... I will in the mean time check if I get an issue when testing in an Ubuntu 20.04 VM.
Re: dtgbot - Domoticz TeleGram BOT
Posted: Monday 23 January 2023 18:51
by phenix56
For anyone also having the 'error loading module 'ssl .https' error, try installing the lua-sec package. This solved it for me on a fresh 64-bit Ubuntu Server 22.04 install.
Re: dtgbot - Domoticz TeleGram BOT
Posted: Monday 23 January 2023 19:39
by jvdz
I have updated the Github read.me to reflex these steps:
- sudo apt install lua5.2
- sudo apt install lua-json
- sudo apt install lua-socket
- sudo apt install lua-sec
Re: dtgbot - Domoticz TeleGram BOT
Posted: Tuesday 31 January 2023 21:04
by dawid04
Could you please send this instruction, I would like to make sure that I am doing it correctly
jvdz wrote: ↑Saturday 21 January 2023 7:39
Please use the install instructions and source files from the branch Stability-and-new-install .
This should work fine on all newer versions of raspberian.
Re: dtgbot - Domoticz TeleGram BOT
Posted: Tuesday 31 January 2023 22:47
by jvdz
They are on GitHub when you select the proper branch.
Re: dtgbot - Domoticz TeleGram BOT
Posted: Tuesday 31 January 2023 22:47
by jvdz
They are on GitHub when you select the proper branch.
https://github.com/steps39/dtgbot/tree/ ... ew-install