pyscript icon indicating copy to clipboard operation
pyscript copied to clipboard

Pyscript adds rich Python scripting to HASS

Results 151 pyscript issues
Sort by recently updated
recently updated
newest added

I'm trying to add a library to custom_components/pyscript/requirements.txt , but I get an error Unable to install package playwright==1.47.0: ERROR: Could not find a version that satisfies the requirement playwright==1.47.0...

I declare many pyscript scripts as services, and they all work great, however each time HA boots it reports them as an issue that has to be repaired. When mentioning...

I am trying to write a module that contains some boilerplate code for state_triggers that I wan to call from some other files. If I define the factory in a...

https://hacs-pyscript.readthedocs.io/en/latest/reference.html#global-context > pyscript/modules/MODULE.py | modules.MODULE ``` modules # NameError: name 'modules' is not defined from modules import MODULE # ModuleNotFoundError: No module named 'modules' import MODULE # works ``` Pyscript's...

I'm trying to create a virtual light entity by setting its state in my PyScript. ```python @state_trigger("light.virtual_dimmer == 'on'") def test(): print("HELLO WORLD!") attr_dict = { "friendly_name": "Virtual dimmer", "supported_color_modes":...

I experience two major problems when using relative imports. I will demonstrate the issues using this example app: - */config/pyscript/apps/myapp/\_\_init\_\_.py* ``` from .subfolder.a import foo from .subfolder.b import bar ```...

Pyfunctional seems to work fine in root files, but fails when used in modules. There is a very difficult to debug error that gets thrown when using pyfunctional in the...

The following works perfectly fine: ```python calendar.birthdays.create_event( start_date_time="2025-05-05", end_date_time="2025-05-06", summary="Event#1", description="Lorem", location="Ipsum" ) ``` But this does not work ```python calendar.birthdays.create_event( start_date_time="2025-05-05", end_date_time="2025-05-06", summary="Event#1", description="Lorem", location="Ipsum", rrule="FREQ=YEARLY" ) ``` Leads...

Hi, I am currently trying to get some custom plots running for debugging purpose. To install Matplotlib I simply added it to my /config/pyscript/requirements/... and get following error: `Unable to...

I've had an ongoing issue where the context is not passed to `service.call` in my scripts - i.e. the logbook for a light turned on by a script or automation...