Hi @iantr
did you have any chance to look into my tests?
So far I didnāt manage to have anything working with this card (well, I tested two things to be fair :D)
Hi @iantr
did you have any chance to look into my tests?
So far I didnāt manage to have anything working with this card (well, I tested two things to be fair :D)
Tried that as wellā¦ still doesnāt workā¦ Can you show how to use it in my template please?
If you use Tasmota version 6.2.1.21 or so thereās a new MQTT status that pops up automagically as a sensor. You can see my config in the template to display it here. (I am using MQTT Discovery so I have 2 sensors for each switch a status one and a control one)
You donāt have the most recent code orneed to clear your cache
I donāt use MQTT Discovery, so I guess Iāll have to create it myself
Thanks
Youāre right I didnātā¦
But the Tracker Card was telling me I did!
Iāve now copied the latest code across manually and it works.
Thanks and sorry for the misunderstanding.
I ran into the same issue as you klogg, same error, then same custom_updater thing. I posted over on the issue on github and found the source of the problem. Not sure who āownsā the issue, probably custom_updater.
Just want to say thanks to this awesome card!!
Opens up so much options and possibilities, also keep making changes so much easier, changes used to required restart now can be done all in lovelace yaml with a refresh.
I vote for the temp_var also.
Just to post another example, I managed to color a group of person
entities based on their individual states. As I mentioned in the comment with it, itās probably better to just use CustomUI for stuff like this:
Maybe it would be possible to support any number of temp_vars:
temp_vars:
var_1: "..."
var_2: "..."
Although you could probably still achieve that by just returning an object to temp_vars
directly:
temp_vars: "{'var_1': '...', 'var_2': '...'}"
Thanks to @iantrich got it working. In case anyone else is interested:
- type: 'custom:config-template-card'
config:
type: 'custom:hui-entities-card'
title: MQTT & Wifi Connections
show_header_toggle: false
entities:
- entity: sensor.sonoff1_2914_status
name: "${'Coffee' + '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0' + 'MQTT ' + states['sensor.sonoff1_2914_status'].attributes['MqttCount'] + '\xa0\xa0\xa0\xa0' + 'WiFi ' + states['sensor.sonoff1_2914_status'].attributes['WiFi LinkCount']}"
- entity: sensor.sonoff2_3110_status
name: "${'Toothbrush' + '\xa0\xa0\xa0\xa0\xa0\xa0\xa0' + 'MQTT ' + states['sensor.sonoff2_3110_status'].attributes['MqttCount'] + '\xa0\xa0\xa0\xa0' + 'WiFi ' + states['sensor.sonoff2_3110_status'].attributes['WiFi LinkCount']}"
- entity: sensor.sonoff5_1083_status
name: "${'Garage' + '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0' + 'MQTT ' + states['sensor.sonoff5_1083_status'].attributes['MqttCount'] + '\xa0\xa0\xa0\xa0' + 'WiFi ' + states['sensor.sonoff5_1083_status'].attributes['WiFi LinkCount']}"
- entity: sensor.sonoff6_3719_status
name: "${'Alarm' + '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0' + 'MQTT ' + states['sensor.sonoff6_3719_status'].attributes['MqttCount'] + '\xa0\xa0\xa0\xa0' + 'WiFi ' + states['sensor.sonoff6_3719_status'].attributes['WiFi LinkCount']}"
Good looking card; god awful configuration it looks hideous, lol
It looks even worse in the GUI editorā¦ the above is my yaml version where I do my edits and then paste into the raw editorā¦ the GUI version is even worseā¦
Iām open to any suggestions on how to improve it but am just grateful I can show the information without creating sensors.
Hereās the GUI version:
- type: 'custom:config-template-card'
config:
type: 'custom:hui-entities-card'
title: MQTT & Wifi Connections
show_header_toggle: false
entities:
- entity: sensor.sonoff1_2914_status
name: "${'Coffee' + '\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_' + 'MQTT ' + states['sensor.sonoff1_2914_status'].attributes['MqttCount'] + '\_\_\_\_' + 'WiFi ' + states['sensor.sonoff1_2914_status'].attributes['WiFi LinkCount']}"
- entity: sensor.sonoff2_3110_status
name: "${'Toothbrush' + '\_\_\_\_\_\_\_' + 'MQTT ' + states['sensor.sonoff2_3110_status'].attributes['MqttCount'] + '\_\_\_\_' + 'WiFi ' + states['sensor.sonoff2_3110_status'].attributes['WiFi LinkCount']}"
- entity: sensor.sonoff5_1083_status
name: "${'Garage' + '\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_' + 'MQTT ' + states['sensor.sonoff5_1083_status'].attributes['MqttCount'] + '\_\_\_\_' + 'WiFi ' + states['sensor.sonoff5_1083_status'].attributes['WiFi LinkCount']}"
- entity: sensor.sonoff6_3719_status
name: "${'Alarm' + '\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_' + 'MQTT ' + states['sensor.sonoff6_3719_status'].attributes['MqttCount'] + '\_\_\_\_' + 'WiFi ' + states['sensor.sonoff6_3719_status'].attributes['WiFi LinkCount']}"
I tell a lieā¦ itās changed even from what I saw last timeā¦ Note itās changed the spaces as wellā¦
This may be a dumb question, but can you replace:
'\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0'
with
'\xa0'.repeat(16)
well shit! yes you can! Thanks.
It does? Where?
Look in the integration and as well as the switch you will have a status sensor
I donāt see it here
Letās keep the conversation relevant here, please
Sorry, my fault.
Itās gone private.