Hi @Syrius,
that didn’t work, but I finally got it working, and maybe removed some unnecessary config in my configuration.yaml
my current setup in configuration.yaml , my external mqtt broker can handle
multiple discovery prefixes, I didn’t need the discovery_prefix so i removed it.
mqtt:
broker: 127.0.0.1
port: 1884
client_id: hass
discovery: true
protocol: 3.1
keepalive: 60
here’s the gotcha when trying to install a plugin that the HACS doesn’t have a way of installing the specific commit. I installed from HACS 1st, then I overwrote the file /config/www/community/check-button-card/check-button-card.js from the tree branch e80ef56.
But Homeassistant ignored this overwritten file, it somehow used the original version that I installed from HACS. In the same directory /config/www/community/check-button-card/ there was another file that I ignored check-button-card.js.gz. Home assistant or some component either checked the 2 files were not in sync or it just uses check-button-card.js.gz instead.
so anybody that copies check-button-card.js to the folder /config/www/community/check-button-card/ from another location they will also need to run gzip check-button-card.js , and copy check-button-card.js.gz into /config/www/community/check-button-card/.
Now I have visibility_timestamp which I never did. makes the calculations in my previous posted script unnessary.
{% set cleanDate=as_timestamp(state_attr(‘sensor.vacuum_maint_clean_brushes’,‘visibility_timestamp’)|timestamp_local)|timestamp_custom(’%m/%d/%Y’) %}
{{ state_attr(‘sensor.vacuum_maint_clean_brushes’, ‘friendly_name’) }}->
…Clean date {{cleanDate}}…{{ state_attr(‘sensor.vacuum_maint_clean_brushes’, ‘visibility_timeout’) }} togo
{% set cleanDate=as_timestamp(state_attr(‘sensor.vacuum_maint_clean_contacts’,‘visibility_timestamp’)|timestamp_local)|timestamp_custom(’%m/%d/%Y’) %}
{{ state_attr(‘sensor.vacuum_maint_clean_contacts’, ‘friendly_name’) }}->
…Clean date {{cleanDate}}…{{ state_attr(‘sensor.vacuum_maint_clean_contacts’, ‘visibility_timeout’) }} togo
{% set cleanDate=as_timestamp(state_attr(‘sensor.vacuum_maint_clean_filter’,‘visibility_timestamp’)|timestamp_local)|timestamp_custom(’%m/%d/%Y’) %}
{{ state_attr(‘sensor.vacuum_maint_clean_filter’, ‘friendly_name’) }}->
…Clean date {{cleanDate}}…{{ state_attr(‘sensor.vacuum_maint_clean_filter’, ‘visibility_timeout’) }} togo
{% set cleanDate=as_timestamp(state_attr(‘sensor.vacuum_maint_clean_wheel’,‘visibility_timestamp’)|timestamp_local)|timestamp_custom(’%m/%d/%Y’) %}
{{ state_attr(‘sensor.vacuum_maint_clean_wheel’, ‘friendly_name’) }}->
…Clean date {{cleanDate}}…{{ state_attr(‘sensor.vacuum_maint_clean_wheel’, ‘visibility_timeout’) }} togo
{% set replaceDate=as_timestamp(state_attr(‘sensor.vacuum_maint_replace_brushes’,‘visibility_timestamp’)|timestamp_local)|timestamp_custom(’%m/%d/%Y’) %}
{{ state_attr(‘sensor.vacuum_maint_replace_brushes’, ‘friendly_name’) }}->
…Replace date {{replaceDate}}…{{ state_attr(‘sensor.vacuum_maint_replace_brushes’, ‘visibility_timeout’) }} togo
{% set replaceDate=as_timestamp(state_attr(‘sensor.vacuum_maint_replace_filter’,‘visibility_timestamp’)|timestamp_local)|timestamp_custom(’%m/%d/%Y’) %}
{{ state_attr(‘sensor.vacuum_maint_replace_filter’, ‘friendly_name’) }}->
…Replace date {{replaceDate}}…{{ state_attr(‘sensor.vacuum_maint_replace_filter’, ‘visibility_timeout’) }} togo
{% set replaceDate=as_timestamp(state_attr(‘sensor.vacuum_maint_replace_wheel’,‘visibility_timestamp’)|timestamp_local)|timestamp_custom(’%m/%d/%Y’) %}
{{ state_attr(‘sensor.vacuum_maint_replace_wheel’, ‘friendly_name’) }}->
…Replace date {{replaceDate}}…{{ state_attr(‘sensor.vacuum_maint_replace_wheel’, ‘visibility_timeout’) }} togo
Last Mission: {{ state_attr(‘sensor.rest980’, ‘cleanMissionStatus’)[“sqft”] }} sqft