GithubHelp home page GithubHelp logo

Event errors about habapp HOT 6 CLOSED

spacemanspiff2007 avatar spacemanspiff2007 commented on June 3, 2024
Event errors

from habapp.

Comments (6)

spacemanspiff2007 avatar spacemanspiff2007 commented on June 3, 2024

The issue arrises because the switch has the value 0 and 1 instead of ON or OFF.

Invalid value for SwitchItem HSM200LightControlStatus4: 1

Unfortunately I am unfamiliar with the MiOS binding, but I found something with transformations in the documentation.
Have you set it up accordingly? Hope this helps.

BTW, I'm not saying there is anything wrong with your great library, my OH installation has grown over the years, and there is some weird convoluted stuff in there.

No problem, I'd happily fix any bugs or discuss problems/issues.

from habapp.

NickWaterton avatar NickWaterton commented on June 3, 2024

from habapp.

spacemanspiff2007 avatar spacemanspiff2007 commented on June 3, 2024

My understanding is that you just need to create the transformation file (miosSwitchIn.map) and it should work.

1=ON
0=OFF

from habapp.

NickWaterton avatar NickWaterton commented on June 3, 2024

The file miosSwitchIn.map does exist in the transforms directory, its contents are:

1=ON
0=OFF
true=ON
false=OFF
TRUE=ON
FALSE=OFF
yes=ON
no=OFF
YES=ON
NO=OFF

Also interestingly I don't actually use any of those items anywhere - as i say, they were created by a script, that just maps all the Vera configurations to OH items.

I'll try adding {,in:<inTransform>} see if that fixes it.

UPDATE:,
OK, added ,in:MAP(miosSwitchIn.map),out:MAP(miosSwitchOut.map) to the items, I'll see if the error go away.

from habapp.

NickWaterton avatar NickWaterton commented on June 3, 2024

OK, adding that seems to have fixed the issue, no more errors when I trigger the devices (that I don't use anyway).

from habapp.

spacemanspiff2007 avatar spacemanspiff2007 commented on June 3, 2024

Okay, thanks for the feedback!

from habapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.