freakent / dbus-mqtt-devices

A driver for Victron VenusOS GX devices to support use of dbus-mqtt/flashmq-mqtt
MIT License
101 stars 22 forks source link

New GUI-Beta requires Status DBus path for Temp sensors #74

Closed gharshaw closed 5 months ago

gharshaw commented 8 months ago

@freakent
Hi Martin, While reviewing the new gui-beta in v3.20~26 at http://ipaddress/gui-beta I discovered that gui-beta is using a "Status" dbus-path for temperature sensors. even though the documentation, https://github.com/victronenergy/venus/wiki/dbus#temperatures, says this path is for "wired inputs only. Without the status path the "Environment" screen is blank.

I added the Status path to the services.yml like so -- Status: description: "0=Ok, 1=Disconnected, 2=Short circuited, 3=Reverse polarity, 4=Unknown" persist: true default: 0 min: 0 max: 4

image

Best Regards, Gene

freakent commented 8 months ago

Thanks for the info. Where in the UI you posted do you see the status? OK, I just re-read your message. Given that it has four possible values, is there one in particular that makes it display?

I don't think persist should be set to true.

gharshaw commented 8 months ago

@freakent , I defaulted it to 0. 0=Ok I agree with your thoughts on persist. I'll set it to false and see how the app behaves.

I also added Status to the tank sensors

freakent commented 8 months ago

If you change "persist", make sure you use a different device or service name in the registration so that it creates a new set of settings on the dbus.

johanvancalster commented 6 months ago

I got the same issue with the new beta version. in the old gui and beta gui. Nothing shows, exact samen code works perfect on release version of Venus OS. MQQT explorer gives the result fine of level and remaining, but gui stays blank. Anything else I can try.

freakent commented 6 months ago

I'm sorry this issue has been open for such a long time, and was origionally related to the Status attribute. Can you summarise what the problem is your are experiencing currently? If it's not related to the status attribute then pleae open a new issue.

johanvancalster commented 6 months ago

I'm testing out the beta release of Venus OS, to give the beta gui a try. When using my working code to publish tank level, I get empty fields see below. I added the status field like above, but still get empty values.

Screenshot 2024-01-08 at 17 54 50 Screenshot 2024-01-08 at 17 55 57