Best choise for a controller
-
Thank you for your tip, unfortunately there are quite a few costs such as import duties .....
In the end I want to switch to a complete system, but after an afternoon of serving around I no longer know what I should and should not take .......
There is just a little too much choice in everything, and I don't want to take a risk with a second hand from a private person who might be broken or something.I think I'll start with the Pi4 for the time being, and add an SSD once.
@dzjr Perhaps SSD has moved on in $ and reliability since last I looked, but don't dismiss HDD so lightly, they may be old gen technology but are cheap and WAY faster than anything you'll ever need..
-
I myself never got any problems with SD cards in my Pi's, but to ensure none of such will happen I've bought high endurance microSD from Samsung that costs about 3 times the price of a normal microSD card of the same brand and speed. They are designed to withstand continuous write for a warranty period. They are often used for onboard cameras and other surveillance equipment.
As for controller I highly recommend Home Assistant. It seems to be the most developed and highly supported platform with the biggest community and the widest customizability. I still use Domoticz at home, but currently finishing install of a system based on Home Assistant at my friend's home. After I've looked deeper into HA I am going to migrate my own home automation to it too.
If you have any network storage at home I would suggest you set up rsync to backup your config daily. HA can be installed like a Docker image, and it keeps all your config and custom installed modules/scripts/themes/etc in one folder, so it can be easily backed up and/or migrated to another system if needed.
In the latest versions they added ability to make most of the configs within web UI, though configuring with config YAML files is pretty straight forward and almost every option you would need is described in a vast and well organized documentation. -
@rejoe2 I had never looked at FHEM myself, I will certainly do so.
As a server, I also received a tip to use an Intel nuc instead of a Pi.
@dzjr said in Best choise for a controller:
@rejoe2 I had never looked at FHEM myself, I will certainly do so.
As a server, I also received a tip to use an Intel nuc instead of a Pi.
Have a look at Linux compability first when looking for Intel NUC. My HA system runs on a ThinClient platform from hp. Consumes slightly more than a Pi or newer NUC, but only costs around the same as a new Pi.
Wrt. to what @monte said about Home Assistant: Comparing is not really easy, as one can focus on different things, but most likely FHEM might stand the test, especially if you focus on hardware integration and automation (but to be honest: Perl on which FHEM is based is "special" and seems to be no longer "a la mode").
If you are able to read German, you can find some infos on FHEM compared to OpenHAB and IOBroker here - there's also some few remarks from users with HASS experience (most of them highlight the shiny UI of HASS, and there are also some FHEM users going for FHEM for automation tasks and hardware interfacing and HASS as UI). -
@dzjr said in Best choise for a controller:
@rejoe2 I had never looked at FHEM myself, I will certainly do so.
As a server, I also received a tip to use an Intel nuc instead of a Pi.
Have a look at Linux compability first when looking for Intel NUC. My HA system runs on a ThinClient platform from hp. Consumes slightly more than a Pi or newer NUC, but only costs around the same as a new Pi.
Wrt. to what @monte said about Home Assistant: Comparing is not really easy, as one can focus on different things, but most likely FHEM might stand the test, especially if you focus on hardware integration and automation (but to be honest: Perl on which FHEM is based is "special" and seems to be no longer "a la mode").
If you are able to read German, you can find some infos on FHEM compared to OpenHAB and IOBroker here - there's also some few remarks from users with HASS experience (most of them highlight the shiny UI of HASS, and there are also some FHEM users going for FHEM for automation tasks and hardware interfacing and HASS as UI).@rejoe2 but is there anything that FHEM supports and HA doesn't?
Also keep in mind ongoing development in contrary to others (over 70 releases on github this year alone). For example google pulled off "works with nest" API, so many users can't use their thermostats with 3rd party software, but one of HA users made a simple dirty hack which makes it possible to integrate your nest thermostat for now, until google will release their new API for users.
Also HA is written in python which makes it pretty easy to fix any issues or add new features. -
Friends,
I ordered a mini PC anyway, and am going to try both HA and FHEM (maybe with a virtual OS), in addition to my current Domoticz system for the time being, and then see what works best for my situation.
What I had forgotten to say is that I will also use the controller to control the garden irrigation, of which I control the water valves and read the sensors with Mysensors, so I will certainly include the ease of scripting.
-
I have been using Domoticz (currently 4.10717) for a few years and it has always very stable except sometimes when the trouble is introduced by my mistakes. If you are satisfied with Domoticz, except for the current stability, I suggest it is something you can correct. Changing to another controller will be a lot of work.
I have had very good stability with Domoticz on rPI first, now on a basic Intel NUC running Ubuntu with SDD drive which is of course much faster.
Of course hardware trouble on the device running Domoticz is possible. I suggest using fastest, best quality hardware & SD card for your controller. Other software running on the same Pi might be causing your problem rather than Domoticz.
You can probably get better help debugging Domoticz on their forum.
A few ideas:
- Have you reviewed the Domoticz logs to identify any issues?
- I wonder why you are running two separate Domoticz controllers, and if a conflict could be causing problems? It may be easy for you to test by removing your second controller for a while.
Good luck!
-
Another option would be to run the controller on a virtual machine, which gives you a lot of conveniences. The usual scenario would be if you have, say, a vmware capable fileserver that's always on anyway, then adding a separate vm on it for your mysensors controller costs you nothing.
-
@grubstake Yes I know that building a new controller is a lot of work, but yes I prefer not to run beta anymore, and I understood that from stable to beta would not be a problem, but from beta to stable is very complicated, that's why I want to start again ...
The only thing I would like to take with me is the historical sensor data of certain (weather) sensors.
I have the second controller running because if I also run the second mysensors gateway on the first controller the controller crashes very quickly (every 3 to 4 hours), and then I have already completely disabled the modbus plugin.
I have searched on the domoticz forum, there is a call that the database is corrupt, but the SD card issue sounds more plausible to me afterwards.I'm going to try if I can run multiple virtual controllers on the new controller PC so that I can test it next to each other.
-
Another option would be to run the controller on a virtual machine, which gives you a lot of conveniences. The usual scenario would be if you have, say, a vmware capable fileserver that's always on anyway, then adding a separate vm on it for your mysensors controller costs you nothing.
-
@neverdie
Thank you for thinking along, I appreciate that!I already planned to build a virtual machine so that I could test / try several controllers next to each other.
@dzjr The ideal scenario, which may not fit your budget, would be a supermicro motherboard and an intel CPU that specifically supports virtual machines. Marry that to a capable UPS, and you'd have a commercial grade solution that would be rock solid and yet easy to maintain, even remotely. This way you have only one machine that needs backups, you need only one UPS, and the speed will likely be lightning fast. It probably only makes sense though in a scenario where you have other programs (file server, security cameras, or whatever) running 24/7 anyway. But if that's you, it's worth looking into.
-
@dzjr The ideal scenario, which may not fit your budget, would be a supermicro motherboard and an intel CPU that specifically supports virtual machines. Marry that to a capable UPS, and you'd have a commercial grade solution that would be rock solid and yet easy to maintain, even remotely. This way you have only one machine that needs backups, you need only one UPS, and the speed will likely be lightning fast. It probably only makes sense though in a scenario where you have other programs (file server, security cameras, or whatever) running 24/7 anyway. But if that's you, it's worth looking into.
@neverdie but isn't Docker more efficient and simple solution compared to a VM? Considering it will be used for single process anyway.
I have a combination of VM's, Docker and dedicated RPi's in my system and I learned that Docker has very little overhead compared to VM and has greater flexibility when it comes to backups, restores especially if there is ready to use image in the repository. -
@neverdie but isn't Docker more efficient and simple solution compared to a VM? Considering it will be used for single process anyway.
I have a combination of VM's, Docker and dedicated RPi's in my system and I learned that Docker has very little overhead compared to VM and has greater flexibility when it comes to backups, restores especially if there is ready to use image in the repository. -
@rejoe2 but is there anything that FHEM supports and HA doesn't?
Also keep in mind ongoing development in contrary to others (over 70 releases on github this year alone). For example google pulled off "works with nest" API, so many users can't use their thermostats with 3rd party software, but one of HA users made a simple dirty hack which makes it possible to integrate your nest thermostat for now, until google will release their new API for users.
Also HA is written in python which makes it pretty easy to fix any issues or add new features.@monte said in Best choise for a controller:
@rejoe2 but is there anything that FHEM supports and HA doesn't?
As I'm not familiar with HA, it's rather hard to give a valid answer to this question. As already mentionned, FHEM is strong in hardware integration, so eg. SOMFY shutters might be an example. In general, FHEM gives the option to run a cloudfree HA system, so the need for external (especially google) software to steer some thermostats rather sounds ridiculous to me - FHEM especially is able to control Z-Wave, EnOcean, MAX and HomeMatic (not "-IP") hardware with just an USB dongle for each of these wireless protocolls; my ZigBee installation just uses some piece of software running on the same server hardware and also an USB dongle.
Also FHEM provides some modules for "easy" configuration of typical HA tasks like shutters control (taking into account a lot of stuff like sunrise/sunset, internal/external temperatures, shading needs, individual's presence...) or heating control. Don't know what HA provides in that direction, though.
Also keep in mind ongoing development in contrary to others (over 70 releases on github this year alone). For example google pulled off "works with nest" API, so many users can't use their thermostats with 3rd party software, but one of HA users made a simple dirty hack which makes it possible to integrate your nest thermostat for now, until google will release their new API for users.
FHEM is also under ongoing development, but follows a different release strategy, it's more like a perpetual beta, so updates can not be counted in "releases". If you install the current debian package with release 5.9 and do an update (from within FHEM), you will get around 2.000 commits applied since the release of 5.9 and still be on feature level 5.9. Additionally to mentionned that: the most of the commits not affecting the core part, which is rather stable.
If you opt for the docker version, you will get an up-to date system just from the first second.Also HA is written in python which makes it pretty easy to fix any issues or add new features.
Python might be more common than Perl these days, but wrt. to that point there's no further significant difference between the two.
Wrt. to bugfixing and reaction to changes "to the outer world" also an example: When yahoo closed down it's weather service (afaik, they didn't prewarn), it took around 4 weeks until there was a different solution provided - without need to do a lot of changes for those users who used the data within their FHEM installations - they had e.g. just to get a key from darksky and change the data source (but internally the code structure had been rebased to be much more flexible for the future).
-
@monte said in Best choise for a controller:
@rejoe2 but is there anything that FHEM supports and HA doesn't?
As I'm not familiar with HA, it's rather hard to give a valid answer to this question. As already mentionned, FHEM is strong in hardware integration, so eg. SOMFY shutters might be an example. In general, FHEM gives the option to run a cloudfree HA system, so the need for external (especially google) software to steer some thermostats rather sounds ridiculous to me - FHEM especially is able to control Z-Wave, EnOcean, MAX and HomeMatic (not "-IP") hardware with just an USB dongle for each of these wireless protocolls; my ZigBee installation just uses some piece of software running on the same server hardware and also an USB dongle.
Also FHEM provides some modules for "easy" configuration of typical HA tasks like shutters control (taking into account a lot of stuff like sunrise/sunset, internal/external temperatures, shading needs, individual's presence...) or heating control. Don't know what HA provides in that direction, though.
Also keep in mind ongoing development in contrary to others (over 70 releases on github this year alone). For example google pulled off "works with nest" API, so many users can't use their thermostats with 3rd party software, but one of HA users made a simple dirty hack which makes it possible to integrate your nest thermostat for now, until google will release their new API for users.
FHEM is also under ongoing development, but follows a different release strategy, it's more like a perpetual beta, so updates can not be counted in "releases". If you install the current debian package with release 5.9 and do an update (from within FHEM), you will get around 2.000 commits applied since the release of 5.9 and still be on feature level 5.9. Additionally to mentionned that: the most of the commits not affecting the core part, which is rather stable.
If you opt for the docker version, you will get an up-to date system just from the first second.Also HA is written in python which makes it pretty easy to fix any issues or add new features.
Python might be more common than Perl these days, but wrt. to that point there's no further significant difference between the two.
Wrt. to bugfixing and reaction to changes "to the outer world" also an example: When yahoo closed down it's weather service (afaik, they didn't prewarn), it took around 4 weeks until there was a different solution provided - without need to do a lot of changes for those users who used the data within their FHEM installations - they had e.g. just to get a key from darksky and change the data source (but internally the code structure had been rebased to be much more flexible for the future).
@rejoe2 that's exactly what I am talking about. HA is "cloudfree" home automation system. You can run everything locally without any connection to the internet, unless you want to use something that works ONLY via web API like google nest.
I suggest you take a look at this list https://www.home-assistant.io/integrations/. HA works with dongles and local gateways if they are available, it even has KNX integration which was crucial for one of my projects. -
@monte
OK, so let's concluse: FHEM and HA seem to have at about the same functionality - FHEM amongst others also supports KNX.
It's up to the TE (and whoever may read this in the future) to decide what to prefer - I'll stick to FHEM which I'm now pretty familiar with... -
I have the new server running with VirtualBox from Oracle as a virtual machine host.
Luckily I found an explanation via google to install hassio via VirtualBox, it was a bit more work than I had expected to build the server ...
I also have FHEM running on a Virtual machine, and to be honest it is not what I am looking for, among other things FHEM does not see the sensor names in the presentation, so this will all have to be set manually, and further I saw that you have to set a lot by hand.
Now that is not a problem, but compared to another controller that is a downside I think, but I am probably going too short.I also run Home Assistant, although I had a considerable crash, so I reinstalled the hassio.
I think H-A is pretty powerful, many integrations, as HA saw Ikea lamps and Sonos at the same time.I have already added a MySensors gateway (the test gateway on my desk) but I did not immediately see the sensors appear in HA, so that is something I have to figure out.
At the moment I am still in doubt between Domoticz and HA, where Domoticz has the advantage that the MySensors sensors can be added very easily by setting it in the hardware menu and then you can also monitor them immediately.
However, I find the coarse web interface of domoticz a little less.If I completely switch to HA, then really not until I have thoroughly immersed myself in it, so a lot of reading work ...
dzjr
-
I have the new server running with VirtualBox from Oracle as a virtual machine host.
Luckily I found an explanation via google to install hassio via VirtualBox, it was a bit more work than I had expected to build the server ...
I also have FHEM running on a Virtual machine, and to be honest it is not what I am looking for, among other things FHEM does not see the sensor names in the presentation, so this will all have to be set manually, and further I saw that you have to set a lot by hand.
Now that is not a problem, but compared to another controller that is a downside I think, but I am probably going too short.I also run Home Assistant, although I had a considerable crash, so I reinstalled the hassio.
I think H-A is pretty powerful, many integrations, as HA saw Ikea lamps and Sonos at the same time.I have already added a MySensors gateway (the test gateway on my desk) but I did not immediately see the sensors appear in HA, so that is something I have to figure out.
At the moment I am still in doubt between Domoticz and HA, where Domoticz has the advantage that the MySensors sensors can be added very easily by setting it in the hardware menu and then you can also monitor them immediately.
However, I find the coarse web interface of domoticz a little less.If I completely switch to HA, then really not until I have thoroughly immersed myself in it, so a lot of reading work ...
dzjr
@dzjr said in Best choise for a controller:
I have already added a MySensors gateway (the test gateway on my desk) but I did not immediately see the sensors appear in HA
Pay attention to "Presentation" paragraph. "Send at least one initial value per V_TYPE. In version 2.x of MySensors, this has to be done in the loop function." And there is example code below. I had the same problem when first tried HA with Mysensors.
I used Domoticz for 4 years and I like how everything is configurable through web UI, but lack of development and lack of deep customizations made me looking forward to switch to HA.
-
I have the new server running with VirtualBox from Oracle as a virtual machine host.
Luckily I found an explanation via google to install hassio via VirtualBox, it was a bit more work than I had expected to build the server ...
I also have FHEM running on a Virtual machine, and to be honest it is not what I am looking for, among other things FHEM does not see the sensor names in the presentation, so this will all have to be set manually, and further I saw that you have to set a lot by hand.
Now that is not a problem, but compared to another controller that is a downside I think, but I am probably going too short.I also run Home Assistant, although I had a considerable crash, so I reinstalled the hassio.
I think H-A is pretty powerful, many integrations, as HA saw Ikea lamps and Sonos at the same time.I have already added a MySensors gateway (the test gateway on my desk) but I did not immediately see the sensors appear in HA, so that is something I have to figure out.
At the moment I am still in doubt between Domoticz and HA, where Domoticz has the advantage that the MySensors sensors can be added very easily by setting it in the hardware menu and then you can also monitor them immediately.
However, I find the coarse web interface of domoticz a little less.If I completely switch to HA, then really not until I have thoroughly immersed myself in it, so a lot of reading work ...
dzjr
@dzjr said in Best choise for a controller:
I also have FHEM running on a Virtual machine, and to be honest it is not what I am looking for, among other things FHEM does not see the sensor names in the presentation, so this will all have to be set manually, and further I saw that you have to set a lot by hand.
There's an option to derive the reading names from presentation info ("get <name> ReadingsFromComment"), but most likely you will not be satisfied with the result. But for sure, FHEM isn't an easy "mouse-based" system to understand and customize. On the other side it offers any option to do whatever you like within your system.
But anyhow: Thanks for having a look! -
@dzjr said in Best choise for a controller:
I have already added a MySensors gateway (the test gateway on my desk) but I did not immediately see the sensors appear in HA
Pay attention to "Presentation" paragraph. "Send at least one initial value per V_TYPE. In version 2.x of MySensors, this has to be done in the loop function." And there is example code below. I had the same problem when first tried HA with Mysensors.
I used Domoticz for 4 years and I like how everything is configurable through web UI, but lack of development and lack of deep customizations made me looking forward to switch to HA.
Sorry for the late response, I had some problems with a cheap Chinese solder board which I wanted to have solved first: P
I adjusted the sketch, as far as I understood it, I send a value for each V_TYPE, I now indeed see some more childs, but I don't see the relays / controls anywhere.
I also see the other sensors not yet in the device list, they are in the json file by the way, but that is confirmed by the presentation.Do I have to adjust some extras in HA for that?
-
@dzjr said in Best choise for a controller:
I also have FHEM running on a Virtual machine, and to be honest it is not what I am looking for, among other things FHEM does not see the sensor names in the presentation, so this will all have to be set manually, and further I saw that you have to set a lot by hand.
There's an option to derive the reading names from presentation info ("get <name> ReadingsFromComment"), but most likely you will not be satisfied with the result. But for sure, FHEM isn't an easy "mouse-based" system to understand and customize. On the other side it offers any option to do whatever you like within your system.
But anyhow: Thanks for having a look!