Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. Lyr3x
    3. Best
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 17
    • Best 8
    • Controversial 0
    • Groups 0

    Best posts made by Lyr3x

    • RE: Home Assistant Integration

      Edit 4: With v0.1.1 standalone mode is fully supported and so are multiple tools. I also implemented proper setup to prevent duplicated integrations for the same board, so multiple integrations are support now as well.

      Edit 3: We are on v0.0.5 now. Added experimental standalone mode. Can’t test it because I am only using SBC.

      Edit 2: Released v0.0.2. All sensors are created properly and getting async status updates every 5 seconds. Ill follow up later to make the interval configurable and I also need to take another look at finishing up the setup when the printer becomes available later

      Edit 1: Introduced a bug in the version so that the state is not always updated properly. Working on it πŸ™‚

      Hey folks!
      I refactored quite a lot and we now have a proper integration between the DSF and Home Assistant. When you create the integration via ConfigFlow you have some options you can choose from, including the option to add an LED controller, which is handy if you have LED's connected to your Duet.
      The Device itself represents the physical Duet board and shows your correct model as well as the firmware version. All entities now have unique id's and should not conflict anymore. All sensors, binary sensors and the send_gcode service should work properly now πŸ™‚

      Keep in mind that if you have the integration already installed, you need to remove the integration once more and install it again. That is necessary, because I have rewritten the way of how entities are registered in Home Assistant.

      You'll find all infos here in the first release: https://github.com/Lyr3x/hass-Duet3D/releases/tag/v0.0.2
      @dc42 it would be nice if we can upload the Duet3D logo here: https://github.com/home-assistant/brands/pulls - we can use the logo then with this integration.

      I'll look for a better solution for the Position sensor soon.
      If you find any issues are need additional sensors, please create a GitHub issue from now on:
      https://github.com/Lyr3x/hass-Duet3D/issues

      I am also more then happy to accept PRs

      3a0ea8c3-07a4-4e96-bd4a-4e2ad40a1178-image.png

      posted in Third-party software
      Lyr3xundefined
      Lyr3x
    • RE: Home Assistant Integration

      Hey folks,
      i picked this topic up yesterday and refactored the integration to make it work again with the new /machine/status endpoint.
      https://github.com/Lyr3x/hass-Duet3D

      Not happy yet with the position entity and the fact that there is no proper config flow and entities are not attached to a device. I will work on that in the next days. Might take some time as I need to dig into that to understand how custom components are built and what the spaghetti code in the integration is doing πŸ˜„
      I removed the job percentage yesterday temporarily to get this out of my way, because there is not such attribute, but I already spotted that it can be easily calculated with the file size. Contributions are welcomed!

      I also removed the password property, as this is not needed for the endpoint. Furthermore, I might need to set up a proper session when the integration has maybe a service to send G/M codes as well. We'll see.

      Hope that it is of some help for you as well πŸ™‚

      posted in Third-party software
      Lyr3xundefined
      Lyr3x
    • RE: ObjectModel for tool temp not updated properly

      @jay_s_uk
      3.4.5 on a Duet MB6HC

      If I manually edit the active temperature to 0Β° it is of course updated. Can check tomorrow, but I think when a print finishes successful the temperature is also set to 0Β°

      posted in Duet Web Control
      Lyr3xundefined
      Lyr3x
    • RE: Home Assistant Integration

      @nikscha oh the readme is still wrong. It is not Job percentage but Progress

      posted in Third-party software
      Lyr3xundefined
      Lyr3x
    • RE: Home Assistant Integration

      Configflow is still giving me a headache. I need to refactor the code more to get this working properly.
      But I added a home assistant service to send gcodes:

      service: duet3d_printer.hevors_send_gcode
      data:
        gcode: G28
      

      Feedback appreciated!

      posted in Third-party software
      Lyr3xundefined
      Lyr3x
    • RE: Home Assistant Integration

      Edit: Alright, I just released a new version of the integration. ConfigFlow is now working as well as the service. The binary sensor is still dead. You need to remove the configuration from your configuration.yaml and just setup the integration via UI. I unfortunately need to ask you to reconfigure the Integration later again, because I want to attach the entities to a device. But its in a working mode now! Please do not hesitate with feedback.

      @nikscha Yep realized that as well, sorry. I decided to stop trying to patch the stuff I want to remove anyway and fix the config flow setup and remove the configuration.yaml code completely. I already have a working unpolished state. Bear with me a little more. Ill update you all here later!

      posted in Third-party software
      Lyr3xundefined
      Lyr3x
    • RE: Home Assistant Integration

      @nikscha said in Home Assistant Integration:

      service: duet3d_printer.send_codedata: gcode: M291 P"X" R"X" S3

      Ah gotcha. That is specific to the API call. It seems to be synchronous or it times out. If you press the OK button, the request is done. The integration does not validate the GCodes but just send them to the DSF API. If you make a similar call via curl you see the exact same behavior.

      posted in Third-party software
      Lyr3xundefined
      Lyr3x
    • RE: Home Assistant Integration

      Thanks, @T3P3Tony, for the support with the Logos. The integration now appears with a proper icon and the logo!

      Unfortunately, I was forced to update the DOMAIN object one last time, which results in the situation where everyone needs to re-install the integration completely. Sorry for that! Will try to avoid future breaking changes πŸ™

      c4669ceb-2181-4557-8e55-eae11c05e026-image.png

      2916cd39-2ab1-4742-89c6-307609a7c92a-image.png

      posted in Third-party software
      Lyr3xundefined
      Lyr3x