AdyRock / com.ady.button_plus

GNU General Public License v3.0
2 stars 3 forks source link

No Homey data shown on Button Plus, button presses not registered in Homey #104

Closed leeuweriq closed 5 months ago

leeuweriq commented 5 months ago

Homey

Bug Unable to establish communication between Homey and Button Plus. Unable to display any data on the Button Plus or getting button presses registered in the Homey Pro. I've tried hard resetting the BP, uninstalling and adding the BP app on the Homey Pro and creating new display and button configurations through the Homey app on iOS.

I am able to add new display configurations (for example a "Temperature" block in the top left corner of the screen). I am also able to browse the Homey broker topics to select a temperature topic for one of the connected zigbee temperature sensors (which broadcasts the correct temperature to the Homey because I am able to see the temperature in the Homey app itself). But after saving the configuration the value in the Temperature block on the BP remains empty.

When checking the diagnostics logs in the ButtonPlus Homey app, I'm seeing these log entries:

undefined 
2024-03-11T15:25:01.775Z Invalid connector type: 0 on 0 
2024-03-11T15:25:01.782Z Error: Invalid connector type: 0 on 0 
2024-03-11T15:25:01.814Z Invalid button bar configuration: null 
2024-03-11T15:25:01.817Z Error: Invalid button bar configuration: null

Any idea what I'm doing wrong?

AdyRock commented 5 months ago

What do you see in the web interface of the Button plus?

leeuweriq commented 5 months ago

I'm guessing you're refering to the GUI where you see the display and button layout? It shows exactly the same as on the BP itself. So a block with a title "Temperature", with an empty value. Weird thing is that in the web interface under "MQTT Brokers" I only see the 'buttonplus' broker, but not the Homey:

image
AdyRock commented 5 months ago

OK, so if you go to the app settings in the Button + Homey app, select Broker Configurations from the drop list and then make sure the Homey broker is enabled, set as the Default Broker and the Button Plus broker is disabled. Then tap on Save All Configurations. Hopefully that should fix the problem.

leeuweriq commented 5 months ago

I've manually added the Homey broker configuration through the BP web interface and that has done the trick. After going back to the Button + Homey app, and selecting Broker Configuration, the Homey broker wasn't there so I've added it there too. Aren't these two systems 'linked' somehow? Thanks!

AdyRock commented 5 months ago

I'm not sure why the Homey broker wasn't in Homey as it should be created automatically and presented from being deleted. Did you start with a very early version of the app? The synchronisation is one way, from Homey to Button +.

leeuweriq commented 5 months ago

No it is the most recent version. I've got it working now and sort of figured out how the two interfaces (BP app for Homey and the BP web interface) work. Thanks for your quick response!