poldim
October 31, 2017, 4:31pm
1
I’ve got an MQTT Cover from which I’d like to extract state status to show basic open/closed verbiage.
cover:
- platform: mqtt
name: Garage Door
friendly_name: Garage
state_topic: "garage/door/status"
command_topic: "garage/door/control"
payload_open: "OPEN"
payload_close: "OPEN"
# payload_stop: "OPEN"
state_open: "OPENED"
state_closed: "CLOSED"
optimistic: false
retain: true
value_template: '{{ value }}'
How do I do this?
I did it through a template sensor like so:
poldim
November 1, 2017, 9:22pm
4
Nice, thanks!
How do you have the dark theme applied?
garvarma
(Manuel)
November 1, 2017, 9:33pm
5
Hi,
Maybe you can use the option mqtt statestream, published in version 0.54.0
https://home-assistant.io/components/mqtt_statestream/
In your configuration use the frontend:
tool
then I just searched in the themes area of this forum to find some setups other folks have created. This is the one you see:
poldim
November 3, 2017, 5:13am
7
Never knew you could theme your HA…there goes more time spent in HA
Can you paste your frontend.yaml, or its code as code instead of a screenshot?
My mostly updated Home Assistant. Feel free to peruse and use anything you like.
mlefevre
(Marc LeFevre)
August 19, 2018, 4:46pm
9
I have the same basic question. To which topic does the value_template section apply? I set a value for the value_template hoping it would extract into the state but it appears to have extracted into the availability.