Versions in this module Expand all Collapse all v1 v1.0.0 Nov 30, 2026 Changes in this version + var ErrNotSupportedOverMQTT = errors.New("not supported over MQTT") + func FirstSet(fallback string, options ...*string) string + func Must[T any](v T, err error) T + func Or[T any](p *T, fallback T) T + func P[T any](v T) *T + func Strings[T ~string](values []T) []string + func V[T any](p *T) T + type Date struct + func (d *Date) End() time.Time + func (d *Date) MarshalJSON() ([]byte, error) + func (d *Date) Start() time.Time + func (d *Date) String() string + func (d *Date) UnmarshalJSON(b []byte) error + type DateTime struct + func (d *DateTime) End() time.Time + func (d *DateTime) MarshalJSON() ([]byte, error) + func (d *DateTime) Start() time.Time + func (d *DateTime) String() string + func (d *DateTime) UnmarshalJSON(b []byte) error + type DeviceDetails struct + HardwareVersion string + Identifiers []string + Manufacturer string + Model string + Name string + SerialNumber string + SwVersion string + type DeviceOrigin struct + Name string + SupportURL string + SwVersion string + type DeviceTrackerSourceType string + const DeviceTrackerSourceTypeBluetooth + const DeviceTrackerSourceTypeBluetoothLE + const DeviceTrackerSourceTypeGPS + const DeviceTrackerSourceTypeRouter + type Icon string + type MQTTAvailability struct + PayloadAvailable string + PayloadNotAvailable string + Topic string + ValueTemplate string + type MQTTDeviceDetails struct + ConfigurationURL string + Connections [][2]string + HardwareVersion string + Identifiers []string + Manufacturer string + Model string + Name string + SerialNumber string + SuggestedArea string + SwVersion string + ViaDevice string + type MQTTDiscoverySchema interface + IsMQTTDiscoverySchema func() + type MediaPlayerMediaClass string + type ObjectRef struct + Component string + NodeID string + ObjectID string + func (o *ObjectRef) ConfigTopic(discoveryPrefix string) (string, error) + type SpeechToTextAudioBitRates int + const SpeechToTextBitRate16 + const SpeechToTextBitRate24 + const SpeechToTextBitRate32 + const SpeechToTextBitRate8 + type SpeechToTextAudioChannels int + const SpeechToTextChannelMono + const SpeechToTextChannelStereo + type SpeechToTextAudioCodecs string + const SpeechToTextAudioCodecOpus + const SpeechToTextAudioCodecPCM + type SpeechToTextAudioFormats string + const SpeechToTextAudioFormatWAV + type SpeechToTextAudioSampleRates int + const SpeechToTextSampleRate11025 + const SpeechToTextSampleRate16000 + const SpeechToTextSampleRate18900 + const SpeechToTextSampleRate22050 + const SpeechToTextSampleRate32000 + const SpeechToTextSampleRate37800 + const SpeechToTextSampleRate44100 + const SpeechToTextSampleRate48000 + const SpeechToTextSampleRate8000 + type Template string + type Time interface + End func() time.Time + Start func() time.Time + String func() string + type TimeString string + func (t TimeString) Time() (time.Time, error) + type ToDoListTodoItemStatus string + const ToDoListTodoItemStatusCompleted + const ToDoListTodoItemStatusNeedsAction + type Unsubscribe func(ctx context.Context) error