I would also like to know if this is doable on the the Domoticz platform as well
diggs
@diggs
Best posts made by diggs
-
RE: Combined MySensor Gateway with 433Mhz transmitter (HomeEasy/Klik-Aan-Klik-uit)
Latest posts made by diggs
-
Running two gateways side-by-side
Hi all,
Just wondering if it is OK to have two gateways running within range of each other. I have a home system running, but want to build a system for a friend and do the testing at home. That means I will have two gateways (and their nodes) within range of each other when doing the test and build.
I would imagine both gateways will pickup all nodes. Would this cause confusion in the systems?
Thanks for the advice
-
RE: MyController.org
@jkandasa as discussed on chat, but thought I would put the info her as well.
Using one of the 4 USB ports on the PI.
Versions
Linux raspberrypi 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l GNU/Linux
-
RE: MyController.org
@jkandasa I do have an AMA0, but it does not work on that one either. The gateway is definitely connected to ACM0. Which is the one it works on when I have Domoticz connected up.
Something odd is happening with the PI USB side of things. Tried switching to another port but no luck there either.
As a side, I installed on windows and it works fine, so I know the gateway is OK, but I really want it running on the PI at some point
-
RE: MyController.org
@jkandasa Checked my settings and they were already set as per that article, so I don't believe that is the trouble I am facing. From the logs I sent you, anything else you think could be causing the issue. Was the port being opened OK in the system?
-
RE: MyController.org
@davidbd Thanks for the reply.
Yep, can connect to the port and see the node / gateway data in the line.
Still nothing though in the Mycontroller
All my settings seem pretty standard, so not sure what the issue would be or what to check next.
#======================================================================== # MySensors Gateway settings # Select Type of gateway will be used, Only one gateway will be used # Types -> serial, ethernet, mqtt #======================================================================== mcc.ethernet.gateway.type=serial #======================================================================== # MySensors Serial port settings # In this section select: Driver, port name and baud rate # Available drivers -> [pi4j, jssc, jserialcomm, auto] #======================================================================== mcc.serialport.driver.type=auto mcc.serialport.name=/dev/ttyACM0 mcc.serialport.baud.rate=115200 #======================================================================== # MySensors Ethernet Gateway settings # Update host name/ip and port number, Default: 192.168.178.6:5003 # Keep alive check frequency in seconds #======================================================================== mcc.ethernet.gateway.host=192.168.178.6 mcc.ethernet.gateway.port=5003 mcc.ethernet.gateway.keep.alive.frequency=60 #======================================================================== # MySensors MQTT Gateway settings # Update broker host name/ip and port number, Default: 192.168.178.6:1883 # Root topic name of broker # Note: MQTT_TRANSLATE_TYPES will be not supported # Disable MQTT_TRANSLATE_TYPES in your MQTT gateway #======================================================================== mcc.mqtt.gateway.broker.host=192.168.178.6 mcc.mqtt.gateway.broker.port=1883 mcc.mqtt.gateway.broker.root.topic=MyMQTT #======================================================================== # Database # Where do you want to keep your database. # It is highly recommended to take a backup of this db on upgrade. # Database: H2DB, location and name, example:/tmp/mycontroller #======================================================================== mcc.h2db.location=../conf/mycontroller #======================================================================== # Web files, will be located under ../www by default # For web used angularjs #======================================================================== www.file.location=../www/ #======================================================================== # Web Application server configuration # bind.address - interface to bind. 0.0.0.0 - all available interfaces # You can use either http or https, enable.https - https is enabled # if https is enabled specify keystore file details # It is highly recommended to use https also change default keystore file #======================================================================== bind.address=0.0.0.0 enable.https=true http.port=8443 ssl.keystore.file=../conf/keystore.jks ssl.keystore.password=password ssl.keystore.type=JKS #logger configuration - logback.xml
-
RE: MyController.org
@jkandasa Thanks
Have now done all that. Stopped the Domoticz server, started Mycontroller. I get the webpage up now, but still no nodes showing up and for some reason nothing is being written to my logs the past few hours at all.
What can I look at?
-
RE: MyController.org
@jkandasa Thanks for that.
The latest Java version has go me going as far as server access goes, but I am having issues opening the serial port it seems.
I am trying to run in parallel with Domoticz, but I maybe having an issue trying to access the same port I am guess.
Suggestions on how to get around that?
2015-09-27 15:45:16,568 ERROR [main] [org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl:68] Failed to load serial port, java.io.IOException: Unable to open the serial port/device. (Error #2) at com.pi4j.jni.Serial.open(Native Method) ~[mycontroller-standalone-0.0.2-alpha4-single.jar:na] at com.pi4j.io.serial.impl.SerialImpl.open(SerialImpl.java:151) ~[mycontroller-standalone-0.0.2-alpha4-single.jar:na] at com.pi4j.io.serial.impl.SerialImpl.open(SerialImpl.java:242) ~[mycontroller-standalone-0.0.2-alpha4-single.jar:na] at org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl.initialize(SerialPortPi4jImpl.java:61) [mycontroller-standalone-0.0.2-alpha4-single.jar:na] at org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl.<init>(SerialPortPi4jImpl.java:40) [mycontroller-standalone-0.0.2-alpha4-single.jar:na] at org.mycontroller.standalone.StartApp.startServices(StartApp.java:217) [mycontroller-standalone-0.0.2-alpha4-single.jar:na] at org.mycontroller.standalone.StartApp.main(StartApp.java:78) [mycontroller-standalone-0.0.2-alpha4-single.jar:na] 2015-09-27 15:45:16,646 INFO [main] [org.mycontroller.standalone.db.TimerUtils:144] Updated Time:[SunRise:Sun Sep 27 10:36:00 AEST 2015, SunSet:Sun Sep 27 22:41:00 AEST 2015], City:[latitude:11.2333, longit$ [Sun Sep 27 15:45:21 AEST 2015] TJWS httpd 0.0.0.0 - [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,localport=8443]] is listening.