tommy1
November 17, 2020, 7:18pm
1
Hi all
Would love to get my North Q power meter working with hubitat. It is a logging power meter with an optical eye to read the LED flashes from a power meter.
I am not able to find any drivers.
I am not a coder, I got the basic understanding, but must admit the job of creating a driver for hubitat probably will defeat those skills
I am not able to include links, but google NothQ NQ-9021 manual to see the documentation.
How impossible will it be to make a driver for hubitat?
Regards Tommy Fer / Denmark
Well, there is a working Groovy driver for SmartThings that should be a rather straightforward port to Hubitat:
First implementation of device handler for the NorthQ Q-Power meter. Homepage for the product: http://northq.com/qpower/ See the comment on the handler for links to further details. Not all options are implemented yet but: Option is set to...
Reading time: 1 mins ๐
Likes: 3 โค
Here is a direct link to the code:
/**
* Copyright 2015 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
*
* Z-Wave alliance device page: http://products.z-wavealliance.org/products/69
* Device homepage: http://northq.com/qpower/
* Technical specification: https://doc.eedomus.com/files/northq_nq-92021_manuel_us.pdf
*
*/
metadata {
definition(name: "NorthQ Q-Power", namespace: "smartthings.f12.no", author: "Anders Sveen <anders@f12.no>") {
This file has been truncated. show original
1 Like
A newer modified version with tiles removed
Here's a link to the driver on my Github
2 Likes
I believe that the tiles section needs to be deleted also.
Maybe but I'd like to have him try it first before I go ripping apart the driver. For me it's a lot easier to remove stuff than to add to it.
I use this post as a guide but the least effort attempt before going and tweaking everything...
I thought I'd jot down a few of the driver porting changes I've encountered. Please add additional ones you find to this list.
Replace physicalgraph with hubitat
Replace variables beginning with data with device.data
Add to params calls that give a java error the following before headers:
requestContentType: "application/json",
Replace pause(int) with pauseExecution(long) (units are milliseconds)
include โasynchttp_v1โ is not supported - comment this out and replace affected code with synโฆ
Should be good with that second one. I don't see anything else out of the ordinary going on in the driver.
1 Like
Tommy, let us know how it goes. And welcome to the Hubitat community!
1 Like
@tommy1 , any luck in getting this working? I've got my eye on one of these devices, and was wondering if I'm likely to have any joy with it.....
I pasted the line numbers on the previous version with the tiles removed. The current post on my Github should work though.
thanks @lewis.heidrick , i'll take a look and see how I get on.
I've actually bought a NorthQ gas meter rather, not a power meter. However I'd seen in the Smartthings forum that someone had relatively easily adapted the driver for the power meter to the gas meter - they are essentially the same device from what i can see. So I'm hoping to start with a working power meter driver and go from there.....
Yea, should be pretty easy.
system
Closed
September 22, 2022, 5:16pm
13
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.