eibakke / hass_scripts Goto Github PK
View Code? Open in Web Editor NEWMy Home Assistant scripts for automation and services
My Home Assistant scripts for automation and services
Unable to get this to work, only changed the nordpool sensor in cheapest_hours_energy.py to reflect my sensor in the following
(and created the local calendar entity calendar.electricity)
nordpool_sensor_id = data.get("nordpool_sensor_id", "sensor.nordpool")
Error log
2023-06-28 16:55:02.085 ERROR (SyncWorker_3) [homeassistant.components.python_script.cheapest_hours_energy.py] Error executing script: sequence item 0: expected str instance, NoneType found
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/python_script/init.py", line 224, in execute
exec(compiled.code, restricted_globals)
File "cheapest_hours_energy.py", line 128, in
File "cheapest_hours_energy.py", line 126, in setCheapestHours
File "cheapest_hours_energy.py", line 89, in createEventsForSequences
TypeError: sequence item 0: expected str instance, NoneType found
Sorry to bother, but it seems I cannot run some things.
It may be the issue of my configuration, but I cannot find the issue.
2023-10-31 09:34:14.347 INFO (SyncWorker_8) [homeassistant.components.python_script] Executing cheapest_non_sequential.py: {'max_hours_between_sequences': 12, 'number_of_hours': 2, 'service_to_call': 'switch', 'start_method': 'turn_on', 'end_method': 'turn_off', 'automate_entity_id': 'switch.aqua_ariston_power', 'cheapest_hours_set_bool': 'input_boolean.waterheater_scheduled'}
2023-10-31 09:34:14.347 ERROR (SyncWorker_8) [homeassistant.components.python_script.cheapest_non_sequential.py] Error executing script: 'NoneType' object is not callable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.