mirror of
https://github.com/skalavala/mysmarthome.git
synced 2025-09-14 15:27:47 +00:00
fixed Tensorflow integration
This commit is contained in:
@@ -139,7 +139,7 @@ automation:
|
||||
# Notify when the printer status changed from "Prnting" to anything.
|
||||
# Use this later to determine if you want to turn off printer or not
|
||||
#
|
||||
- alias: "Octoprint 3D Print"
|
||||
- alias: "3D Print State Changed"
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: "sensor.octoprint_current_state"
|
||||
@@ -152,7 +152,7 @@ automation:
|
||||
#
|
||||
# Updates on the Printer Status
|
||||
#
|
||||
- alias: "Octoprint Notify Printer State"
|
||||
- alias: "3D Print Notify Printer State"
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: "binary_sensor.octoprint_printing"
|
||||
@@ -164,7 +164,7 @@ automation:
|
||||
#
|
||||
# Notifies when the printer errors out
|
||||
#
|
||||
- alias: "Octoprint Noify Printer Error"
|
||||
- alias: "3D Print Notify Printer Error"
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.octoprint_printing_error
|
||||
@@ -177,7 +177,7 @@ automation:
|
||||
#
|
||||
# Updates appropriate input booleans based on percentage complete
|
||||
#
|
||||
- alias: "Update Percentage Booleans"
|
||||
- alias: "3D Print Update Percentage Booleans"
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: sensor.octoprint_job_percentage
|
||||
@@ -194,7 +194,7 @@ automation:
|
||||
#
|
||||
# Provides update at frequent intervals - 25%, 50%, 75%, and 100%!
|
||||
#
|
||||
- alias: "Octoprint 3D Printer Progress Update"
|
||||
- alias: "3D Print Progress Update"
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.twenty_five_percent, input_boolean.fifty_percent, input_boolean.seventy_five_percent, input_boolean.hundred_percent
|
||||
@@ -221,7 +221,7 @@ automation:
|
||||
# Resetting input boleans is not necessary as they get updated automatically when
|
||||
# octoprint job percentage value chaanges... but why not?
|
||||
#
|
||||
- alias: "Job Finished"
|
||||
- alias: "3d Print Job Finished"
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.hundred_percent
|
||||
@@ -247,7 +247,7 @@ automation:
|
||||
#
|
||||
# If the printer is ON and is "Printing", it will send a snapshot/picture every 30 minutes
|
||||
#
|
||||
- alias: "Send 3D Print Pictures"
|
||||
- alias: "3D Print Send Telegram Pictures"
|
||||
trigger:
|
||||
platform: time_pattern
|
||||
minutes: "/30"
|
||||
@@ -263,10 +263,10 @@ automation:
|
||||
entity_id: camera.3d_printer_camera
|
||||
filename: "/home/homeassistant/.homeassistant/www/downloads/camera/3dprinter/print_latest.jpg"
|
||||
- service: notify.telegram
|
||||
data:
|
||||
data_template:
|
||||
title: "3D Printer"
|
||||
message: "Print Progress"
|
||||
data:
|
||||
photo:
|
||||
- file: "/home/homeassistant/.homeassistant/www/downloads/camera/3dprinter/print_latest.jpg"
|
||||
caption: "3D Print Progress"
|
||||
caption: "3D Print Progress at {{ states('sensor.octoprint_job_percentage') }}%"
|
||||
|
@@ -72,6 +72,9 @@ camera:
|
||||
- platform: local_file
|
||||
name: Garage Latest Scan
|
||||
file_path: "/home/homeassistant/.homeassistant/www/downloads/camera/garage/garage_latest.jpg"
|
||||
- platform: local_file
|
||||
name: 3dPrinter Latest Scan
|
||||
file_path: "/home/homeassistant/.homeassistant/www/downloads/camera/3dprinter/print_latest.jpg"
|
||||
|
||||
binary_sensor:
|
||||
- platform: hikvision
|
||||
@@ -112,11 +115,12 @@ image_processing:
|
||||
- entity_id: camera.patio_camera
|
||||
- entity_id: camera.playarea_camera
|
||||
- entity_id: camera.garage_camera
|
||||
- entity_id: camera.3d_printer_camera
|
||||
file_out:
|
||||
- "/home/homeassistant/.homeassistant/www/downloads/camera/{{- camera_entity.split('.')[1].split('_')[0] -}}/{{ camera_entity.split('.')[1].split('_')[0] }}_latest.jpg"
|
||||
- "/home/homeassistant/.homeassistant/www/downloads/camera/{{- camera_entity.split('.')[1].split('_')[0] -}}/{{ camera_entity.split('.')[1].split('_')[0] }}_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg"
|
||||
model:
|
||||
graph: /home/homeassistant/.homeassistant/tensorflow/
|
||||
graph: /home/homeassistant/.homeassistant/tensorflow/models/efficientdet_d0_coco17_tpu-32/
|
||||
# graph: /home/homeassistant/.homeassistant/tensorflow/frozen_inference_graph.pb
|
||||
# categories:
|
||||
# - person
|
||||
|
Reference in New Issue
Block a user