Hi,
I’m still a newbie regarding home assistant, just had my setup up and running for a week now. Pretty much impressed how easy the whole thing was.
That being said, I have a minor problem. I have an integration in between home assistant and octoprint. Octoprint runs on a separate rPi than the hassio and I don’t keep it on if I’m not printing anything. So usually when I want to print something I just plug the printer and the rPi that runs octoprint on. And since the octoprint is mostly off, my logs on home assistant is full of these errors that it can’t update the sensors;
2019-12-23 12:49:43 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 12:50:45 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 12:51:47 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 12:52:49 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 12:53:51 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 12:54:52 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 12:55:54 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 12:56:56 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 12:57:58 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 12:59:00 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 13:00:02 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 13:01:04 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 13:02:06 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 13:03:08 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
2019-12-23 13:04:10 WARNING (MainThread) [homeassistant.components.sensor] Updating octoprint sensor took longer than the scheduled update interval 0:00:30
And here is the configuration of my octoprint setup;
octoprint:
host: !secret octoprint_host
api_key: !secret octoprint_api_key
name: Ender3Pro
bed: true
number_of_tools: 2
binary_sensor:
- platform: octoprint
monitored_conditions:
- Printing
- Printing Error
sensor:
- platform: octoprint
name: Ender3Pro
monitored_conditions:
- Current State
- Job Percentage
(I also have this automations. I don’t think they are relevant but just in case)
- alias: Send me a notification when the print is above 50%
trigger:
platform: numeric_state
entity_id: sensor.ender3pro_job_percentage
above: 50
action:
service: notify.telegram
data:
message: Print is at 50%
id: e973a2df9d284fa5a44c68b8efcaaaaa
- alias: Send me a notification when the print is finished
trigger:
platform: state
entity_id: sensor.ender3pro_current_state
from: Printing
to: Operational
action:
- service: notify.telegram
data:
message: Print has been finished
id: 9235e90be7504f22b9d223a347baaaaa
It may look harmless but I just don’t want my logs to be polluted. Is there a way to prevent this? Maybe like a manual switch to enable/disable octoprint integration?