Git Product home page Git Product logo

Comments (11)

Taffmailer avatar Taffmailer commented on June 20, 2024

Hi
I would like to join this - super project.
I have the same problem and looking for a solution how I can change the label via mqtt in the iobroker environment.

all the best

from homebuttons.

Zixim avatar Zixim commented on June 20, 2024

Home Assistant sends a MQTT message to homebuttons/Home Buttons XXXXXX/cmd/btn_6_label with payload containing the label.
XXXXXX being the device identifier.
Next time you press any button, the device will get the message and adjust the label.

from homebuttons.

Frodonet avatar Frodonet commented on June 20, 2024

ok I can send the Message to the device buy instead of my text it shows "null" on the display

from homebuttons.

nplan avatar nplan commented on June 20, 2024

{BASE_TOPIC}/{DEVICE_NAME}/cmd/btn_{1-6}_label is the topic used for label text. The default BASE_TOPIC is homebuttons and DEVICE_NAME is what you set it during initial setup. Defaulting to Home Buttons XXXXXX with Xs replaced with the ID. The message should be published with retained flag set, so that Home Buttons receives it when it wakes up.

Since you're getting "null", could you please check with MQTT Explorer what is actually published to the topic?

from homebuttons.

Taffmailer avatar Taffmailer commented on June 20, 2024

I have published value "Entry" . After the „home button" was woken up by pressing any button, the data communication took place (Sorry for screenshots, I have not found a full logfile about the history).
I hope that this is helpful

Publish

CleanShot 2023-03-22 at 09 15 34@2x

CleanShot 2023-03-22 at 09 16 08@2x

CleanShot 2023-03-22 at 09 16 26@2x

from homebuttons.

Frodonet avatar Frodonet commented on June 20, 2024

I have the same in my MQTT Explorer.

from homebuttons.

nplan avatar nplan commented on June 20, 2024

This seems like a MQTT compatibility issue. Which MQTT broker are you using?

When Home Buttons wakes up, it receives the new label command, updates the label and then sends a MQTT message with empty payload to the broker which should then delete the retained cmd topic.

But here something goes wrong. Instead of deleting the topic the payload is set to "null" which updates the label again...

from homebuttons.

Taffmailer avatar Taffmailer commented on June 20, 2024

I'm using iobroker with the adapter MQTT 4.0.7. I haven't any problems with my other devices including esp32 via mqtt

from homebuttons.

nplan avatar nplan commented on June 20, 2024

This is the problem: ioBroker/ioBroker.mqtt#231 (comment)

On a real MQTT broker you can delete a retained topic by publishing an empty payload. Which Home Buttons does for labels. On the broker that you are using, this does not appear to be supported.

Could you switch the broker to mosquitto? And then only use this adapter in the client mode.

from homebuttons.

Taffmailer avatar Taffmailer commented on June 20, 2024

Thanks a lot, I've solved the problem.

  • installed mosquitto at iobroker server,
  • created a separate mqtt instance at iobroker in client mode which connects to mosquitto
  • Topic is homebutton/#
  • configured the retainer flag there
  • and reconfigured the home button (new mqtt broker is now mosquitto)

... and it works

from homebuttons.

Frodonet avatar Frodonet commented on June 20, 2024

Thanks a lot, I've solved the problem.

  • installed mosquitto at iobroker server,
  • created a separate mqtt instance at iobroker in client mode which connects to mosquitto
  • Topic is homebutton/#
  • configured the retainer flag there
  • and reconfigured the home button (new mqtt broker is now mosquitto)

... and it works

Can you tell me more details ??

from homebuttons.

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.