PyScript version 1.0.0 Released!

Hi, Can I exclude pyscript from logbook? It’s spamming it :frowning:

1 Like

@swiftlyfalling How does one get VS Code to talk to it? I think I’m close…

I’ve got VSCode on Windows talking to Home Assistant via the “Remote - SSH” VScode extension. I can edit my files via VScode now and hopefully utilize CoPilot.

But I now have two issues:

  1. It’s not recognizing the Home Assistant specific functions, so I’m sure I need to include something to make VScode aware? What do I include and how?
  2. It’s asking me to Select Interpreter - any idea how? What’s the path to it?

+1 for this. It’s doing my head in.

when using a @state_trigger based on the entity attribute (temperature) in the function that is triggered, is it possible to get the temperature attribute old and new values and not just the changes to the entity main state ?

@state_trigger(sensor.bed_3_trv_signal.temperature)
def temp_changed(**kwargs):
  log.info(f"got arguments {kwargs}");

Thanks