Creates a new image instance
Configuration settings for the image
Whether this image is fed by raw image data (image_topic) or by a URL (url_topic).
Default: image_topic.
ProtectedattributesMQTT topic for entity attributes
ProtectedavailabilityMQTT topic for entity availability status
ProtectedbaseBase MQTT topic name for this entity
ProtectedcomponentThe component configuration containing entity-specific settings
ProtectedconfigMQTT topic for entity configuration
ProtectedidentifierUnique identifier for this entity
ProtectedloggerLogger instance for debugging and error reporting
ProtectedmqttThe MQTT client instance used for communication
ProtectedsettingsThe component settings including MQTT configuration
ProtectedstateCallback function to handle state changes
ProtectedstateList of MQTT topics for entity state
ProtectedwroteFlag indicating whether configuration has been written to MQTT
ProtectedgetGets the complete configuration for this entity including MQTT topics
The resolved component configuration with all required MQTT topics
Publishes image data on the image_topic. Only valid when the image was constructed with the image_topic state
topic.
The image data. A Buffer of raw image bytes, or a string (typically a base64-encoded image when
ImageInfo.image_encoding is "b64").
Publishes an image URL on the url_topic. Only valid when the image was constructed with the url_topic state
topic.
The URL pointing to the image.
Clears the entity's retained discovery configuration, causing Home Assistant to remove the entity.
Use this when an entity that may have been published by a previous run should no longer exist. Because writeConfig retains its payload, simply not calling it leaves the entity in place indefinitely.
Sets additional attributes for the entity
Key-value pairs of attributes to set
Sets the availability state of the entity
True if the entity is available, false otherwise
Writes the entity's configuration to MQTT for Home Assistant discovery Also sets the entity's initial availability state if not manually managed
Represents an image in Home Assistant. An image entity displays a picture, published either as image data on an image topic or as a URL on a URL topic. Exactly one of the two topics must be selected via the constructor.