Custom component: IKEA stock availability sensor

I made a custom component for monitoring the in-store availability of selected IKEA products. I mainly use it to monitor often sold out Trådfri gadgets that I want to get my hands on, like the outlet and range extender. Add a couple of sensors and have an automation send you a notification once the product(s) are in stock. Maybe useful for others as well?

I’m using an undocumented XML-based API available at the IKEA website (for most countries anyway), this can of course change as soon as IKEA changes the API, rendering the sensors non-functional.

Example:

6 Likes

Thank you for this! It still works.
To make it work now, you have to add manifest.json and an init.py file

Example here: https://github.com/home-assistant/example-custom-config/tree/master/custom_components/example_sensor/

Is there a working version of this?