Alexa / Rule to check and tell temperature

Hey all,

I‘ using a rule which tells me the temperature and the humidity when I ask Alexa when I ask here.

In principle it works fine, but there is some delay between each Comand which is send.
How can I combine this somehow, that only one command could be send….

Use the text block to build the full message as one string and just sendCommand that to the Echo once.

If you enable the Matter bridge and connect Alexa to it, you can ask for the temperature of any device that you set up with Matter metadata. No need for any rules, but you are limited to one item at a time. Although maybe Alexa+ would understand if you asked for more than 1?

Thanks @rlkoshak :slight_smile:

It works now perfect with this way:

Thanks, “create text with” feature works when I ask Echo, and she tells me then the weather data.

What is not working is, the she telly me this by a rule triggered.
The rule itself runs, with no speach out of the Echo, by used this version:

It works file when I do this still behind each other:

@rlkoshak Perhaps you have an idea :slight_smile:

Your blocks make no sense. In english your block says:

send the command (get the state of Item (build text from (get item DWD_…) and (get item DWD…))) to Amazon_Echo…

Note I’m shortening the Item names using …

Let’s work from the inside to the outside.

The innermost blocks are get item. First you get the Item Object for DWD_..._Description_1 and then you get the Item Object for DWD_..._Instruction_1. An Item Object is not a String. It has all sorts of properties and methods.

Next you try to build a String out of those two Items. But, again, an Item Object is’t a String. You can’t just smoosh two non-String Objects together using create text with. You need to have Strings.

Then you try to get the state of something that isn’t an Item. You have what ever random noise was created when you tried to build a String out of two non-String Objects. But even if you were able to create some String out of those two Item Objects, they won’t be the name of a single Item. So the get state of item wouldn’t be able to get the state of any Item because you didn’t pass it an Item.

There is no magic in programming and that includes Blockly. Computers do not know what you mean. They only know what you tell them and the insist on doing exactly what you tell them. You need to think in the same way.

As I presented this, work from the inside to the outside (I’m trying to approximate blocks with text).

You want the states from two Items.

[get state of item ] [item DWD_..._Description_1]
[get state of item ] [item DWD_..._Instruction_1]

Next you want to concatenate the states of those two Items into one String

[create text with [get state of item][item DWD_..._Description_1] |
|                 [get state of item][item DWD_..._Instruction_1] ]

Now we have one String. We want to send that as a command to the echo Item.

[send command [create text with [get state of item][item DWD_..._Description_1] | to [item Amazon_Echo_Spirch ]
|             |                 [get state of item][item DWD_..._Instruction_1] ]                             |

@rlkoshak : THANKS….
I was not able to see the trees in the wood anymore :slight_smile:

BR

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.