Scott Bender - @naugehyde I am getting an error...

@naugehyde I am getting an error with the bt plugin config. "Something went wrong" .
No description
32 Replies
Scott Bender
Scott BenderOP3mo ago
This makes so that no plugin configs can be accessed at all.
Teppo Kurki
Teppo Kurki3mo ago
”Anything relevant in the server log?” Feeding u yr own medicine 😁
Scott Bender
Scott BenderOP3mo ago
🤣 I didn’t see anything in the log
naugehyde
naugehyde3mo ago
@Scott Bender haven't seen that before. I can't recreate. any earlier errors? what browser are you running?
Note: the global error (something went wrong) is generated by the admin config page. Any uncaught error in a custom config will cause it. Also, what version of the server?
Scott Bender
Scott BenderOP3mo ago
It’s 2.13.5 I’ll look more on the server side…
naugehyde
naugehyde3mo ago
Looks like the eventSource variable on the client isn't being initialized. It should be non null or an earlier error should show up in the client console at least.
Scott Bender
Scott BenderOP3mo ago
I get the same error running locally from the main branch No earlier error, only those two
naugehyde
naugehyde3mo ago
Help me recreate. What's your client platform? How did you install the plugin?
Scott Bender
Scott BenderOP3mo ago
Hmm. Safari Works in chrome
naugehyde
naugehyde3mo ago
Ah. Let met debug in Safari. Not seeing it in my Safari either. What version of Safari?
Scott Bender
Scott BenderOP3mo ago
It's on Mac, 18.1 seems fine on the phone
naugehyde
naugehyde3mo ago
Bah. I'm on 18.5 on my Mac.
Scott Bender
Scott BenderOP3mo ago
ok, let me update my Mac...
naugehyde
naugehyde3mo ago
I'll make a note in the readme about Safari 18.1 Safari 18.5 does invert the Bluetooth logo for some reason!
Scott Bender
Scott BenderOP3mo ago
Working with 18.5 Next problem...
Scott Bender
Scott BenderOP3mo ago
No description
Scott Bender
Scott BenderOP3mo ago
even though I have an Id entered
Scott Bender
Scott BenderOP3mo ago
No description
naugehyde
naugehyde3mo ago
I'll look into it. What is the sensors...rssi path look like?
Scott Bender
Scott BenderOP3mo ago
sensors.Victron_Orion_Smart_12V|12V-18A_Isolated_DC-DC_Charger-DA-64-FC-ED-05-7E.RSSI
naugehyde
naugehyde3mo ago
Ok There's a bug in the Orion code that may have caused the behavior you're seeing. You should see a raft of errors in the log VC.getOffReason is not a function or something like that. Can you confirm?
Scott Bender
Scott BenderOP3mo ago
I don’t see those errors
naugehyde
naugehyde3mo ago
Can you confirm that it's a DC-DC charger not an XS? (Easy to mix up all these different models)
Scott Bender
Scott BenderOP3mo ago
Yes, it’s not an XS
naugehyde
naugehyde3mo ago
And that was in Safari?
Scott Bender
Scott BenderOP3mo ago
The screenshots? Yes. The config:
{
"active": true,
"discoveryTimeout": 30,
"params": {
"name": "Orion Smart HQ2226MY3QV",
"encryptionKey": "XXXXX",
"sensorClass": "VictronDCDCConverter"
},
"paths": {
"RSSI": "sensors.{macAndName}.RSSI",
"id": "orion2",
"deviceState": "electrical.chargers.{id}.state",
"chargerError": "electrical.chargers.{id}.error",
"inputVoltage": "electrical.chargers.{id}.input.voltage",
"outputVoltage": "electrical.chargers.{id}.output.voltage",
"offReason": "electrical.chargers.{id}.offReason"
},
"mac_address": "DA:64:FC:ED:05:7E"
}
{
"active": true,
"discoveryTimeout": 30,
"params": {
"name": "Orion Smart HQ2226MY3QV",
"encryptionKey": "XXXXX",
"sensorClass": "VictronDCDCConverter"
},
"paths": {
"RSSI": "sensors.{macAndName}.RSSI",
"id": "orion2",
"deviceState": "electrical.chargers.{id}.state",
"chargerError": "electrical.chargers.{id}.error",
"inputVoltage": "electrical.chargers.{id}.input.voltage",
"outputVoltage": "electrical.chargers.{id}.output.voltage",
"offReason": "electrical.chargers.{id}.offReason"
},
"mac_address": "DA:64:FC:ED:05:7E"
}
naugehyde
naugehyde3mo ago
Looks like the id param isn't set. Will investigate It's set in the paths not the params. If you want to test a fix all you have to do is change this addDefaultPath("id") to this addDefaultParam("id") in the initSchema() method of the VictronDCDCConverter class.
Scott Bender
Scott BenderOP3mo ago
do you need me to test? otherwise I can't wait for an update. no rush.
naugehyde
naugehyde3mo ago
No prob. I'll let you know when an update is available One more thing! I wasn't sure about the SK paths for Victron GX, Victron Smart Battery Protect, and Victron VE Bus devices should be. Can you advise ?
Scott Bender
Scott BenderOP3mo ago
They should probably match what my venus plugin does. Do you have a list of the data. I can go through it…
naugehyde
naugehyde3mo ago
Of course it will! I'll take a look at your plug-in first.
Scott Bender
Scott BenderOP3mo ago
Might be easier for me, since the mapping ls are pretty complex there. Let me know!

Did you find this page helpful?