Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mqtt.ts - Yaml error on MQTT fan command_template #3312

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions src/language-service/src/schemas/integrations/core/mqtt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,12 @@ export interface FanItem extends BaseItem {
*/
command_topic: string;

/**
* The template used for the command payload.
* https://www.home-assistant.io/integrations/fan.mqt/#command_template
*/
command_template?: Template;

/**
* The name of the MQTT fan.
* https://www.home-assistant.io/integrations/fan.mqtt#name
Expand All @@ -997,6 +1003,30 @@ export interface FanItem extends BaseItem {
*/
optimistic?: boolean;

/**
* Defines a template to generate the payload to send to `direction_command_template`.
* https://www.home-assistant.io/integrations/fan.mqtt/#direction_command_template
*/
direction_command_template?: Template;

/**
* The MQTT topic to publish commands to change the fan direction state based on a value.
* https://www.home-assistant.io/integrations/fan.mqtt/#direction_command_topic
*/
direction_command_topic?: string;

/**
* The MQTT topic subscribed to receive fan direction.
* https://www.home-assistant.io/integrations/fan.mqtt/#direction_state_topic
*/
direction_state_topic?: string;

/**
* Defines a template to extract a value from fan direction.
* https://www.home-assistant.io/integrations/fan.mqtt/#direction_value_template
*/
direction_value_template?: Template;

/**
* Defines a template to generate the payload to send to oscillation_command_topic.
* https://www.home-assistant.io/integrations/fan.mqtt/#oscillation_value_template
Expand Down