Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team
Question
Fabio 2
Obs: Sorry for possible errors ... I used the google translator.
Hello.
I migrated from HC2 to HC3. At HC2 I had a generic scene that was called by several others to send me a message on the telegram.
Example: Someone touched the campaign, I received a message on Telegram: "The campaign has been activated". The door was opened, I received a message "the door was opened".
It used a global variable in which the main scene determined the variable telegram and, after that, the generic scene that sent the message to the telegram was called.
However, with HC3, this scene stopped working.
I made some changes to the LUA code, but I can't get the message on the telegram.
Example changes: I changed "fibaro: getGlobalValue (" Telegram ")" to "fibaro.getGlobalVariable (" Telegram ")"
The error message I get is:
[DEBUG] [SCENE54]: 400
[DEBUG] [SCENE54]: {"ok": false, "error_code": 400, "description": "Bad Request: message text is empty"}
I put one more message in this code to see the value of the variable Telegram and url, and both are not reset.
fibaro.debug("URL é", url)
fibaro.debug("MSG é", msg)
From the commands above I can verify that the variables are with the values I want.
Please, could someone guide me where I was missing the LUA code below? Thank you.
------------------------------------------------------------------------------------------------------------------------------------------------------------
Please login or register to see this code.
Link to comment
Share on other sites
14 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.