sensor.moon
does not show up with state information in prometheus. I see a metric called {prefix}_sensor_moon__phase_None
but it has no labels to indicate current phase.
I’m thinking this could be accomplished in a similar fashion to how the climate_mode
metric where a phase
label is added similar to the mode
label on the climate metric and the value is set to 1 or 0 for the given phase
to indicate that it is the current phase.
Another option would be to export separate series for each phase and set to 1 or 0 dependent on which phase is the current one.