π¬ MYSController
-
Absolutely great work! Just discovering the extent of the work done with mysensors. Amazing. Thanks
-
Hello, is it possible to do FOTA updates from a desktop while the main gateway is connected to an openhab server on RPI3? Or do i have to replug my gateway between RPI3 en desktop every time i want to do an update?
-
Hello, is it possible to do FOTA updates from a desktop while the main gateway is connected to an openhab server on RPI3? Or do i have to replug my gateway between RPI3 en desktop every time i want to do an update?
@jimmy-loyens What I do in order to have multiple controllers is to make a ethernet-mqtt gateway on an Arduino Uno.
That way I can use OpenHAB, try other controllers and also use mycontroller.org to do node management and FOTA.
I think that there is no other way.
-
@jimmy-loyens What I do in order to have multiple controllers is to make a ethernet-mqtt gateway on an Arduino Uno.
That way I can use OpenHAB, try other controllers and also use mycontroller.org to do node management and FOTA.
I think that there is no other way.
@guillermo-schimmel hi, thanks for your response. "Set up a ethernet mqqt gateway" could you elaborate on this? I'm quite competent with arduino, but i'm still learning about mqtt as i go. I have managed to setup mosquitto on my openhab server thoug. Do you mean let openhab send mqtt messages to the ethernet mysensors gateway and thus making it possible to connect MYSController to the ip of the mysensors ethernet gateway? Do you know of some example code? I know there is an example of an ethernet gateway but can it allso handle mqtt by default? Thanks
-
@guillermo-schimmel hi, thanks for your response. "Set up a ethernet mqqt gateway" could you elaborate on this? I'm quite competent with arduino, but i'm still learning about mqtt as i go. I have managed to setup mosquitto on my openhab server thoug. Do you mean let openhab send mqtt messages to the ethernet mysensors gateway and thus making it possible to connect MYSController to the ip of the mysensors ethernet gateway? Do you know of some example code? I know there is an example of an ethernet gateway but can it allso handle mqtt by default? Thanks
@jimmy-loyens ok, i did some reading and i think i just need to build the mqtt gateway (is this correct?). Do you hava an example of how to interface a mqtt gateway to openhab? I suppose this would be quite different to a serial gateway. Thanks
-
@jimmy-loyens ok, i did some reading and i think i just need to build the mqtt gateway (is this correct?). Do you hava an example of how to interface a mqtt gateway to openhab? I suppose this would be quite different to a serial gateway. Thanks
@jimmy-loyens Yes the mqtt gateway is very simple, just use some arduino+nrf4+ethernet.
There is a simple sketch for that.
In order to connect to openhab you should use openhab 2.4 and the mysensors (unofficial) binding. If you are on an older openhab you can just use the mqtt 1.x binding.
I did a post a few weeks ago. I'll try to find it for you.
-
@jimmy-loyens Yes the mqtt gateway is very simple, just use some arduino+nrf4+ethernet.
There is a simple sketch for that.
In order to connect to openhab you should use openhab 2.4 and the mysensors (unofficial) binding. If you are on an older openhab you can just use the mqtt 1.x binding.
I did a post a few weeks ago. I'll try to find it for you.
@guillermo-schimmel Here you have some openhab+mqtt+mysensors examples
-
@guillermo-schimmel Here you have some openhab+mqtt+mysensors examples
@guillermo-schimmel thanks, seems i have an ethernet shiel + spare uno lying around. I will give it a go. Is the mysensors binding compattible with custom nodes i written my own code for? Wich metod is less work to reprogram my openhab? I'm asking because my openhab is quite elaborate. I have a few 100 items and about 80 mylight sensors plugged in to openhab π right now (serial gateway) they all enter openhab via 1 rule with a large hashmap. If i understand correctly i have to create a thing for each sensor and link each item to the channel of this thing. Got a lot of work to doππ
-
@guillermo-schimmel thanks, seems i have an ethernet shiel + spare uno lying around. I will give it a go. Is the mysensors binding compattible with custom nodes i written my own code for? Wich metod is less work to reprogram my openhab? I'm asking because my openhab is quite elaborate. I have a few 100 items and about 80 mylight sensors plugged in to openhab π right now (serial gateway) they all enter openhab via 1 rule with a large hashmap. If i understand correctly i have to create a thing for each sensor and link each item to the channel of this thing. Got a lot of work to doππ
@jimmy-loyens i use a mosquitto broker to get messages from my esp milight hub in openhab. Can i use this same broker with different topic? I beleive openhab uses mqtt binding for this. Sorry still got a lot to learn about mqttπ€
-
@jimmy-loyens i use a mosquitto broker to get messages from my esp milight hub in openhab. Can i use this same broker with different topic? I beleive openhab uses mqtt binding for this. Sorry still got a lot to learn about mqttπ€
@jimmy-loyens Yes, use the same broker for everything.
-
@guillermo-schimmel thanks, seems i have an ethernet shiel + spare uno lying around. I will give it a go. Is the mysensors binding compattible with custom nodes i written my own code for? Wich metod is less work to reprogram my openhab? I'm asking because my openhab is quite elaborate. I have a few 100 items and about 80 mylight sensors plugged in to openhab π right now (serial gateway) they all enter openhab via 1 rule with a large hashmap. If i understand correctly i have to create a thing for each sensor and link each item to the channel of this thing. Got a lot of work to doππ
@jimmy-loyens said in π¬ MYSController:
@guillermo-schimmel thanks, seems i have an ethernet shiel + spare uno lying around. I will give it a go.
Same setup here.
Is the mysensors binding compattible with custom nodes i written my own code for? Wich metod is less work to reprogram my openhab? I'm asking because my openhab is quite elaborate. I have a few 100 items and about 80 mylight sensors plugged in to openhab π right now (serial gateway) they all enter openhab via 1 rule with a large hashmap.
Yes, it supports custom nodes.
If i understand correctly i have to create a thing for each sensor and link each item to the channel of this thing. Got a lot of work to doππ
Yes, but if you do it in text files it's not that bad.
-
Ok, thanks for all your help! I'll get started this weekend with the mysensors binding approach. π€
-
@jimmy-loyens said in π¬ MYSController:
@guillermo-schimmel thanks, seems i have an ethernet shiel + spare uno lying around. I will give it a go.
Same setup here.
Is the mysensors binding compattible with custom nodes i written my own code for? Wich metod is less work to reprogram my openhab? I'm asking because my openhab is quite elaborate. I have a few 100 items and about 80 mylight sensors plugged in to openhab π right now (serial gateway) they all enter openhab via 1 rule with a large hashmap.
Yes, it supports custom nodes.
If i understand correctly i have to create a thing for each sensor and link each item to the channel of this thing. Got a lot of work to doππ
Yes, but if you do it in text files it's not that bad.
@guillermo-schimmel hi, when i look under mysensors binding in openhab paperui i only see things for serial gw & ethernet gw but not for mqtt gateway. Am i supposed to build a ethernet gw or is mqtt gw allso supported? Just asking to know wich firmware to flash since hw is the same. Thanks
-
@guillermo-schimmel hi, when i look under mysensors binding in openhab paperui i only see things for serial gw & ethernet gw but not for mqtt gateway. Am i supposed to build a ethernet gw or is mqtt gw allso supported? Just asking to know wich firmware to flash since hw is the same. Thanks
@jimmy-loyens You have to build an mqtt gateway. On the hardware side it is identical to the ethernet gateway.
There is another sketch for it though:
https://www.mysensors.org/build/mqtt_gateway
It is very easy.
Please let me know it if works. I really like the openhab+mqtt+mysensors combination, I think that eventually there will be a lot of us here.
-
@jimmy-loyens You have to build an mqtt gateway. On the hardware side it is identical to the ethernet gateway.
There is another sketch for it though:
https://www.mysensors.org/build/mqtt_gateway
It is very easy.
Please let me know it if works. I really like the openhab+mqtt+mysensors combination, I think that eventually there will be a lot of us here.
@guillermo-schimmel I have been looking at the mysensors binding this evening (see my posts here: https://forum.mysensors.org/topic/7176/openhab-2-2-binding/118), but at first sight i cant get it working (i cant find a lot of clear documentation on the binding either) so i'm leaning more to the MQTT-binding approach right now. I will be exploring this route tomorrow. allready reflashed the gateway with MQTT-firmware
-
@guillermo-schimmel I have been looking at the mysensors binding this evening (see my posts here: https://forum.mysensors.org/topic/7176/openhab-2-2-binding/118), but at first sight i cant get it working (i cant find a lot of clear documentation on the binding either) so i'm leaning more to the MQTT-binding approach right now. I will be exploring this route tomorrow. allready reflashed the gateway with MQTT-firmware
@jimmy-loyens do you use the mysensors-binding in openhab or the mqtt-binding (or a combination of the two)
-
@jimmy-loyens do you use the mysensors-binding in openhab or the mqtt-binding (or a combination of the two)
@jimmy-loyens I use the openHAB-mysensors 2.3 binding.
But if you are unsure your mysensors setup works, itβs reasonable to start with mqtt binding and then migrate. Lots of moving parts.
I have posted here my own files for your reference.