Skip to content

Conversation

pedropombeiro
Copy link

The .x doesn't bring any value (no idea where that comes from). If I publish "STATE_OPEN" on my MQTT instance, then we want HA to compare with the raw value.

The `.x` doesn't bring any value (no idea where that comes from). If I publish "STATE_OPEN" on my MQTT instance, then we want HA to compare with the raw value.
@fabaff
Copy link
Member

fabaff commented Apr 24, 2016

The given configuration is an example which shown all available configuration options. There is no need to use value_template: if the payload matches the configuration thus marked as optional. value_template: is useful if you can't change the MQTT settings of your device.

Well, {{ value_json.x }} would maybe be the better sample for the payload but {{ value.x }} it's only a placeholder and if one follows the link the templating docs it should become clear.

@pedropombeiro
Copy link
Author

pedropombeiro commented Apr 25, 2016

There is no need to use value_template: if the payload matches the configuration thus marked as optional.

That's strange, because I did try removing that and it still didn't work. It only started working when I changed it to value_template: '{{ value }}'.

@fabaff
Copy link
Member

fabaff commented Jul 5, 2016

#597 will update the docs for the new cover component which combines garage door and roller shutter.

@balloob balloob closed this Aug 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants