I have activated debugging in the physcript integration. That’s what I get every 10 seconds:
By the way, is there any way I can reduce the check from 10 seconds to 5 minutes which would be totally sufficient in my case? It would stop flooding the logbook.
2024-03-12 18:07:56.759 DEBUG (MainThread) [custom_components.pyscript.trigger] trigger file.pv_excess_control.on_time time_next = 2024-03-12 18:08:06.757314, now = 2024-03-12 18:07:56.759486
2024-03-12 18:07:56.759 DEBUG (MainThread) [custom_components.pyscript.trigger] trigger file.pv_excess_control.on_time waiting for 9.99783 secs
2024-03-12 18:07:56.760 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling on_time(, {'trigger_type': 'time', 'trigger_time': datetime.datetime(2024, 3, 12, 18, 7, 56, 757314)})
2024-03-12 18:07:56.760 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling sanity_check(, {})
2024-03-12 18:07:56.761 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling values(, {})
2024-03-12 18:07:56.761 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling iter(dict_values([{'instance': <custom_components.pyscript.eval.PvExcessControl object at 0x7f1e18b33ef0>, 'priority': 9}]), {})
2024-03-12 18:07:56.761 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling next(<dict_valueiterator object at 0x7f1e24994360>, {})
2024-03-12 18:07:56.762 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling _update_pv_history(, {})
2024-03-12 18:07:56.762 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling _get_num_state("sensor.power_production_polli", {})
2024-03-12 18:07:56.762 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling _get_state("sensor.power_production_polli", {})
2024-03-12 18:07:56.763 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling split(".", {})
2024-03-12 18:07:56.763 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling get("sensor.power_production_polli", {})
2024-03-12 18:07:56.763 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling _validate_number("2", None, {})
2024-03-12 18:07:56.764 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling float("2", {})
2024-03-12 18:07:56.764 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling float("2", {})
2024-03-12 18:07:56.764 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling float("2", {})
2024-03-12 18:07:56.766 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling int(2.0, {})
2024-03-12 18:07:56.766 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling _get_num_state("sensor.inverter_input_power_combined", {})
2024-03-12 18:07:56.766 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling _get_state("sensor.inverter_input_power_combined", {})
2024-03-12 18:07:56.767 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling split(".", {})
2024-03-12 18:07:56.767 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling get("sensor.inverter_input_power_combined", {})
2024-03-12 18:07:56.767 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling _validate_number("61.0", None, {})
2024-03-12 18:07:56.767 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling float("61.0", {})
2024-03-12 18:07:56.768 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling float("61.0", {})
2024-03-12 18:07:56.768 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling float("61.0", {})
2024-03-12 18:07:56.768 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling _get_num_state("sensor.house_consumption_power", {})
2024-03-12 18:07:56.768 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling _get_state("sensor.house_consumption_power", {})
2024-03-12 18:07:56.769 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling split(".", {})
2024-03-12 18:07:56.769 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling get("sensor.house_consumption_power", {})
2024-03-12 18:07:56.769 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling _validate_number("3628", None, {})
2024-03-12 18:07:56.769 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling float("3628", {})
2024-03-12 18:07:56.770 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling float("3628", {})
2024-03-12 18:07:56.770 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling float("3628", {})
2024-03-12 18:07:56.770 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling int(-3567.0, {})
2024-03-12 18:07:56.770 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling append(2, {})
2024-03-12 18:07:56.770 DEBUG (MainThread) [custom_components.pyscript.eval] file.pv_excess_control.on_time: calling append(-3567, {})