Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: receive calibrated weight from home assistant? #38

Open
Digityle opened this issue Mar 25, 2023 · 2 comments
Open

Request: receive calibrated weight from home assistant? #38

Digityle opened this issue Mar 25, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Digityle
Copy link

Hello, I have not seen this plugin before now, have been using Home Assistant & esphome for my scale and rfid tagging, was wondering if it would be a massive amount of work to set up an endpoint that home assistant could relay the current scale reading to? I didn't get a raspberry pi before they became solid gold so I have to rely on an esp32 to see what my current filament weight is. If it's way outside scope or a lot of work it's ok I don't expect to even get a response on this but just thought I'd give it a go, thank you!

@techman83 techman83 added enhancement New feature or request help wanted Extra attention is needed labels Mar 27, 2023
@techman83
Copy link
Owner

This is a pretty neat idea! I'm waiting for Raspberry Pi Compute Modules to come back into stock and will switch over my current home automation to home assistant. There is no API endpoint as it uses websockets/knockout bindings. But, in theory you could subscribe to the websocket and filter on the relevant message.

[{"plugin":{"plugin":"filament_scale","data":7812821}}]

It's possible that it might already just work via the home assistant integration - if it doesn't work out of the box, there might be some flag that needs to be set that tells OctoPrint/HA it's a sensor.

@techman83
Copy link
Owner

@Digityle MQTT support was added in #41 - you should be able to install the MQTT plugin, and add the filament weight topic to Home Assistant. I'm still waiting for CM4 modules to be available, so I don't yet have it running still!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants