diff --git a/lib/extension/homeassistant.ts b/lib/extension/homeassistant.ts index 069f45c37..8f06fa512 100644 --- a/lib/extension/homeassistant.ts +++ b/lib/extension/homeassistant.ts @@ -756,6 +756,7 @@ export default class HomeAssistant extends Extension { command_topic_prefix: endpoint, command_topic_postfix: firstExpose.property, ...(firstExpose.unit && {unit_of_measurement: firstExpose.unit}), + ...(firstExpose.value_step && {step: firstExpose.value_step}), ...lookup[firstExpose.name], }, }; diff --git a/lib/types/types.d.ts b/lib/types/types.d.ts index 34cb5c687..859d73886 100644 --- a/lib/types/types.d.ts +++ b/lib/types/types.d.ts @@ -100,7 +100,7 @@ declare global { interface DefinitionExpose { type: string, name?: string, features?: DefinitionExposeFeature[], - endpoint?: string, values?: string[], value_off?: string, value_on?: string, + endpoint?: string, values?: string[], value_off?: string, value_on?: string, value_step?: number, access: number, property: string, unit?: string, value_min?: number, value_max?: number}