Is it possible to create my own custom entity along with a few well defined exposed attributes ?
I have a rpi running an airplay endpoint using shairport-sync.
This airplay implementation supports MQTT.
It has a few useful topics like:
/play_start (no playload)
/play_end (no playload)
/volume
etc.
I want to create a new entity type called “airplay.kitchen”.
It should expose a few attributes like:
“playerstate” which is either play_start or play_end
“volume” : 100%
and more as I get a long I guess.
Is this possible ?
I guess I could use the MQTT light with an “audioplayer icon to match” to somehow emulate the playerstate as either being on or off and also have brightness act as volume.
No idea if this will work, as there is no payload in the published mqtt topics.