Automation triggered by MetOffice Weather Type Code

Tags: #<Tag:0x00007f780d01d2b8>

I want to trigger an automation from metoffice weather type code, it is returned in the datapoint API call, but I can’t see how to access it in home assistant.

The MetOffice Weather and Sensor components are working just fine, API key is good. I was expecting to see weather code as an attribute on the sensor or weather entities???



The mapping of the code to the weather condition is here. The code itself is not passed through, but you could try opening a PR to add it if you know how.

Thank you. I see now the weather state is hard coded to the weather code, so I’ve just based my template on that instead.