Get Attributes of a given entity

That's what I was working towards. :slight_smile:

You might also want to set the MQTT output to 'attribute_and_json' so that you get individual sensor data as well as the combined object. See down the bottom of MQTT | Zigbee2MQTT

If you install MQTTExplorer on your PC and connect to the MQTT broker then you can easily see all the topics that your device publishes to.

I recommend setting up Friendly Names for the sensors in MQTT, it makes life much easier, and also means you just have to change the device ids in the conf file if you have to change a device. Node red does not need to use the device ids directly.

In case you didn't know, zigbee2mqtt comes with a useful web front end at IP:8080, where you can setup the friendly names, see a device map and other things. You may have to enable the frontend in the conf file.

[Edit] Oh, I see you have already found the web i/f :slight_smile:

well.. turned out I found the time to investigate further. And in the end I don't even need to use the mqtt node, because using mqtt instead of deconz has solved my intial issue.
now in the attributes of the payload I see everything related to the actual device triggering the flow , incluing the illuminance_lux value :slight_smile:
image

Regarding what you wrote above, yes I do know the webui. I have also edited the firendly name directly from the devices.yaml file. However what I have noticed (and i don't like) is that HA does not pick up the friendly name to name entity ids. I had to override them one by one manually otherwise in Node-Red I'd see the guid ids generated by mqtt instead of the friendly names :frowning:

Do you mean using zigbee2mqtt instead of deconz?

That is something you would have to raise on an HA forum.

yes, sorry for the misleading shortcut, I meant zigbee2mqtt

ok, I'll seek help on HA forum for the last remaing issue.

Thanks so much for all the help

I'm still too stupid. And I've searched several hours.

In Node-red, I can already send an email with a text message.

But how can I send a mail with text and data?
Something like:

{
"title": "A lot of info",
"message": "Temp. living is: " & sensor.temp_living & "Temp. bathroom is: " & sensor.temp_bathroom
}

What does the help text for the email node say about sending title and content?

Hi

At this moment I've problems with my Central Heating.
So my idea is, when I'm abroad, to send an email with some information about all the temperatures.

The title of the email could be "Temperatures dropped".

The body of the email should be something like:

  • The temperature in the living is 15Ā°C
  • The temperature in the kitchen is 10Ā°C
  • The temperature in the boiler is 11Ā°C
    etc.
    And of course, the temperature values are coming from some sensors in my Home Assistant

As mentioned, today I can already send an email notify with only a text message, like:
{
"title": "Verwarming",
"message": "Temp. boiler warm water te laag"
}

But, I don't arrive to concatenate the explaining text with the corresponding sensor values

OK, I understand. How are your sensor values available in node-red?

This is one example how I'm reading a sensor from Home assistant in Nodered.
So with the Entity ID

image

I am still not sure what question you are asking? Are you able to get the values from HA? If that is the problem then you would probably be better asking on an HA forum.

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