Giter Club home page Giter Club logo

hass_flashforge's Introduction

FlashForge 3D Printer

GitHub Release GitHub Activity License

hacs

Integration to integrate with FlashForge 3D printers.

This integration will set up the following platforms.

Platform Description
sensor Show info from your 3d printer.
  • temp sensors (bed and extruder)
  • Print progress
  • Printer status
camera Printer camera if exists.

Installation

Manual installation process.

  1. Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  2. If you do not have a custom_components directory (folder) there, you need to create it.
  3. In the custom_components directory (folder) create a new folder called flashforge.
  4. Download all the files from the custom_components/flashforge/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.

Install through HACS

  1. Add this repo as a custom repo in HACS by clicking on the three dots in the right corner in HACS
  2. Select "custom repositories" and add "joseffallman/hass_flashforge" as a integration category.
  3. Restart Home Assistant

Configuration is done in the UI

  1. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "FlashForge"

Contributions are welcome!

If you want to contribute to this please read the Contribution guidelines


hass_flashforge's People

Contributors

dependabot[bot] avatar joseffallman avatar yohaybn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hass_flashforge's Issues

Add support for different camera urls

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

Flashforge has pushed out a new firmware for the 5M/5MPro and the camera now streams on http://{IP}:8080/?action=stream instead of http://{IP}:8080/stream_simple.html

Describe the solution you'd like

Since it is firmware dependent, you can't just base it on whether it's a 5M/Pro or not so, can you have it be either a text box for entering the camera url or have radio button for which it should be?

Describe alternatives you've considered

I could fork the code and do it but I figured it would make sense keep it in one place instead.

Additional context

Let me know what you think.

integration unavailable every couple of minutes

System Health details

Home assitant up to date et flashforge integration 1.0.5

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

Hello,

integration becomes unavailable after a few minutes and then available again? The cycle is infinite.
Copie d'écran_20240429_193918

Reproduction steps

  1. Begin to print
  2. Integration available
  3. Few minutes later integration unavailable
    ... 30 seconds later integration available

infinite loop

Debug logs

2024-04-29 20:50:38.621 DEBUG (MainThread) [custom_components.flashforge.data_update_coordinator] Finished fetching FlashForge-55af99e92e479bd721455a08ff1c89b7 data in 0.006 seconds (success: True)
2024-04-29 20:51:08.621 ERROR (MainThread) [custom_components.flashforge.data_update_coordinator] Error fetching FlashForge-55af99e92e479bd721455a08ff1c89b7 data: [Errno 104] Connection reset by peer
2024-04-29 20:51:08.622 DEBUG (MainThread) [custom_components.flashforge.data_update_coordinator] Finished fetching FlashForge-55af99e92e479bd721455a08ff1c89b7 data in 0.007 seconds (success: False)
2024-04-29 20:51:09.598 WARNING (SyncWorker_63) [custom_components.flashforge.camera] Unable to get still image when Adventurer 5M Camera camera is offline
2024-04-29 20:51:19.596 WARNING (SyncWorker_47) [custom_components.flashforge.camera] Unable to get still image when Adventurer 5M Camera camera is offline
2024-04-29 20:51:29.596 WARNING (SyncWorker_35) [custom_components.flashforge.camera] Unable to get still image when Adventurer 5M Camera camera is offline
2024-04-29 20:51:38.629 INFO (MainThread) [custom_components.flashforge.data_update_coordinator] Fetching FlashForge-55af99e92e479bd721455a08ff1c89b7 data recovered
2024-04-29 20:51:38.629 DEBUG (MainThread) [custom_components.flashforge.data_update_coordinator] Finished fetching FlashForge-55af99e92e479bd721455a08ff1c89b7 data in 0.015 seconds (success: True)

Diagnostics dump

No response

Deprecated constant

Logger: homeassistant.const
Källa: helpers/deprecation.py:206
Inträffade först: 00:35:07 (1 händelser)
Senast loggade: 00:35:07

TEMP_CELSIUS was used from flashforge, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'flashforge' custom integration

Temp sensors do not show up for Adventurer 5M Pro

System Health details

System Information

version core-2024.2.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.1
os_name Linux
os_version 6.1.63-haos-raspi
arch aarch64
timezone America/Los_Angeles
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4823
Installed Version 1.34.0
Stage running
Available Repositories 1389
Downloaded Repositories 22
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 11.5
update_channel stable
supervisor_version supervisor-2024.01.1
agent_version 1.6.0
docker_version 24.0.7
disk_total 28.6 GB
disk_used 14.4 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.9.0), Mosquitto broker (6.4.0), Zigbee2MQTT (1.35.3-1), Log Viewer (0.17.0), Cloudflared (5.1.3), File editor (5.8.0), Z-Wave JS UI (3.3.2), Z-Wave JS (0.4.4), ESPHome (2023.12.9), Home Panel (2.7.0), Studio Code Server (5.15.0), Docker Wyze Bridge (2.3.17), Node-RED (17.0.6)
keymaster
zwave_integration zwave_js
network_status on
Dashboards
dashboards 2
resources 5
views 19
mode storage
Recorder
oldest_recorder_run January 31, 2024 at 7:51 PM
current_recorder_run February 10, 2024 at 10:20 AM
estimated_db_size 278.73 MiB
database_engine sqlite
database_version 3.44.2
Sonoff
version 3.5.4 (a4a8c5f)
cloud_online 0 / 2
local_online 1 / 1

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

Not sure if this is really a bug or if this should be a feature request. Installed the integration and configured it. It correctly identifies my printer, as the Adventurer 5M Pro, and creates the entities for the Camera, Job Percentage and Status and they all show up and update correctly in Home Assistant!!! One of the features lists in for the integration is temp sensors however the integration didn't manage to find the entities. I can help debug this if you can give me some ideas on how to help grab additional data on what it's seeing when it's polling the printer for information.

Reproduction steps

Load and configure the integration, the two temp sensors do not show up.

Debug logs

024-02-10 10:58:40.513 DEBUG (MainThread) [custom_components.flashforge.data_update_coordinator] Finished fetching FlashForge-e0569b7ee80bcea3f58d40d85486fb74 data in 0.034 seconds (success: True)
2024-02-10 10:58:40.515 INFO (MainThread) [homeassistant.components.sensor] Setting up flashforge.sensor
2024-02-10 10:58:40.515 INFO (MainThread) [homeassistant.components.camera] Setting up flashforge.camera
2024-02-10 10:58:40.519 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.flashforge entity: sensor.adventurer_5m_pro_status
2024-02-10 10:58:40.521 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.flashforge entity: sensor.adventurer_5m_pro_job_percentage
2024-02-10 10:58:40.526 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new camera.flashforge entity: camera.adventurer_5m_pro_camera

Diagnostics dump

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.