Hi,
I’ve recently integrated an Awtrix clock and have been able to publish a payload successfully to the Awtrix display using MQTT.
An example of the code that I have used is as follows:
service: mqtt.publish
data:
qos: 0
retain: false
topic: awtrix_fcec40/notify
payload: |-
{
"icon": "2056",
"text":
[
{
"t": "{{states('sensor.dining_room_temperature')}} - Dining Room "
},
{
"t": "{{states('sensor.lumi_lumi_weather_temperature')}} - Office Room"
}
]
}
I am now looking at trying to publish some attributes from a binary sensor, but I’m not having much luck.
Looking in Developer Tools and States, the attributes I see for the binary sensor are:
Workout Type: cycling
Device Type: home_bike_v1
Ride Title: 5 min Cool Down Ride
Ride Description: You’ve done the hard work! Now take a few extra minutes after your ride to lower your heart rate and ease your body into a healthy recovery zone.
Workout Image: https://s3.amazonaws.com/peloton-ride-images/2a41830e434569281ec4f207bc6308f4a753f0ef/img_1697009733_716dcf965ff14f6dbb7c36639b08a347.jpg
FTP: 200
Instructor: Sam Yo
Paused: false
device_class: running
icon: mdi:bike
friendly_name: Ben on Peloton: Workout
Is it possible to use the attributes to publish via MQTT?
Thanks,
Ben