freedomotic / fd-vue-webapp

A Vue.js web application for Freedomotic Open IoT framework
http://fd-vue-webapp.herokuapp.com/
GNU Affero General Public License v3.0
65 stars 66 forks source link

Connect 'Protocol' field to 'availableProtocols' getter #203

Closed mcicolella closed 5 years ago

mcicolella commented 6 years ago

The field Protocol should list the available protocols. These data can be retrieved from Vuex getter availableProtocols.

schermata del 2018-10-31 10-28-35

amenak77 commented 6 years ago

protocol_own

I have not this problem

amenak77 commented 6 years ago

Maybe there is something strange about light's object structure; a question: is it possible having a light object without a protocol?

mcicolella commented 6 years ago

Yes, by default protocol and address are set to 'unknown'. In this case you have a virtual object.

amenak77 commented 6 years ago

Ok, then online demo object light maybe has "unknown" as a protocol by default and vue getter works correcly; in fact it has correctly shown "openwebnet" in 1*41 light of my myhome system; perhaps there is no issue except the idea of virtual object

mcicolella commented 6 years ago

If you want to associate/change a protocol you need a list of them as in Jfrontend. This is the issue.