Hi everyone. Newbie here so apologies if I have missed it but I’ve setup the F1 Sensor and setup to change colour of lights and also post selected changes to a group chat using the Telegram Bot.
The area I’m struggling with is where to find, within HA, the race control event messages - any ideas please?
I’ve seen them mentioned about but still cannot find them anywhere.
F1 Sensor is a Home Assistant integration, not an ESPHome component. So you cannot use it in ESPHome like openweathermap. If you want F1 data on an ESPHome device, mirror the HA entities via the Home Assistant API.
Many thanks, just installed the latest release and the error is no more, today will be the first time I really get to try this addon out in all its glory, Amazon has just delivered my new Tapo RGB LED lights, so off to the mancave I go to replace my Govee RGB LEDs lol. Again, thanks for all your time and effort which you put into this project. I’m sure everyone in the community appreciates it.
I want to show: Lap [current] of [Total laps] but if I use “F1_race_lap_count” I get the current lap correctly but attribute “Total laps” is “unknown”. Is this a bug or am I doing something wrong? Or is there another sensor I should use?
I’m on v2.2.2. But don’t get me wrong, let me rephrase my question: F1_race_lap_count provides me with correct “current lap”, but where/how can I get total laps so I can construct e.g. “Lap 12 of 56”?
OK, sorry for the confusion. I thought I used that but something went wrong. I will monitor it next race
I use this piece of yaml code to display it (left out card stuff, etc.). Should this work?
- type: custom:button-card
entity: sensor.f1_race_lap_count
name: Lap Count
show_name: true
show_label: true
label: |
[[[
const current = entity.state || "0";
const total = entity.attributes.total_laps || "?";
return `${current} of ${total}`;
]]]
Many thanks for the support and for the awesome integration.