Domoticz Complementary Tool

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.

Moderator: leecollings

Post Reply
mpetra
Posts: 2
Joined: Tuesday 06 December 2016 16:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz Complementary Tool

Post by mpetra »

For those who may be interested I recently started a new project called mydomus. The objective is to provide a complementary tool to domoticz for the installation of sensors at the time not yet present in the official version. The currently developed sensors are: Inverter Aurora Powerone, 123solar web logger, OregonScientific BLE weather station, Arduino generic sensor.
The address of the project is: https://github.com/massimilianopetra/mydomus

I'm available for clarification and support to the development of new sensors. Contributors to the project are welcome!!
Bye,
Massimiliano
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: Domoticz Complementary Tool

Post by emme »

it is REALY interesting the integration on Oregon Scientific BT Weather station!

looks like you just need to configure the BT interface... but I'm unclear on how to pair (but it could be tha I have no clue about how it works :P )
The most dangerous phrase in any language is:
"We always done this way"
mpetra
Posts: 2
Joined: Tuesday 06 December 2016 16:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz Complementary Tool

Post by mpetra »

Hi emme,
the Oregon Scientific Weather Station uses BLE (Bluetooth Low Energy) protocol that in this case doesn't need to be paired. All you need is to configure mydomus (the application) in order to describe your configuration.
I show you my configuration that uses the BAR218HG station:

You should put this code into a file called mydomus.conf in the direcotry /etc/mydomus of your raspberry, it's a JSON file:

Code: Select all

 {
    "DomoticzURL": "http://192.168.1.104:8080/json.htm",
    "DelayLoop": 150,
    "Sensors": {
        "WeatherStation": {
            "Status": "On",
            "Type": "oregonble",
            "Device": "hci0",
            "Name": "IDTW218H",
            "Peripherials": {
            	"Computer Room" : {
            	    "Channel": 0,
            	    "Mode": "THB",
            	    "IDX": 22		    
            	},
            	"Living Room" : {
            	    "Channel": 1,
            	    "Mode": "TH",
            	    "IDX": 23		    
            	},
            	"Attic" : {
            	    "Channel": 2,
            	    "Mode": "T",
            	    "IDX": 24		    
            	}         	
            }
        }                  
    }
}
As you can see the first two item specify the address of your domoticz installation and the delay loop for sampling the weather station temperature.
Follows the Sensors section that specify with the symbolic name WeatherSation how is configured your oregon scientific WS.
In the order:
Status: On or Off to enable disable the sensor
Type: oregonble (specify is an oregonble sensor)
Device: hci0 (the port for your bluetooth dongle)
Name: IDTW218H the bluetooth label of your station (you can find this name with: sudo hcitool lescan )
Follow the Peripherial section that specify each connect oregon scientific sensor with the IDX of domotiv dummy sensor
Mode: the sensor mode; T temperature only, TH temperature humdity, THB temperature humitic barometer

Mydomus uses èython with the bluepy library. You should install it with sudo pip install bluepy.

It's a short tutorial. Let's try if you need help I'm here.
palomino5
Posts: 1
Joined: Monday 27 February 2017 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz Complementary Tool

Post by palomino5 »

Hi!

Thanks for your tool.

I've been using it with my ble oregon weather station and I can get the temperature and humidity, but i've getting some problems sending this data to domoticz. I've seen that the data i'm sending to domiticz api gets an error message.

I suppose that previously I have to create a new device in domoticz? Which kind of device do I have to create? Whice channel do I have to use?

Thanks and regards
Slideoner
Posts: 1
Joined: Saturday 04 March 2017 10:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz Complementary Tool

Post by Slideoner »

Hi,

Thanks Massimiliano for this tool, it works fine for me (it doesn't start as service for now, but I'll get there) with a Raspberry Pi 3 and an Oregon RAR213HG (IDTW213R).
There is a lack of documentation, but it works by looking a bit.
Some things I had to do to make it work :
- pip install pyserial
- pip install flask
- hciconfig hci0 leadv 3
And of course configure the mydomus.conf file

Palomino5, the necessary to add a device is described in the domoticz wiki, here : https://www.domoticz.com/wiki/Domoticz_ ... ual_sensor

Thanks, regards and have fun with this project.
thomasrabbitt
Posts: 1
Joined: Thursday 13 April 2017 11:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz Complementary Tool

Post by thomasrabbitt »

Hi everyone,

Just wondering if you could lend a hand and provide some input. I am very new to Domoticz and would very much like to be able to interface my Oregon BLE temp sensor into it. So far I have installed Domoticz but am a bit confused between Domoticz and mydomus, are they the same thing? I am using a RP3 with debian stretch installed.

Slideoner, are you able to tell me exactly what you did in order to get your system working?

Thanks in advance for your help.
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Domoticz Complementary Tool

Post by remb0 »

Why a new tool and not integrated in the main domoticz branch or you it with the python framework?
libussa
Posts: 1
Joined: Friday 01 December 2017 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz Complementary Tool

Post by libussa »

I see the github project is deleted...Is it possible to access data from Oregon sensors through bluetooth using domoticz?
If I can avoid sending 100€ on an rfxcom...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest