Maxime Soulé
Maxime Soulé
Hi, doesn't [#384](https://github.com/ovh/the-bastion/issues/384#issuecomment-1498786380) fulfill your needs?
Nope. It probably means this attribute accepts only integer values? Do you succeed to set it to a floating value using another way (vitodata app or website)? If yes, print...
And when you set it to 1.4 using the web interface vitodata100, what does `/home/pi/go/bin/vitotrol rget konf_neigung_rw-0x0b35` print?
At https://github.com/maxatome/go-vitotrol/blob/master/vitotrol.go#L39, you can try to add: ```diff client := &http.Client{} + log.Println("SEND(" + reqBody + ")") req, err := http.NewRequest("POST", MainURL, ``` to check you have well: ```xml SEND(…1.4)...
1. retrieve the repo 2. go to vitotrol command directory 3. build vitotrol executable ↓ ``` git clone https://github.com/maxatome/go-vitotrol.git cd go-vitotrol/cmd/vitotrol go install . ```
In this case I don't know what to do to fix this issue, as if 1.4 is well sent then I don't understand why the server only keeps the integer...
we can try `1,4` instead of `1.4` as a last resort: here https://github.com/maxatome/go-vitotrol/blob/master/vitotrol.go#L10 add ```diff "sort" + "strings" ) ``` then just before the `log.Println("SEND(" + reqBody + ")")` line...
Cool! We are lucky :D I will do a PR ASAP.
@monojk could you please test the PR #16? In the go-vitotrol directory, do: ``` git checkout -- . git fetch git checkout fix-float cd cmd/vitotrol go install .