Best and easiest way to use RFXtrx433E and UZB1 over network?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by Evelen »

Hi.

I have always used Domoticz on a virtual machine using ESXi 5.5, and Ubuntu server as guest OS for Domoticz.
For RFXtrx433E and UZB1 I have used a USB Passthrough Device in ESXi to connect it to the virtual machine.
It is not wary stable, and now I also have moved to a new physical server with ESXi 6.5, and this iss even worse.
The RFXtrx433E works ok, but i get a lot of timeouts with the UZB1. But that's not all, USB Passthrough in the new ESXi is just full of problems like this:
https://labs.vmware.com/flings/esxi-emb ... t/bugs/116
and this:
https://kb.vmware.com/selfservice/micro ... Id=2068645


So, I want to use this devices over network.
A user on another forum recommended Minibian OS on a Raspberry Pi with Ser2Net
http://ser2net.sourceforge.net/

But he use HomeSeer, how will this work for Domoticz?
And how do I set it up?
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by stlaha2007 »

I can agree with the ser2net option.
Using this myself for the rftrx433e.

Install a pi with a debian-like version. Raspbian or other.
After that do a sudo apt-get update and upgrade.
Do a sudo apt-get install ser2net.

Search for the internet to assign permanent names to usb-serial evices. And apply it.

Then assign the dedicated usbports in ser2net.conf with raw and 112500 as com-speed (look at the supplied examples and man ser2net)

in domoticz simply change rfxtrx433e hardware to the rfx-lan and the ipaddress.

How about the UZB1, dont know, but simular way i think. If it has some network hardware in domoticz.

It saves you from redetecting all devices/sensors ;-)
SweetPants

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by SweetPants »

second RPi with domoticz als a slave server?
b_weijenberg
Posts: 521
Joined: Friday 12 July 2013 18:13
Target OS: -
Domoticz version:
Location: Netherlands
Contact:

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by b_weijenberg »

RFX-433, RFX-433EMC, RFX-868
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by Evelen »

thans for info :)
Maybe I by a rpi today

But how can I add the UZB1? can only se a network share alternative for rfxtrx
feil.png
feil.png (125.86 KiB) Viewed 3711 times
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by Evelen »

okey, i got RFXTRX working with the LAN interface option.

That kind of option don't exist for UZB1 I see.
So, how do I do this?
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by stlaha2007 »

Tried to find some info to convert your serial 2 net and reconvert back to a 'virtual' usb device.

Sorry for now, but it seems impossible (to me for now).

In your case, i think its better to export/backup your database.
Install RPi with Domoticz and restore the backup.
Modify the settings so RFX and Zwave are available again.

Share your devices so Main domoticz can get them.

On your main domoticz add hardware remote domoticz.

Add new devices (the ones now shared on RPi domoticz) and replace the existing (leftover) your previous devices. This will save the history from temp/hum/baro devices ;-) pn your main.

If all done then the disable hardware rfx and zwave should have any devices left (setup/devices filter on hardware name) and the you can delete the hardware Rfx and Zwave from Main Domoticz.
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by Evelen »

stlaha2007 wrote:Tried to find some info to convert your serial 2 net and reconvert back to a 'virtual' usb device.

Sorry for now, but it seems impossible (to me for now).

In your case, i think its better to export/backup your database.
Install RPi with Domoticz and restore the backup.
Modify the settings so RFX and Zwave are available again.

Share your devices so Main domoticz can get them.

On your main domoticz add hardware remote domoticz.

Add new devices (the ones now shared on RPi domoticz) and replace the existing (leftover) your previous devices. This will save the history from temp/hum/baro devices ;-) pn your main.

If all done then the disable hardware rfx and zwave should have any devices left (setup/devices filter on hardware name) and the you can delete the hardware Rfx and Zwave from Main Domoticz.
hi and thanks for your replay :)
I am "one step closer": viewtopic.php?f=47&t=15589

Anyway.
If i make a domoticz-slave, then i allways must have the same domoticz version on the Pi and the main server?
also, Must I use the slave device to add new devices?
it seems really a bit messy to run two domoticz servers for this?
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by stlaha2007 »

Domoticz versions are best kept the same or real close.

Sharing means you enable/activate/install the device twice. First the device must be made available on the domo-server, then enable sharing, share that devices (hardware support IS NEEDED, NOT Virtual).

Then after sharing, its becomes available as a new devices, and then you can install/activate/enable that device there.

Its easier then it looks, believe me. Have a few setup through the house, with 1 main.
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by Evelen »

stlaha2007 wrote:Domoticz versions are best kept the same or real close.

Sharing means you enable/activate/install the device twice. First the device must be made available on the domo-server, then enable sharing, share that devices (hardware support IS NEEDED, NOT Virtual).

Then after sharing, its becomes available as a new devices, and then you can install/activate/enable that device there.

Its easier then it looks, believe me. Have a few setup through the house, with 1 main.
Hi.
when you say "devices", do you men like "UZB1 and RFXtrx433E" or like "Door sensor and bedrom_light"?
Also what do you mean by "hardware support IS NEEDED, NOT Virtual". Do i Ned OpenZWave on master domo ect?

I read this article: http://www.domoticz.com/wiki/Setting_up_Device_sharing and it says "Here you can specify the devices you want this slave to share (no selected devices for this User means all).
Do this on both slaves." (this means I only need to add devices two times?)
"You should now receive device/sensors from Slave1 and Slave2 in your master Domoticz. Give it some time to collect all data."

appreciate your responses, I may just try this type of master and slave setup.

Also: is It a problem if i run different operating systems on master and slave?
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by stlaha2007 »

Devices are the sensors and switches.
Hardware is RPi/UZB1/Trx433.

In your case read Supported/Not Supported this way:
Domoticz has a Hardware type like the ttrx433, and device type like temp/doorsensor.
Sharing works only on devices which are available as hardware. So if you made a dummy switch/sensor through Dummy Hardware, that will Not be shared (learned it the hard way).
Eg. BME280 i have is not supported and i had to feed a dummy temp/hum/baro-sensor which was never shared.

I have only RPis setup for now, thinking of turning one into VM. As far as i know its software which needs some sort of OS. I remembered that some one used windows and setup a slave on RPi and finally switched over completly, mainly because of scripting support on Windows was hard to get it working.
Simply any Linux-like OS would be your best choice to get Domoticz software running and have a lot of scripts also available to you.
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by Evelen »

aha, thanks for info :)

But i found a solution to my problem
bought a USB controller and used passtrought to the PCI-card in vSphire web client
http://www.unitek-products.com/en/produ ... .php?id=81
works with no problems for 2-3h now :)
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by stlaha2007 »

Pci-passthrough works better.
However it also depends on the hypervisor support for it.

I guess its your home-lab. I never rely on these methodes for datacenters ;-)
My opinion: Just search for nativly supported hardware or available through ip-networks.
Eg com-2-net (mainly ser2net hardware implementations)
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Best and easiest way to use RFXtrx433E and UZB1 over network?

Post by Evelen »

Yepp, home-lab :)
still works perfect with 0 errors in log after 24h
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest