Skip to content

Controllers

Controller discussions
1.5k Topics 12.7k Posts

  • 260 2k
    260 Topics
    2k Posts
    No new posts.
  • 204 2k
    204 Topics
    2k Posts
    kerberosK
    Hi @adds666 I did in between the switch from 2.5.12 to 3.4.4 a change from pure textual configuration in 2.5.12 to a UI configuration in 3.4.4. This requires some homework. Can't remember beside the exchanged mysensors binding files anything else to upgrade to 4.0.4 from 3.4.4 and finally to current 4.1.1. Keep in mind, I use a OpenHAB manual installation on a non-Debian Linux system, not openHABian. This may have an influence, but I don't expect any hiccups. kerberos
  • 322 2k
    322 Topics
    2k Posts
    dirkjuD
    @goblin feel free to share concrete error messages or questions. We might be able to help on well-described problems. Otherwise - hope ChatGPT can help you ;-)
  • 24 337
    24 Topics
    337 Posts
    CharallC
    Looks pretty nice.
  • 8 40
    8 Topics
    40 Posts
    G
    Like you, I'd like to play with my Hometroller Zee S2. (2nd hand; Not yet received from Ebay) Did you succed in your project ? Programming Ardunios is a piece of cake and compared to z-wave items, the price is ridiculus.
  • 10 57
    10 Topics
    57 Posts
    mfalkviddM
    @btmerz I am not familiar with fham, but see if V_KWH works. For Ah it would (technically) be incorrect, but I think the display and aggregegation would work anyway.
  • 2 9
    2 Topics
    9 Posts
    AlexieA
    This issue is already resolved in DomotiGa.
  • 4 Topics
    75 Posts
    freedomoticF
    Hi all we are working on a new web client for our domotic framework. Here some screenshots [image: fd5.png?part=0.7&view=1&vt=ANaJVrEZGlBm56DRoEIytzEGrrMV0OXO3g99sjFBL8H9PoX9OP1OTIpbN6zJxtvaSCc8xSddjrnLNPl-4vH3bEz6B0Js-VZx4mOBPuaRJ3QoSLwA5EPYlPI] [image: fd_mobile2.png?part=0.2&view=1&vt=ANaJVrEUs3ydycP8me4baRK56FRppkkthGMq4FG-tycTWT93WKq3oF3GKzHbkDY7AIKFpBVoGa1Z6wt2JLMGtJrWqUA6QACZh3BXx8FwSJ5V9XeM3VoBYPg] [image: fd_4.png?part=0.6&view=1&vt=ANaJVrFb4sDmn_knAqbVFc0xgc6SRm_gsyHRpPctZ6-qqRla8sduX3DwO1qM98efhTFT_zAtfxnFL_nTJASRNbC_NpKMg0ayZoMkUq9nijhJ9vq56PECvLs] It's a WIP so we need any help to complete it. The code is available at https://github.com/freedomotic/fd-vue-webapp/
  • 4 Topics
    38 Posts
    T
    I successfully worked around the issue by updating the /Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/MySensors.indigoPlugin/Contents/Server Plugin /plugin.py script to recognize the internal 21 code. Here's the diff: 34c134,135 < "GATEWAY_READY" : [14, "Gateway ready", ""] "GATEWAY_READY" : [14, "Gateway ready", ""], "DISCOVER_RESPONSE" : [21, "Discover response", ""] 715a717,719 elif itemType == self.getInternalNumber("DISCOVER_RESPONSE"): # 21 Ignore pass P.S. Indigo 2022.1 is complaining about this plugin that it won't be supported in future releases. Is there anyone out there planning to update this plugin?
  • 12 41
    12 Topics
    41 Posts
    J
    view Thank you for the link I'll head in that direction feedback after testing
  • Making i possible to let Homey work with Mysensors

    1
    0 Votes
    1 Posts
    839 Views
    No one has replied
  • Test your home made controller with MockMySensors (w/ tutorial)

    39
    3 Votes
    39 Posts
    25k Views
    barduinoB
    Hi Folks, The guys at MySensors were kind to convert this to 1.6 lib. So being back in Europe for the holidays I decided to create a post with some explanations/tutorial about the code. This example MockMySensors from the MySensors examples actually combines 30 sensors in a single node. It may have a poor architecture but it will give you an idea of how to combine sensors and with some feedback we can always improve on the architecture. It has been designed for you to customize it for the sensor you want to test by uncomment the initial lines. This line defines your NODE ID, you can always change it to AUTO or to your specification #define MY_NODE_ID 254 This part of the code defines the sensors you want to work with and their ids #define ID_S_ARMED 0 // dummy to controll armed stated for several sensors #define ID_S_DOOR 1 //#define ID_S_MOTION 2 //#define ID_S_SMOKE 3 //#define ID_S_LIGHT 4 //#define ID_S_DIMMER 5 //#define ID_S_COVER 6 //#define ID_S_TEMP 7 //#define ID_S_HUM 8 //#define ID_S_BARO 9 ... code lines snipped ... //#define ID_S_MOISTURE 33 // //#define ID_S_CUSTOM 99 This part of the code defines the messages you want to instantiate to work with your sensors #ifdef ID_S_DOOR // V_TRIPPED, V_ARMED MyMessage msg_S_DOOR_T(ID_S_DOOR,V_TRIPPED); MyMessage msg_S_DOOR_A(ID_S_DOOR,V_ARMED); #endif #ifdef ID_S_MOTION // V_TRIPPED, V_ARMED MyMessage msg_S_MOTION_A(ID_S_MOTION,V_ARMED); MyMessage msg_S_MOTION_T(ID_S_MOTION,V_TRIPPED); #endif #ifdef ID_S_SMOKE // V_TRIPPED, V_ARMED MyMessage msg_S_SMOKE_T(ID_S_SMOKE,V_TRIPPED); MyMessage msg_S_SMOKE_A(ID_S_SMOKE,V_ARMED); #endif #ifdef ID_S_LIGHT MyMessage msg_S_LIGHT(ID_S_LIGHT,V_LIGHT); bool isLightOn=0; #endif ... code lines snipped ... #ifdef ID_S_MOISTURE // To be implemented #endif On the presentation section, you have all the sensors being presented, along with some debugging void presentation() { #ifdef ID_S_DOOR Serial.println(" S_DOOR"); present(ID_S_DOOR,S_DOOR,"Outside Door"); wait(SHORT_WAIT); #endif #ifdef ID_S_MOTION Serial.println(" S_MOTION"); present(ID_S_MOTION,S_MOTION,"Outside Motion"); wait(SHORT_WAIT); #endif #ifdef ID_S_SMOKE Serial.println(" S_SMOKE"); present(ID_S_SMOKE,S_SMOKE,"Kitchen Smoke"); wait(SHORT_WAIT); #endif ... code lines snipped ... #ifdef ID_S_CUSTOM Serial.println(" S_CUSTOM"); present(ID_S_CUSTOM,S_CUSTOM,"Other Stuff"); wait(SHORT_WAIT); #endif On the loop section you have methods which will trigger each sensor to report. This will happen periodically on the SLEEP_TIME, 15 minutes by default void loop()[ //Read Sensors #ifdef ID_S_DOOR door(); #endif #ifdef ID_S_MOTION motion(); #endif #ifdef ID_S_SMOKE smoke(); #endif ... code lines snipped ... #ifdef ID_S_CUSTOM custom(); #endif Lets take a look at one of them, the dimmer. As you can see its just reporting the dimmerVal which was declared as a global variable. Sometimes these values are saved in the EPROM, for this example I wanted to avoid that. #ifdef ID_S_DIMMER void dimmer(){ Serial.print("Dimmer is set to: " ); Serial.println(dimmerVal); send(msg_S_DIMMER.set(dimmerVal)); } #endif Finally the incoming message section. void receive(const MyMessage &message) { ... code lines snipped ... #ifdef ID_S_DIMMER case V_DIMMER: if ((message.getInt()<0)||(message.getInt()>100)) { Serial.println( "V_DIMMER data invalid (should be 0..100)" ); break; } dimmerVal= message.getInt(); Serial.print("Incoming change for ID_S_DIMMER:"); Serial.print(message.sensor); Serial.print(", New status: "); Serial.println(message.getInt()); dimmer();// temp ack break; #endif ... code lines snipped ... The temp ack mean I'm just forcing the sensor to report back the new value to the controller. And this is basically what it takes to combine sensors in the MySensors library. One node can have many sensors and each sensor can receive any number or combinations of messages. So for the dimmer example #define ID_S_DIMMER 5 ... code lines snipped ... #ifdef ID_S_DIMMER MyMessage msg_S_DIMMER(ID_S_DIMMER,V_DIMMER); int dimmerVal=100; #endif ... code lines snipped ... void presentation() { ... code lines snipped ... #ifdef ID_S_DIMMER Serial.println(" S_DIMMER"); present(ID_S_DIMMER,S_DIMMER,"Living room dimmer"); wait(SHORT_WAIT); #endif ... code lines snipped ... There is nothing stoping me to add another message type to the dimmer. So for example if the dimmer does have an on/off button I could add MyMessage msg_S_DIMMER_BUTTON(ID_S_DIMMER,V_STATUS) Note that your controller might not be expecting all this freedom of combinations of messages. So although I could report a temperature on a dimmer sensor using MyMessage msg_S_DIMMER_BUTTON(ID_S_DIMMER,V_TEMP) Your controller might not like it. As always feddback is welcome Cheers
  • Arduino Yun, Linino, OpenWRT

    16
    0 Votes
    16 Posts
    10k Views
    P
    @akbooer: Just using it as a Serial/Ethernet gateway. Though there's plenty of documentation available on getting node.js working on the Yun; which you could use to run up the sample node.js controller from MySensors.
  • Fibaro + mysensor

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • MyNetSensors - Web Controller

    mynetsensors controller
    3
    3 Votes
    3 Posts
    2k Views
    derwishD
    Thanks for the feedback. If you have comments, send me an emeil. As for multiplatform, I'm going to rewrite the code in ASP.NET5, once it exits beta status.Theoretically, this will make it possible to run the system on Linux and Mac. I wrote code with the future in mind.
  • Can I host controller like openHAB or PIdome on a VPS over the internet?

    10
    0 Votes
    10 Posts
    6k Views
    bpairB
    I have a similar issue. I want to collect data from several locations and potentially also control some relays remotely. Some locations (Haiti0 will need to use a SIM card to send data. So I am looking for a reliable cloud based system to collect data and possibly control. I stumbled on this http://developers.sensetecnic.com/ , which is free. Lets you store, view data privately, and they host node-red so you can run rules and notifications or send data anywhere. It seems like a great offering but for some reason there is not that many people using it. The other thing i though about was having the remote locations post the data to dweet.io and then I could retieve from any machine i decide to be the central server. you can also do this privately for a few buck a month. If your channel resembles MQTT then you can run node-red locally and from there do formal MQTT or just a serial connection to any controller or board. I am still just testing different things. Amazon started their IoT offering yesterday which is currently free.
  • I plan to write a mysensor controller core API

    9
    0 Votes
    9 Posts
    6k Views
    barduinoB
    @mntlvr Absolutely! In fact it has been available since day 1. Check this post Since this is developed using a Platform you need to do some steps to set it up: Register as a developer here (this is free and there are no strings attached) Start your free and unlimited personal environment Install HAALL from here and just hack away.
  • eedomus as controller

    12
    0 Votes
    12 Posts
    4k Views
    godestalbinG
    Yes, I have capacitor on both radio.
  • MySensors network stress test

    6
    1 Votes
    6 Posts
    3k Views
    AWIA
    @Daniel-Oliveira The periods are in milliseconds... default is one test every 1000 ms. If you want to really test the network set it as low as you want. I have no recommendations. I built it to check if and how the controller handles everything, so speed is less important. The loopdelay is the time between each test vector. So your settings give 10 tests/ second ( = 1 each 100 milliseconds) The SLEEP_TIME (wrong wording, sorry...) is the time if you have more than one test per vector (number of iterations with increment). The SLEEP_TIME is not relevant in the default setting. You have to set the number of iterations in the vector > 1.
  • Ethernet Shield 2

    11
    0 Votes
    11 Posts
    5k Views
    B
    @akbooer Thanks for yr quick support suggestion. However, none is applicable since the ethernet shield 2 is working fine. I even connect to the Vera using HTTP GET request to get data into the variable container plug in. The problem remains that I can't fine a proper sketch to interface the ethernet shield board with the Arduino VERA plug in. THis would have many advantages for me by virtue of having individual device nr's.
  • Need feedback/help to design an API

    3
    1 Votes
    3 Posts
    2k Views
    epierreE
    Hello, a good API for the outside is the one I interface to Domoticz:https://imperihome.zendesk.com/hc/en-us/articles/203875139-ISS-BETA-SPECS It has a lot of common functionalities in all home automation controllers (Vera, Fibaro, ....) plus independant as Philipe Hue, Netatmo... Here you just collect data, are you going to make a datahub ? there should be a cllient interface such as the one described above to expose it to the outside world. I thought, but didn't finish, something to make a UIless controller, that Imperihome could query, thus reducing the maintenance of both end UI.
  • My Controller HAALL update (w/ pictures)

    4
    3 Votes
    4 Posts
    4k Views
    barduinoB
    Hi folks, Just lauched a new version of HAALL. The code can be found here and if you want to test it for your self just follow the instructions or drop me a line. This version has: Support for the 24 sensors of MySensor lib 1.4 (1.5 is commig!) Bi-dircetional communications (HAALL is hosted on the cloud) Secure communications between gateway and HAALL Ability to configure each sensor by message type Here are some images of this version [image: 1441516943193-20150906_dashboard.png] S_DIMMER detail [image: 1441516952341-20150906_s_dimmer.png] S_SCENE_CONTROLLER detail [image: 1441516979796-20150906_s_scene.png] S_HEATER detail [image: 1441516998482-20150906_s_heater.png] Set up for S_HEATER [image: 1441517019821-20150906_s_heater_setup.png] Future Development: Expand to the 33 sensors of lib 1.5 Backup/Restore Configurations Support Charts for data history Dedicated mobile version (responsive is not cutting it) Configure incoming data translation Configure sensor image (default/statis/dynamic) Configure sensor name (sensor type/sketch name/hard coded) ... whate ever comes our way... As always FEEDBACK is much appreciated!!! Cheers
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    136 Views
    No one has replied
  • Controllers data store

    2
    0 Votes
    2 Posts
    1k Views
    barduinoB
    I use mssql database Cheers
  • This topic is deleted!

    1
    1 Votes
    1 Posts
    50 Views
    No one has replied
  • This topic is deleted!

    15
    1 Votes
    15 Posts
    1k Views
  • MySensors API in C#

    3
    0 Votes
    3 Posts
    2k Views
    msamy.earthM
    I'm trying to connect the RF24 directly to RPi
  • EasyIoT server - Mysensors Raspberry Pi controller

    automation raspberry controller
    32
    2 Votes
    32 Posts
    27k Views
    msamy.earthM
    @EasyIoT Can you share your implementation for MySensorsDriver?
  • MYSController supports Sensebender Micro OTA FW updates

    20
    4 Votes
    20 Posts
    9k Views
    scalzS
    yes, I am very happy. I can finish the design of my ultra low power node now! it is a camel like (sub-uA) :smiley: I have just a last question for @hek about ota: I looked into the lib. And of course, ota is not interfered by sleeping. But it can be interfered by some process in main loop like sensors, delays... And it can take very long time for ota in these case if we don't optimize our loop. It is logic I understand. So I am looking for a way of preventing this because for a battery-powered node it could be problematic to have an ota transferring for minutes (15min for DHT sketch for example). I saw you use fwUpdateOngoing for this in class, and it is protected, and I understand why. But it could be useful if we could have read access to it like a Get/IsOtaPending() Method. Just a get, not a set of course. Do you think you could add this feature? Or do I need to make my own class and derive it from Mysensors class? Just a thought...What do you think about this?
  • Supernoob question :)

    4
    0 Votes
    4 Posts
    2k Views
    mikeeM
    I have seen some installation tutorial in Domoticz wiki, for sure on Synology, not sure if on Qnap - check that.

9

Online

11.7k

Users

11.2k

Topics

113.0k

Posts