Table of Contents

Class ImageConfig

Namespace
HaMqttDiscoverable.Entities
Assembly
HaMqttDiscoverable.dll

Configuration for an Image entity: publishes a still image (e.g. a snapshot or a generated chart) for Home Assistant to display.

public sealed class ImageConfig : EntityConfig
Inheritance
ImageConfig
Inherited Members

Properties

Component

The MQTT component Home Assistant should treat this entity as, e.g. sensor or switch. Used to build the discovery topic; not part of the discovery payload itself.

public override string Component { get; }

Property Value

string

ContentType

The MIME type of the published image, e.g. "image/jpeg" (the default) or "image/png".

[JsonPropertyName("content_type")]
public string ContentType { get; set; }

Property Value

string