Code Monkey home page Code Monkey logo

Comments (3)

areyoufserious avatar areyoufserious commented on June 26, 2024

i confirm this issue
at least once mqtt device (and entitiies) had proper values (maybe at first lauunch?)
but since that all device entities are unavailable and i can just see separate topics in mqtt

from bluetti_mqtt.

warhammerkid avatar warhammerkid commented on June 26, 2024

Sorry for the slow response on this - just getting back around to work on this. I installed the latest version and booted up my Home Assistant server to test, and here's how it should be working:

For each sensor there should be a retained message on the MQTT server like:

homeassistant/sensor/2000000000000_ac_input_power/config {"state_topic":"bluetti/state/AC300-2000000000000/ac_input_power","device":{"identifiers":["2000000000000"],"manufacturer":"Bluetti","name":"AC300 2000000000000","model":"AC300"},"unique_id":"2000000000000_ac_input_power","object_id":"AC300_ac_input_power","name":"AC Input Power","unit_of_measurement":"W","device_class":"power","state_class":"measurement","force_update":true}

The new value should be published to a topic like:

bluetti/state/AC300-2000000000000/ac_input_power 0

I'm curious if something got corrupted somehow here and it no longer looks like this?

from bluetti_mqtt.

renarena avatar renarena commented on June 26, 2024

other devices have topics like this:

homeassistant/climate/mac_address/device_id/config
homeassistant/sensor/mac_address/device_id/config

https://www.home-assistant.io/integrations/mqtt/ tell:

The discovery topic needs to follow a specific format:
<discovery_prefix>//[<node_id>/]<object_id>/config

but bluetti has no device id before the sensor name:

homeassistant/sensor/2000000000000_ac_input_power/config

try homeassistant/sensor/2000000000000/ac_input_power/config instead?

from bluetti_mqtt.

Related Issues (20)

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.