iobroker-community-adapters/ioBroker.telegram

Easy Keyboard always sets false

rplc opened this issue · 3 comments

rplc commented

I've created a boolean state, added the telegram stettings for this state. But when I use the /cmds Easy Keyboard telegram only sets false as value.

Reproduction
Create a boolean state via javascript createState('foo', false, {type: 'boolean'});, go to the state settings, enable settings for telegram.0, write only and only true are checked (but it does not seem to matter), command and text are left empty. text2command instance is not linked to the telegram adapter. Type /cmds in Telegram, Easy-Keyboard appears, when you click the button foo on the state is updated but with the value false.
If I change the telegram logging to silly the following lines appear:

2021-06-19 17:25:10.681  - �[34mdebug�[39m: telegram.0 (12133) Received message: {"message_id":775,"from":{"id":###,"is_bot":false,"first_name":"###","username":"###","language_code":"en"},"chat":{"id":###,"first_name":"###","username":"###","type":"private"},"date":1624116310,"text":"Foo on"}
2021-06-19 17:25:10.682  - �[34mdebug�[39m: telegram.0 (12133) {"message_id":775,"from":{"id":###,"is_bot":false,"first_name":"###","username":"###","language_code":"en"},"chat":{"id":###,"first_name":"###","username":"###","type":"private"},"date":1624116310,"text":"Foo on"}
2021-06-19 17:25:10.698  - �[35msilly�[39m: telegram.0 (12133) States user redis pmessage javascript.0.foo/javascript.0.foo:{"val":false,"ack":false,"ts":1624116310691,"q":0,"from":"system.adapter.telegram.0","user":"system.user.admin","lc":1624110859031}

Setting a command/text in the state settings does not change anything.

Expected behavior
I would expect that the last log message would say, that val is true (and therefore the state would be set to true).

Versions:

  • Adapter version: 1.8.1
  • JS-Controller version: 3.2.16
  • Node version: 12.22.1
  • Operating system: Raspbian GNU/Linux 10 (buster)

Fixed in 1.8.3

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions.
Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

stale commented

This issue has been automatically closed because of inactivity. Please open a new issue if still relevant and make sure to include all relevant details, logs and reproduction steps. Thank you for your contributions.
Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnet ein neues Issue, falls dies noch relevant ist und stellt sicher das alle relevanten Details, Logs und Reproduktionsschritte enthalten sind. Vielen Dank für Eure Unterstützung.