I want to automatize a turn on / off command based on time that I set in iobroker.
From there, I forward the time, e.g. “09:00:00” (without the ") via MQTT to Home Assistant. This arrives as a string.
When trying to set the device_class to “timestamp”, nothing gets received at all; when I remove the device_class, the string arrives in HA … but I cannot use this sensor for a time automation.
Does anyone have an idea how to solve? I also have the single components (hours, minutes, seconds) available via MQTT if needed.
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.