Git Product home page Git Product logo

Comments (5)

nplan avatar nplan commented on July 18, 2024

Please try to restart Home Buttons by opening the Settings menu (hold 2 buttons together for 5 seconds) and click the restart button.

After it restarts, press any button. It will re-send the MQTT discovery config messages. This should fix the issue.

from homebuttons.

no2spc avatar no2spc commented on July 18, 2024

Thanks for the reply; I restarted the device and pushed a button. Adapted the routines, unfortunately it still doesn't work. Button 2: pressed once, pressed double, pressed once.

2023-12-03 19:57:24.311 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/awake_mode/available (qos=0): b'offline'
2023-12-03 19:57:24.312 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/sensor_interval (qos=0): b'10'
2023-12-03 19:57:24.313 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_1_label (qos=0): b'mdi:lightbulb'
2023-12-03 19:57:24.373 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_2_label (qos=0): b'mdi:television'
2023-12-03 19:57:24.374 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_3_label (qos=0): b'mdi:heart-multiple'
2023-12-03 19:57:24.374 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_4_label (qos=0): b'mdi:rocket-launch'
2023-12-03 19:57:24.375 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_5_label (qos=0): b'mdi:weather-night'
2023-12-03 19:57:24.376 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_6_label (qos=0): b'mdi:sofa-single'
2023-12-03 19:57:24.376 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/awake_mode (qos=0): b'OFF'
2023-12-03 19:57:24.377 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/disp_msg (qos=0): b'-'
2023-12-03 19:57:24.612 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/temperature (qos=0): b'20.09'
2023-12-03 19:57:24.617 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/humidity (qos=0): b'59.04'
2023-12-03 19:57:24.618 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/battery (qos=0): b'84'
2023-12-03 19:57:37.486 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/awake_mode/available (qos=0): b'offline'
2023-12-03 19:57:37.550 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/sensor_interval (qos=0): b'10'
2023-12-03 19:57:37.551 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_1_label (qos=0): b'mdi:lightbulb'
2023-12-03 19:57:37.552 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_2_label (qos=0): b'mdi:television'
2023-12-03 19:57:37.552 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_3_label (qos=0): b'mdi:heart-multiple'
2023-12-03 19:57:37.553 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_4_label (qos=0): b'mdi:rocket-launch'
2023-12-03 19:57:37.553 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_5_label (qos=0): b'mdi:weather-night'
2023-12-03 19:57:37.554 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_6_label (qos=0): b'mdi:sofa-single'
2023-12-03 19:57:37.554 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/awake_mode (qos=0): b'OFF'
2023-12-03 19:57:37.554 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/disp_msg (qos=0): b'-'
2023-12-03 19:57:38.115 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/button_2_double (qos=0): b'PRESS'
2023-12-03 19:57:38.134 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/temperature (qos=0): b'20.11'
2023-12-03 19:57:38.137 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/humidity (qos=0): b'59.59'
2023-12-03 19:57:38.137 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/battery (qos=0): b'83'
2023-12-03 19:57:38.345 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homebuttons/HomeButtons/cmd/btn_2_label: 'mdi:television-off', mid: 80, qos: 0
2023-12-03 19:57:38.352 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_2_label (qos=0): b'mdi:television-off'
2023-12-03 19:57:47.672 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/awake_mode/available (qos=0): b'offline'
2023-12-03 19:57:47.673 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/sensor_interval (qos=0): b'10'
2023-12-03 19:57:47.718 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_1_label (qos=0): b'mdi:lightbulb'
2023-12-03 19:57:47.718 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_2_label (qos=0): b'mdi:television-off'
2023-12-03 19:57:47.719 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_3_label (qos=0): b'mdi:heart-multiple'
2023-12-03 19:57:47.719 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_4_label (qos=0): b'mdi:rocket-launch'
2023-12-03 19:57:47.720 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_5_label (qos=0): b'mdi:weather-night'
2023-12-03 19:57:47.721 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/btn_6_label (qos=0): b'mdi:sofa-single'
2023-12-03 19:57:47.722 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/awake_mode (qos=0): b'OFF'
2023-12-03 19:57:47.723 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/disp_msg (qos=0): b'-'
2023-12-03 19:57:47.988 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/temperature (qos=0): b'20.12'
2023-12-03 19:57:48.006 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/humidity (qos=0): b'60.15'
2023-12-03 19:57:48.008 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homebuttons/HomeButtons/battery (qos=0): b'83'

from homebuttons.

nplan avatar nplan commented on July 18, 2024

Could you please use MQTT Explorer to see if messages appear on the MQTT topics.

from homebuttons.

no2spc avatar no2spc commented on July 18, 2024

Dear Nejc - thanks! I found the culprit, however I'm not sure why this has happened, but I try to document it, incase anyone else stumbles upon it.

As suggested connected with the MQTT explorer, and saw that in my 'device_automatisation' I had both button1 and button_1 (with without underline). The HomeButtons publishes however only with Underline_Number. HomeAssistant used in the Automatisation/Selection button1 (without the underline).

Manually changing the YAML to button_number worked, I deleted also the buttonNumber entries from the 'device_automatisation', now every new automatisation picks the correct button_number in the YAML.

image

Thanks for your support - love the HomeButtons and new features you implemented!

from homebuttons.

nplan avatar nplan commented on July 18, 2024

Glad to hear you sorted it out.

The button1 etc. without the underline are topics from the very old software version v1.0.0. I have no idea why it has become the issue now...

MQTT discovery in Home Assistant is not working perfectly all the time. Normally, manually deleting all discovery config topics in MQTT Explorer and then resending the config messages from Home Buttons fixes this kind of issues.

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.