You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@servicedefhello(name: str="world"):
log.debug(f"[HELLO] entered hello(name={name!r})")
light.toggle(entity_id="light.shelly_dimmer_master_sitting_room")
msg=f"Hello, {name}!"log.info(f"[HELLO] {msg}")
task.sleep(0.1) # example of yielding; keeps HA responsivelog.debug("[HELLO] leaving hello()")
I can run the script, and it toggles the light. This tells me the script can run and it works.
However, Going to Settings -> System -> Logs and looking at the Home Assistant Core log, I don't see any of my log messages. Logs from other things in my system are there, but nothing from my hello.py script.
Any help would be appreciated.
P.S. I've restarted HASS a few times, so that's not the problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I am just getting started with pyscript. I have it running, but logging doesn't seem to work.
in my
configuration.yamlI haveMy script file is this
I can run the script, and it toggles the light. This tells me the script can run and it works.
However, Going to Settings -> System -> Logs and looking at the
Home Assistant Corelog, I don't see any of my log messages. Logs from other things in my system are there, but nothing from my hello.py script.Any help would be appreciated.
P.S. I've restarted HASS a few times, so that's not the problem.
All reactions