Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 108643

Utilizing multiple entities in custom button card

$
0
0

Upfront warning… I’m very new to home assistant and trying my best to wrap my head around the amount of options and settings you can play with. I am attempting to setup a custom button card for pool information (mqtt) and I’m finding myself running into some struggles with understanding commands. My first path was to have a custom “name” based on state of another entity.

This command was: name: ‘[[[ return ${states[''sensor.pool_water_temp''].state} °F ]]]’

I would like to duplicate this to change the icon color based on pool_heater_status (off, hpheat, hpcool) using the status as a variable in a template (long term) but I find myself struggling to make this work and I think it’s due to struggling to figure out what everything in the statement is doing and when I need quotes and when I don’t.

Does anyone have any documentation they can point a newbie to in order to help figure stuff out? for example I can’t figure out what the “return” command is doing above or what states[“sensor.pool_water_temp”].state is doing (seems confusing because state is used twice).

Sorry for the basic question but I have searched a ton and can’t quite seem to figure it out. If i need to start with a wemo or hue device becuase MQTT is more complicated please let me know.

Thank You

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 108643

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>