Skip to content

Sitemap "Mapping" field strips necessary quote marks #301

@brianhanifin

Description

@brianhanifin

I know you have directed your efforts towards HABmin 2, but I discovered an issue that doesn't allow me to use HABmin for fear of breaking my OpenHAB functionality every time I open HABmin.

I have my Nest thermostat setup on OpenHAB 1.8.1. The thermostat recognizes 4 mode states:

  1. cool
  2. heat
  3. heat-cool
  4. off

I found the dash in the "heat-cold" parameter to be problematic in the mapping field (the button displays "%label%" and pressing that button causes the Nest to send a "heat" mode command instead of a "heat-cool" command.

The solution to this is simple, place quote marks around "heat-cool" in the mappings property. For example.

mappings=[cool="Cool", heat="Heat", "heat-cool"="Heat + Cool", off="Off"]

Unfortunately, HABmin 0.1.3-snapshot strips the quote marks (both double and single quote marks) from the property field when I exit and reopen HABmin.

I have discovered another binding that requires quote marks on the property names is the Logitech Harmony Hub. HABmin also loses the mapping field quote marks on reload. In fact this one does something a little more drastic.

PowerOff=PowerOff, "Watch TV"="Watch TV", "Use Apple TV"="Use Apple TV"
becomes PowerOff=PowerOff, Watch=Watch TV, Use=Apple

This appears to be loosely related to Issue #177, but I believe warrants a separate issue. I hope you agree with me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions