node-red-contrib-telegrambot-home icon indicating copy to clipboard operation
node-red-contrib-telegrambot-home copied to clipboard

Switch does not receive answer

Open Graefer opened this issue 3 years ago • 2 comments

Hi, my switch node does produce the answering buttons in the chat. But whatever button I press, the node does not recognize the answer and results in a time out. Any help?

Graefer avatar Jun 04 '22 06:06 Graefer

Could you provide an example flow demonstrating your problem? I'd need to be able to see how the switch node is configured.

scraton avatar Dec 17 '22 17:12 scraton

@scraton doesn't work image [{"id":"6ae51134bd3857ed","type":"tab","label":"Домофон","disabled":false,"info":"","env":[]},{"id":"9cff10ff.07ea8","type":"group","z":"6ae51134bd3857ed","name":"Обработка звонка в домофон","style":{"stroke":"#ff0000","fill":"#000000","label":true,"label-position":"n","color":"#ffffff"},"nodes":["f77ff55c.626e28","14687b00.bcecc5","ce2693d0dee5fe04","8c42a7295cac6b95","b6a535efde485593","4eadca8d329fccaf","6fd97b0d4b399789"],"x":34,"y":59,"w":592,"h":242},{"id":"f77ff55c.626e28","type":"debug","z":"6ae51134bd3857ed","g":"9cff10ff.07ea8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":290,"y":100,"wires":[]},{"id":"14687b00.bcecc5","type":"catch","z":"6ae51134bd3857ed","g":"9cff10ff.07ea8","name":"","scope":null,"uncaught":false,"x":120,"y":100,"wires":[["f77ff55c.626e28"]]},{"id":"ce2693d0dee5fe04","type":"telegrambot-notify","z":"6ae51134bd3857ed","g":"9cff10ff.07ea8","name":"bot","bot":"33c833abccdab0f0","chatId":"153968771","message":"","parseMode":"","x":290,"y":160,"wires":[]},{"id":"8c42a7295cac6b95","type":"telegrambot-switch","z":"6ae51134bd3857ed","g":"9cff10ff.07ea8","name":"","bot":"33c833abccdab0f0","chatId":"153968771","question":"Открыть дверь в подъезд?","answers":["Да","Нет"],"outputs":2,"autoAnswerCallback":false,"verticalAnswers":false,"timeoutValue":"","timeoutUnits":"","x":320,"y":240,"wires":[["b6a535efde485593"],["4eadca8d329fccaf"]]},{"id":"b6a535efde485593","type":"api-call-service","z":"6ae51134bd3857ed","g":"9cff10ff.07ea8","name":"Открыть","server":"31f480d3.0e3b28","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":["539af61f2e20d162362ed4e6058c7959"],"entityId":["switch.smartintercom_accept_call"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":500,"y":200,"wires":[[]]},{"id":"4eadca8d329fccaf","type":"api-call-service","z":"6ae51134bd3857ed","g":"9cff10ff.07ea8","name":"Не открывать","server":"31f480d3.0e3b28","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":["539af61f2e20d162362ed4e6058c7959"],"entityId":["switch.smartintercom_reject_call"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":520,"y":260,"wires":[[]]},{"id":"6fd97b0d4b399789","type":"server-state-changed","z":"6ae51134bd3857ed","g":"9cff10ff.07ea8","name":"Если вызов","server":"31f480d3.0e3b28","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.smartintercom_line_status","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"Вызов","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":130,"y":200,"wires":[["ce2693d0dee5fe04","8c42a7295cac6b95"],[]]},{"id":"33c833abccdab0f0","type":"telegrambot-config","botname":"HIDDEN_NAME","usernames":"USERNAME","chatIds":"","pollInterval":"300"},{"id":"31f480d3.0e3b28","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]

almirus avatar Apr 29 '23 21:04 almirus