question

xsilvergs avatar image
xsilvergs asked

Node-Red Temperature Sensor Node

Using Node-Red v2.6-large-image-7 on a RPi3 B+ with an mcp3208 ADC.

When I try to use the Temperature Sensor node I'm unable to select either sensor.


I get this message in the "Edit Temperature Sensor node" box:

Multiple temperature sensors were found with the same name. You can set a custom name for the device in Venus settings.

screenshot-at-2021-01-06-18-29-06.png


I am unable to see how to change the name of the sensor, any help would be much appreciated.


Node-RED
1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Justin Cook avatar image Justin Cook ♦♦ commented ·

Moved to Modifications Space for non-Victron-supported systems/questions and to bring the question into the attention of other users of non-supported systems. Cheers!

0 Likes 0 ·
1 Answer
markus avatar image
markus answered ·

Hi,

On your Venus device:

go to Device List --> Temperature sensor you want to rename --> Device --> Name

You can enter a name for the sensor there.

BR


21 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

xsilvergs avatar image xsilvergs commented ·

@Markus

But I don't have a field called name


screenshot-at-2021-01-07-16-11-45.png

0 Likes 0 ·
bathnm avatar image bathnm xsilvergs commented ·

What version of software are you running?

It exists on mine

1610038155588.png

0 Likes 0 ·
1610038155588.png (99.8 KiB)
xsilvergs avatar image xsilvergs bathnm commented ·

Using Node-Red v2.6-large-image-7 on a RPi3 B+ with an mcp3208 ADC.


I see there is a version that says it's for a rpi4

https://www.dropbox.com/sh/i8ru22o4ydws1rx/AADpa8lj5s2APZ2JS78OGPjKa?dl=0


I do not see Offline updates only Online updates.

screenshot-at-2021-01-07-18-37-22.png

From within the software I see this but get an error.

screenshot-at-2021-01-07-17-56-20.png

0 Likes 0 ·
mvader (Victron Energy) avatar image mvader (Victron Energy) ♦♦ xsilvergs commented ·

> Not seeing Offline updates

where did you see that exact wording?

You do see it, 'install firmware from SD/USB', but is just named differently.


> Temp sensor

What software are you running to read out that MCP? You must have done some modifications, as I’m quite sure Venus OS doesnt read that out of the box?
My guess is that driver is missing the feature to set a name to the temp sensor.


hope that helps you & the rest of people here to get it solved, all the best

0 Likes 0 ·
xsilvergs avatar image xsilvergs mvader (Victron Energy) ♦♦ commented ·

I read Offline updates somewhere on the internet, not sure where though.

I took info from here https://community.victronenergy.com/articles/38710/victron-raspi-hat.html?childToView=71020#comment-71020

And info from here https://community.victronenergy.com/questions/19608/raspberry-pi-analog-inputs-tank-input.html

Can you explain or give a link to the more info for the driver please so I may find the file and perhaps edit it to include a name feature.

Many thanks

0 Likes 0 ·
Show more comments
xsilvergs avatar image xsilvergs bathnm commented ·

I still have not been able to get the Name option to display.

In an attempt to learn more I have taken a look at the gui folder files. The file PageDeviceInfo.qml has a section MbEditBox, id I remove the line show: item.valid with // the Name option is displayed. I can type in a name but it is not saved. Does this mean anything?

MbEditBox {

id: name

description: qsTr("Name")

item.bind: Utils.path(root.bindPrefix, "/CustomName")

//show: item.valid

maximumLength: 32

enableSpaceBar: true

}


I notice in this file there are a couple of other instances of "show: item.valid", they also don't appear.

0 Likes 0 ·
bathnm avatar image bathnm xsilvergs commented ·

It may well be that dBus does not hold the data and have a valid path. Use the dBus-spy tool to look at the temperature sensor and see if it has that data element associated with it.

the QML was not displaying it as item.valid must have been false, that means the data element dose not exist.

If dBus-spy shows it not there, then I suspect the driver which is maintaining the dbus path has not created it, if you can let me know the driver I’ll dig through the source and see if I can find the issue.

0 Likes 0 ·
mvader (Victron Energy) avatar image mvader (Victron Energy) ♦♦ bathnm commented ·

Hey both, normally its this one:

https://github.com/victronenergy/dbus-adc

But, for the rpi + temp sensor, I have no clue how thats done.

If you look at the commit logs of above, you can see a "add custom name support" commit early last year, iirc.

Success!

0 Likes 0 ·
xsilvergs avatar image xsilvergs bathnm commented ·

typing dbus-spy into terminal gives this output:

Services
com.victronenergy.digitalinput.input01                                                                                     Bilge pump
com.victronenergy.digitalinput.input02                                                                                     Bilge pump
com.victronenergy.fronius
com.victronenergy.logger
com.victronenergy.modbusclient.tcp
com.victronenergy.modbustcp
com.victronenergy.qwacs
com.victronenergy.settings
com.victronenergy.system
com.victronenergy.tank.builtin_adc2_di2                                                                            Generic Tank Input
com.victronenergy.tank.builtin_adc4_di0                                                                            Generic Tank Input
com.victronenergy.tank.builtin_adc6_di1                                                                            Generic Tank Input
com.victronenergy.temperature.builtin_adc3_di1                                                              Generic Temperature Input
com.victronenergy.temperature.builtin_adc5_di0                                                              Generic Temperature Input

dbus -y com.victronenergy.system / GetValue
'AvailableTemperatureServices': {'com.victronenergy.temperature/23/Temperature': 'Battery temperature sensor (1)',
                                  'com.victronenergy.temperature/24/Temperature': 'Battery temperature sensor (2)',
                                  'default': 'Automatic',
                                  'nosensor': 'No sensor'},

Does this mean anything to you? I'm not that familiar with dbus, yet!

0 Likes 0 ·
Show more comments