@@ -110,15 +110,25 @@ namespace OZW {
110110 break ;
111111 }
112112 case OpenZWave::ValueID::ValueType_List: {
113- ::std::string val;
114- ::std::vector < ::std::string > items;
115- // populate array of all available items in the list
116- OZWManager ( GetValueListItems, value, &items);
117- AddArrayOfStringProp (valobj, values, items);
118- // populated selected element
119- OZWManager ( GetValueListSelection, value, &val);
120- AddStringProp (valobj, value, val.c_str ())
121- break ;
113+ std::string val;
114+ int32 val;
115+ std::vector < std::string > items;
116+ std::vector < int32> itemsvalues;
117+
118+ // populate array of all available items in the list
119+ OpenZWave::Manager::Get ()->GetValueListItems (value, &items);
120+ OpenZWave::Manager::Get ()->GetValueListValues (value, &itemsvalues);
121+
122+ for (int i = 0 ; i != items.size (); i++){
123+ items[i]=std::to_string (itemsvalues[i])+" |" +items[i];
124+ }
125+
126+ AddArrayOfStringProp (valobj, values, items);
127+ // populated selected element
128+ OpenZWave::Manager::Get ()->GetValueListSelection (value, &val);
129+ AddStringProp (valobj, value, val.c_str ())
130+ AddIntegerProp (valobj, value, val);
131+ break ;
122132 }
123133 case OpenZWave::ValueID::ValueType_Short: {
124134 int16 val;
0 commit comments