Ive just converted my old python script that scrapes for bin days and color, At the moment it outputs to log.info a text sentence like ‘Next rubbish day is Monday the 27th and is Black’
Im trying to find how to display this text in a markdown card.
Do I need to create the entity first in home assistant or can it be created at runtime in the script.
Ive tried various variations around this in my Pyscript code like:
state.set(entity_id="sensor.rubbish", value="test", new_attributes=None)
just to test the setting up off entities but not getting anywhere, any help would be appreciated.