How to read Gree temp measurement to messages?

Hello!

I have a Gree climate/heatpump. I control it with standard Gree integration and with standard card in my Overview dashboard.
Works fine!

Now I managed to set up Telegram messaging,and my dream is to send Gree temp values to Telegram.
But I’m lost with the YAML naming convention:
Line {{states("climate.9524b8460982")}} in my message shows just the mode (Heat etc…).
sensor.9524b8460982_temperature etc…no luck!

Any hints?
-Timo-

try:

{{ state_attr('climate.9524b8460982', 'current_temperature') }} 

Thank You, it works!

Trial&error method gave me also some other attributes from that Gree invention, now I have a cool report:

actions:

  • action: notify.KotBot
    data:
    title: Heatpump status
    message: "
    Measured {{ state_attr(‘climate.9524b8460982’, ‘current_temperature’) {{- ‘\n’-}}
    Target {{ state_attr(‘climate.9524b8460982’, ‘temperature’) }} C {{- ‘\n’-}}
    Fan {{ state_attr(‘climate.9524b8460982’, ‘fan_mode’) }} {{- ‘\n’-}}
    Mode {{ states("climate.9524b8460982") }} {{- ‘\n’-}}
    "

I never found MODE (Heat,Cool,etc…) with that state_attr syntax, but the last line does it.
That {{- ‘\n’-}} -thing makes nice line breaks in Telegram.

Thank You!

-Timo-

1 Like

you can see all available attributes of the climate.9524b8460982 on the develloper page, in the States section. just fill in the name of the entity and it shows all attributes

1 Like