Skip to content

Domoticz

322 Topics 2.3k Posts
  • Unable to switch a node on after Domoticz is rebooted

    8
    0 Votes
    8 Posts
    2k Views
    L
    By the way I just had similar errors. I have an rgbw controller nod up and running that can be controlled from the frontend of domoticz. Trying to control it from a script threw the same error as in the link above. I will be trying to restart the node tomorrow, but if I am not the only one seeing the problem there might be an error in domoticz somewhere.
  • Open/closed instead of on/off, Payload

    14
    0 Votes
    14 Posts
    6k Views
    K
    @popunonkok [image: 1488836984756-other_icons-resized.jpeg]
  • MQTT from RasPi MySensors GW to remote Domoticz

    5
    0 Votes
    5 Posts
    3k Views
    A
    Thank you. With beta everything is now working fine!:)
  • Domoticz sensor shows values when sensor is not sending

    1
    0 Votes
    1 Posts
    798 Views
    No one has replied
  • Problems with temperature sensor

    3
    0 Votes
    3 Posts
    2k Views
    rejoe2R
    No experience with domoticz, but this may help nevertheless: https://github.com/rejoe2/MySensors-Dallas-Address-ChildID-Consistency You will find some sketches for using more than one DS18B20 on one bus and some explanation also. General remark: as long as you do not change your hardware setup, you should find the same point of measurement reported under a specific temp-Child-ID using the standard sketches. The sketches above go a little further wrt. this.
  • monitor domoticz link health

    5
    0 Votes
    5 Posts
    2k Views
    franzelareF
    I have a lua time script running in domoticz that triggers a switch 'On" to every node every minute. the node replies by swtiching the id off again and counts how many times the host send a switch command, every 6 minutes the counter is checked, and in case lower than 5, a hard reset is done. in domoticz I check if the off command is received and if the off command is not received for more than 3 minutes I trigger a switch "node alive" to off as soon as the swtiching is received again, i put the "node alive" on again. this way I can also visualize the uptime of the nodes in my network when the" node alive" is off, some scripts are disabled because they have interactions between mysensor signals and other inputs, and the dependancies are not valid anymore as soon as the node is not alive anymore
  • Domoticz now supports the MySensors MQTT Gateway

    23
    4 Votes
    23 Posts
    16k Views
    gohanG
    @Toyman The page has been modified on 3 December 2016, it isn't that obsolete PS I found it, I had to manually update to beta version. I'll test it in the following days
  • Send notification/email x-times

    6
    0 Votes
    6 Posts
    3k Views
    DickD
    @gus thanks for the info, it looks good. I will try to start with it tomorrow. Hope it can help me.
  • Handling push buttons events

    3
    0 Votes
    3 Posts
    2k Views
    N
    Handling the short press/long press/release by the arduino is quite easy. I can already send a different event regarding what happens on each button, but the event has to be handled by domoticz ;) Previously, I was using a custom-made software for all my home automation. I handled the thing like this : When event is "pulse" : if timer is OFF and light is OFF : - Turn a timer ON for 5 seconds. - Turn light to 1st dim level (levels are 2, 5, 10, 30, 50 and 100%) if light is ON and timer is ON : Reset timer to 5s. Turn light to next dim level If light is ON but timer is OFF : Turn light OFF when event is "hold" : -do another action (ie. turn on/off another light)... That was working corretly, I did put this script in a function that I could reuse for each light easily, but it was my own home automation system software, and now I want to turn to another system, no more time to fix/enhance my own software !
  • Serial Gateway connect problem ttyAMA0

    11
    0 Votes
    11 Posts
    6k Views
    bjacobseB
    Did you try to this? sudo nano /boot/config.txt Add to the end: enable_uart=1 sudo nano /boot/cmdline.txt Remove everything and add this: dwc_otg.lpm_enable=0 console=tty1 elevator=deadline net.ifnames=0 root=/dev/mmcblk0p2 rootfsty Taken from here: https://community.openhab.org/t/has-anyone-gotten-razberry-working-with-openhab-2/12539/11
  • Setpoint Value

    3
    0 Votes
    3 Posts
    1k Views
    fabix68F
    Set the room temperature from a remote node. I have a node with a display that shows the values ​​of various sensors node (electricity production, consumption, temperature, state boiler). I want from this node also switch on the boiler by setting the reference temperature. Currently only displays on the display the set temperature on the setpoint and switches on and switches off the boiler but I can not change the value set on the setpoint (thought to 2 switches up and down) [image: 2ecj2bq.jpg]
  • Multiple child values after trying different sketches?

    4
    0 Votes
    4 Posts
    1k Views
    meanmrgreenM
    I rebooted domoticz and it got the right values for the childs :)
  • Error sending switch command, check device/hardware !

    15
    0 Votes
    15 Posts
    5k Views
    N
    Update. Please note that when @kk02067 gave the response directly above it was for Ver 2.0 and referenced a line in that code. It appears that changes leading to Ver 2.1.1 the location has changed and the delay(100) line would not be added at L463 as referenced. In Ver 2.1.1 it is now added between L659 and L660. It will look like this I believe: L658 _msgTmp.destination = sender; L659 // send ACK, use transportSendRoute since ACK reply is not internal, i.e. if !transportOK do not reply ADD delay(100) here!! L660 (void)transportSendRoute(_msgTmp); Also, I have not yet used Ver 2.1.1, so don't know if the changes in the latest version might solve the Domoticz relay ack issue I had. This solution solved my problems 100% in Ver 2.0.
  • Is "RF signal level" supported between MySensors and Domoticz?

    6
    1 Votes
    6 Posts
    5k Views
    rmtuckerR
    Yes you can do it with the rfm69 but you have to send it as a sound level because mysensors does not have the facility to send the Rssi properly as yet.
  • V_WEIGHT doesn't show up in devices

    3
    0 Votes
    3 Posts
    1k Views
    jonkenJ
    Thank you, I'll investigate that further and get back!
  • Add support button inclusion

    1
    0 Votes
    1 Posts
    915 Views
    No one has replied
  • Creating a RGB selector and adding it to Domoticz

    5
    0 Votes
    5 Posts
    5k Views
    F
    This is the code i am using and it is working fine with MyS 1.5.1 and Domoticz 3.5877. /*PROJECT: MySensors / RGB test for Light & Sensor PROGRAMMER: AWI/GizMoCuz DATE: september 27, 2015/ last update: October 10, 2015 FILE: AWI_RGB.ino LICENSE: Public domain Hardware: Nano and MySensors 1.5 Special: uses Fastled library with NeoPixel (great & fast RBG/HSV universal library) https://github.com/FastLED/FastLED Remarks: Fixed node-id Added option to request/apply last light state from gateway Domoticz typicals - 2015 10 10: - Domoticz is using HUE values internally, there might be a slight difference then using direct RGB colors. */ #include <MySensor.h> #include <SPI.h> #include <FastLED.h> const int stripPin = 4 ; // pin where 2812 LED strip is connected const int numPixel = 3 ; // set to number of pixels #define NODE_ID 254 // fixed MySensors node id #define CHILD_ID 0 // Child Id's CRGB leds[numPixel]; char actRGBvalue[] = "000000"; // Current RGB value uint16_t actRGBbrightness = 0xFF ; // Controller Brightness int actRGBonoff=0; // OnOff flag MySensor gw; MyMessage lastColorStatusMsg(CHILD_ID,V_VAR1); void setup() { FastLED.addLeds<NEOPIXEL, stripPin >(leds, numPixel); // initialize led strip gw.begin(incomingMessage, NODE_ID, false); // initialize MySensors gw.sendSketchInfo("AWI RGB Light", "1.1"); gw.present(CHILD_ID, S_RGB_LIGHT); // present to controller // Flash the "hello" color sequence: R, G, B, black. colorBars(); //Request the last stored colors settings gw.request(CHILD_ID, V_VAR1); } void loop() { gw.process(); // wait for incoming messages } void colorBars() { SendColor2AllLEDs( CRGB::Red ); FastLED.show(); delay(500); SendColor2AllLEDs( CRGB::Green ); FastLED.show(); delay(500); SendColor2AllLEDs( CRGB::Blue ); FastLED.show(); delay(500); SendColor2AllLEDs( CRGB::Black ); FastLED.show(); delay(500); } void SendColor2AllLEDs(const CRGB lcolor) { for(int i = 0 ; i < numPixel ; i++) { leds[i] = lcolor; } } void SendLastColorStatus() { String cStatus=actRGBvalue+String("&")+String(actRGBbrightness)+String("&")+String(actRGBonoff); gw.send(lastColorStatusMsg.set(cStatus.c_str())); } String getValue(String data, char separator, int index) { int found = 0; int strIndex[] = {0, -1}; int maxIndex = data.length()-1; for(int i=0; i<=maxIndex && found<=index; i++){ if(data.charAt(i)==separator || i==maxIndex){ found++; strIndex[0] = strIndex[1]+1; strIndex[1] = (i == maxIndex) ? i+1 : i; } } return found>index ? data.substring(strIndex[0], strIndex[1]) : ""; } void incomingMessage(const MyMessage &message) { if (message.type == V_RGB) { // check for RGB type actRGBonoff=1; strcpy(actRGBvalue, message.getString()); // get the payload SendColor2AllLEDs(strtol(actRGBvalue, NULL, 16)); SendLastColorStatus(); } else if (message.type == V_DIMMER) { // if DIMMER type, adjust brightness actRGBonoff=1; actRGBbrightness = map(message.getLong(), 0, 100, 0, 255); FastLED.setBrightness( actRGBbrightness ); SendLastColorStatus(); } else if (message.type == V_STATUS) { // if on/off type, toggle brightness actRGBonoff = message.getInt(); FastLED.setBrightness((actRGBonoff == 1)?actRGBbrightness:0); SendLastColorStatus(); } else if (message.type==V_VAR1) { // color status String szMessage=message.getString(); strcpy(actRGBvalue, getValue(szMessage,'&',0).c_str()); actRGBbrightness=atoi(getValue(szMessage,'&',1).c_str()); actRGBonoff=atoi(getValue(szMessage,'&',2).c_str()); SendColor2AllLEDs(strtol(actRGBvalue, NULL, 16)); FastLED.setBrightness((actRGBonoff == 1)?actRGBbrightness:0); } FastLED.show(); } When you get the RGB Light in Device, add it and edit the Device to be a Dimmer instead then click on the three cubes and start to select the color you like
  • ESP8266 actuator keepalive?

    1
    0 Votes
    1 Posts
    896 Views
    No one has replied
  • [RESOLVED] Send text to node with OLED display

    5
    0 Votes
    5 Posts
    4k Views
    K
    Duh! Just realized that the node is sleeping while waiting for the message! There are no debug messages while waiting, the node just sleeps. What threw me off, was that the time and date are received OK, but that was at the beginning of the first loop, while the node was awake. I'll try the request() function ASAP. Thanks.
  • Blinds control

    2
    0 Votes
    2 Posts
    2k Views
    mfalkviddM
    @abrasha I'm not sure if Domoticz supports it, but I think this sketch by @scalz has the features you are looking for. https://github.com/scalz/MySensors-HW/blob/development/RollerShutterNode/FW/MyRollershutter/MyRollershutter.ino

17

Online

11.7k

Users

11.2k

Topics

113.1k

Posts