so I changed it in the python not to use the custom-card,
left_over_card = '*=========== Orphans ===========\n'\
'{}'\
'*========== Entity count =========\n'\
'!- {} entities to list\n'\
'+- {} groups processed\n'\
'*=========== Settings ===========\n'\
'/- targetting group: {}\n'\
'$- ignoring {} items:\n' \
'%|-> {}\n'\
'$- ignoring {} domains:\n' \
'%|-> {}'\
.format(left_overs,
len(entity_ids),
len(groups),
target_group,
len(ignore_items),
ignore_items_unlist,
len(ignore_domains),
ignore_domains_unlist)
hass.states.set('sensor.orphans_sensor', len(entity_ids), {
'custom_ui_state_card': 'state-card-value_only',
'text': left_over_card,
# 'unit_of_measurement': 'Orphans'
})
hass.states.set('sensor.orphans_sensor_lovelace', len(entity_ids), {
# 'custom_ui_state_card': 'state-card-value_only',
'text': left_over_card
# 'unit_of_measurement': 'Orphans'
})
and use this in lovelace:
- type: custom:useful-markdown-card
content: >
[[states.sensor.orphans_sensor_lovelace.attributes.text]]
still no such luck:
while it should show this:
… not wrong html in the way anymore, just cant find the right lovelace config