Bj
Voici une carte complète pour votre imprimante 3D
MANQUE IMAGE DE LA CAM ( No Cam ) a venir prochainement !
Créé les interrupteurs suivants dans Home Assistant:
- input_boolean.octo_controls
- input_boolean.octo_info
- input_boolean.octoprint_webcam
Les requis obligatoire a installé sur votre Raspberry ou autres
- Octoprint ( cela parait évident )
https://octoprint.org/ - MQTT Octoprint
- HomeAssistant Discovery
HomeAssistant Discovery - Cura Thumbnails
Cura Thumbnails - Slicer Thumbnails
Slicer Thumbnails - PrettyGCode
OctoPrint-PrettyGCode
Sur Home Assistant ( HACS )
Home Assistant
Une fois tout cela mis en place , il vous suffit d’y coller la carte suivante
square: false
columns: 1
type: grid
cards:
- type: horizontal-stack
cards:
- type: custom:threedy-card
base_entity: sensor.octoprint
monitored:
- Status
- Bed
- Hotend
- ETA
- Elapsed
- Remaining
printer_type: I3
name: Ender 3 Neo
theme: Default
temperature_unit: C
round_temperature: true
use_mqtt: true
light_entity: light.led_imprimante
use_24hr: true
round_time: true
camera_entity: camera.octoprint_camera
power_entity: switch.235_imprimante_ender_3d_outlet
scale: 1
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: input_boolean.octo_controls
tap_action:
action: toggle
icon_color: indigo
name: Contrôle
secondary_info: none
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: input_boolean.octoprint_webcam
name: Webcam
tap_action:
action: toggle
secondary_info: none
- type: custom:mushroom-entity-card
entity: input_boolean.octo_info
name: Info
tap_action:
action: toggle
secondary_info: none
- type: conditional
conditions:
- entity: input_boolean.octo_controls
state: 'on'
card:
type: custom:mushroom-title-card
title: Contrôles Axes
- type: conditional
conditions:
- entity: input_boolean.octo_controls
state: 'on'
card:
type: horizontal-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: input_boolean.octo_controls
tap_action:
action: call-service
service: mqtt.publish
target: {}
data:
topic: octoPrint/hassControl/home
payload: '["x", "y", "z"]'
qos: 0
retain: false
primary_info: none
icon_color: green
fill_container: false
icon: mdi:home
secondary_info: none
layout: horizontal
- type: custom:mushroom-entity-card
entity: input_boolean.octo_controls
icon: mdi:arrow-up-bold
tap_action:
action: call-service
service: mqtt.publish
target: {}
data:
topic: octoPrint/hassControl/jog
payload: '{"z": 10, "speed": 0.5}'
qos: 0
retain: false
primary_info: none
icon_color: orange
fill_container: false
secondary_info: none
layout: horizontal
- type: custom:mushroom-entity-card
entity: input_boolean.octo_controls
icon: mdi:arrow-down-bold
tap_action:
action: call-service
service: mqtt.publish
target: {}
data:
topic: octoPrint/hassControl/jog
payload: '{"z": -10, "speed": 0.5}'
qos: 0
retain: false
primary_info: none
icon_color: orange
fill_container: false
secondary_info: none
layout: horizontal
- type: custom:mushroom-entity-card
entity: input_boolean.octo_controls
icon: mdi:arrow-left-bold
tap_action:
action: call-service
service: mqtt.publish
target: {}
data:
topic: octoPrint/hassControl/jog
payload: '{"x": -10, "speed": 0.5}'
qos: 0
retain: false
primary_info: none
icon_color: orange
fill_container: false
secondary_info: none
layout: horizontal
- type: custom:mushroom-entity-card
entity: input_boolean.octo_controls
icon: mdi:arrow-right-bold
tap_action:
action: call-service
service: mqtt.publish
target: {}
data:
topic: octoPrint/hassControl/jog
payload: '{"x": 10, "speed": 0.5}'
qos: 0
retain: false
primary_info: none
icon_color: orange
fill_container: false
secondary_info: none
layout: horizontal
- type: conditional
conditions:
- entity: input_boolean.octo_controls
state: 'on'
card:
type: custom:mushroom-title-card
title: Contrôles Power
- type: conditional
conditions:
- entity: input_boolean.octo_controls
state: 'on'
card:
type: horizontal-stack
cards:
- type: custom:stack-in-card
cards:
- type: custom:layout-card
layout_type: custom:grid-layout
layout:
grid-template-columns: auto 63px
margin: '-4px -4px -8px -4px'
cards:
- type: custom:stack-in-card
mode: horizontal
keep:
background: true
border_radius: true
margin: true
cards:
- type: custom:mushroom-template-card
primary: ''
secondary: Ender 3 Switch
icon: mdi:fan
tap_action:
action: toggle
layout: vertical
entity: switch.235_imprimante_ender_3d_outlet
icon_color: |-
{% if is_state(entity, 'on') %}
green
{% endif %}
{% if is_state(entity, 'off') %}
white
{% endif %}
double_tap_action:
action: toggle
- type: custom:mushroom-template-card
entity: button.octoprint_restart_server
secondary: Restart Octo
icon: mdi:restart-alert
icon_color: orange
layout: vertical
tap_action:
action: toggle
- type: custom:mushroom-template-card
entity: button.octoprint_resume_job
secondary: Résumé
icon: mdi:play
icon_color: green
layout: vertical
tap_action:
action: toggle
- type: conditional
conditions:
- entity: input_boolean.octo_controls
state: 'on'
card:
type: horizontal-stack
cards:
- type: custom:stack-in-card
cards:
- type: custom:layout-card
layout_type: custom:grid-layout
layout:
grid-template-columns: auto 63px
margin: '-4px -4px -8px -4px'
cards:
- type: custom:stack-in-card
mode: horizontal
keep:
background: true
border_radius: true
margin: true
cards:
- type: custom:mushroom-template-card
entity: switch.octoprint_pause_print
secondary: Pause
icon: mdi:pause
icon_color: yellow
layout: vertical
tap_action:
action: toggle
- type: custom:mushroom-template-card
entity: button.octoprint_stop_job
secondary: Stop
icon: mdi:stop
icon_color: red
layout: vertical
tap_action:
action: toggle
- type: custom:mushroom-template-card
entity: button.octoprint_cancel_print
icon: mdi:cancel
secondary: Annulé
icon_color: red
layout: vertical
tap_action:
action: toggle
- type: conditional
conditions:
- entity: input_boolean.octoprint_webcam
state: 'on'
card:
camera_view: auto
type: picture-glance
title: Ender 3 Neo
image: http://10.10.0.180/webcam/?action=stream
entities: []
tap_action:
action: toggle
hold_action:
action: toggle
- type: conditional
conditions:
- entity: input_boolean.octo_info
state: 'on'
card:
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: sensor.octoprint_print_progress
icon: mdi:printer-3d
icon_color: lime
name: Progression
- type: custom:mushroom-entity-card
entity: sensor.octoprint_print_time_left
name: Temps restant
icon: mdi:home-clock
icon_color: lime
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: switch.octoprint_connect_to_printer
tap_action:
action: toggle
icon_color: teal
name: Octo Connecté
- type: custom:mushroom-entity-card
entity: binary_sensor.octoprint_connected
name: Connection Octo
icon: mdi:check-network
icon_color: teal
- type: conditional
conditions:
- entity: input_boolean.octo_info
state: 'on'
card:
show_state: true
show_name: false
camera_view: auto
type: picture-entity
entity: sensor.octoprint_print_file
camera_image: http://10.10.0.180/?fullscreen=1#tab_plugin_prettygcode
tap_action:
action: toggle