Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support temperature display in F #6

Open
swamplynx opened this issue Aug 21, 2020 · 0 comments
Open

Support temperature display in F #6

swamplynx opened this issue Aug 21, 2020 · 0 comments

Comments

@swamplynx
Copy link

swamplynx commented Aug 21, 2020

For some reason the current code won't support temperature in F. I hacked around this issue with the following code around line 413 in the SA, but I'm sure there is a more graceful way to do it.

` case "temp":

            	def tmp = it.value.toDouble()

            	def tempValue = 9 * (tmp / 5) + 32

            childDevice?.sendEvent(name: "temperature", value: tempValue.round(1) as Integer, unit: "F", , displayed: true)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant