andig / pimatic-fritz

Pimatic plugin for Fritz!Box SmartHome and FritzDect!200 Node
GNU General Public License v2.0
8 stars 6 forks source link

guiShowValvePosition always resets to 'false' #28

Closed svenalbert closed 7 years ago

svenalbert commented 8 years ago

Whether I activate 'guiShowValvePosition' in the 'Edit Device' page or in the graphical Config-Editor, the value for this variable is always reset to 'false'. Other changes I make this way remain - so my changes are accepted- all but this one.

{ "user": "", "password": "xxxx", "plugin": "fritz", "active": true }, ... { "class": "FritzThermostat", "id": "thermostat-wohnzimmer", "ain": "10971xxxx040", "name": "Thermostat Wohnzimmer", "guiShowValvePosition": false, "guiShowTemperatureInput": true }

andig commented 8 years ago

Could you check if removing this line https://github.com/andig/pimatic-fritz/blob/master/fritz.coffee#L365 works for you?

svenalbert commented 8 years ago

Later I can test it. Do I just have to edit the line or reinstall the plug-in?

andig commented 8 years ago

Editing should be sufficient.

Viele Grüße, Andreas

Am 18.10.2016 um 10:27 schrieb svenalbert notifications@github.com:

Later I can test it. Do I just have to edit the line or reinstall the plug-in?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

svenalbert commented 8 years ago

Removing this line gives me error [pimatic]: unexpected newline an nothing is shown next to the device name in the gui.

andig commented 8 years ago

Please put 'pass' instead of empty line.

svenalbert commented 8 years ago

Now it looks like

customConfig:

guiShowModeControl: false

 # guiShowPresetControl: false
 # guiShowValvePosition: false
 pass

implement env.devices.TemperatureSensor

_temperature: null`

and the error message is

error [pimatic]: pass is not defined

svenalbert commented 7 years ago

So nothing new about this issue?

andig commented 7 years ago

Revisiting the code I've written some months ago I'm wondering what you expect by the guiShowValvePosition? Imho the CometDECT thermostat does not support retrieving this information and the setting should actually be removed?

andig commented 7 years ago

ping @svenalbert

svenalbert commented 7 years ago

sorry - was ill! I just saw the setting and if I changed the value it wasn't saved. You are right that it should be totally removed, if the thermostat does not send a value about this - I don't know what informations are available from it.

andig commented 7 years ago

You are right that it should be totally removed, if the thermostat does not send a value about this

To to get this confirmed- its on the todo list now.

andig commented 7 years ago

Will be live with the next package release