Code Monkey home page Code Monkey logo

Comments (3)

vseven avatar vseven commented on June 12, 2024 1

The offset is usually done in the DTH:

https://github.com/konnected-io/konnected-security/blob/master/devicetypes/konnected-io/konnected-temperature-humidity-sensor-dht.src/konnected-temperature-humidity-sensor-dht.groovy

You'd modify the "humidity" and "temperature" before it is assigned to the device, lines 69 and 74 from what I can tell. Here is one of my DTH's that I modified from the SmartThings stock one to do just that:

https://github.com/vseven/SmartThings_VSeven/blob/master/devicetypes/vseven/enhanced-smartsense-temp-humidity-sensor.src/enhanced-smartsense-temp-humidity-sensor.groovy

See the "preferences" section and then lines 102 and 108, pretty much says if those preferences are there modify the temp or humidity using them.

from konnected-security.

Tx-ST-Home avatar Tx-ST-Home commented on June 12, 2024

@vseven Thank you for you timely response to my questions. Guess its time for this noob to get some experience in programming with groovy and the use of Github.

Just a quick follow-up would your second handler "enhanced-smartsense-temp-humidity-sensor.groovy" be capable of adjusting the offsets in the SmartApp or do the offsets need to be hard coded into the handler.
Also, while not related to offsets would you have any insights on why the Pin assignment for the DTH device isn't shown in the Konnected Sensor Status as shown in my attached files.

from konnected-security.

vseven avatar vseven commented on June 12, 2024

The preference section I was referring to will let you set the offsets per device. Should be able to copy and paste that over pretty much verbatim. Offset part should also be copy and paste for the most part...maybe a variable name change.

As for the pin assignment I'm not real sure, I've been running Konnected for a while and I'm on a older version of the firmware and smart app without the temp device available. I would make sure you have your smartapp updated.

from konnected-security.

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.