GithubHelp home page GithubHelp logo

pimatic / homeduino Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 39.0 199 KB

Arduino library for home control

License: GNU General Public License v3.0

Makefile 0.46% C 1.73% Arduino 50.74% Objective-C 7.70% C++ 39.37%

homeduino's Introduction

pimatic

Build Status NPM version Mentioned in Awesome SmartHome

This project is no longer maintained!

pimatic is a home automation framework that runs on node.js. It provides a common extensible platform for home control and automation tasks.

Read more at pimatic.org or visit the forum.

Join the chat at https://gitter.im/pimatic/pimatic

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4

Getting Started

Installation instructions can be found on pimatic.org. If you need any help, please ask at the forum.

Donation

Happy with pimatic and using it every day? Consider a donation to support development and keeping the website and forum up: PayPal donate button

We promise, that pimatic will always be free to use and its code be open sourced.

Get Involved

pimatic is your opportunity to contribute to a growing OpenSource-Project.

Architecture Overview

+-------------------------------------------+
| mobile-  | rest- | cron | homeduino | ... |  Plugins (Views, Device-/Preidcates-
| frontend | api   |      |           |     |  Action-Provider, Services)
|-------------------------------------------|
| pimatic (framework)                       |  Framework
|-------------------------------------------|
| rule   | device    | (core)     | (core)  |  Model
| system | schemata  | predicates | actions |
|-------------------------------------------|
| node.js (non-blocking, async IO,          |  Low-Level Infrastructure
| event-loop, v8)                           |
+-------------------------------------------+

Extensions and Hacking

The framework is built to be extendable by plugins. If you have devices that are currently not supported please add a plugin for your devices. As well, if you have nice ideas for plugins or need support for special devices you are welcome to create an issue or submit a patch.

For plugin development take a look at the development guide and plugin template.

Feel free to ask development questions at the plugin template repository.

Copyright / License

Copyright (C) 2014-2019 Oliver Schneider <[email protected]>
and contributors


pimatic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

pimatic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with pimatic.  If not, see <http://www.gnu.org/licenses/>.

homeduino's People

Contributors

icesory avatar mwittig avatar ronaldsteen avatar sweetpi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homeduino's Issues

Problem flash board

Please help.
What i do:

  • pluged in nano into pi over usb
  • installed the arduino.mk
  • sudo make show_boards

Error:
/usr/share/arduino/Arduino.mk:535 build-cli/depends.mk: (file not found) Datei oder Verzeichnis nicht gefunden
echo '#include <Arduino.h>' > build-cli/homeduino.cpp
cat homeduino.ino >> build-cli/homeduino.cpp
make: /usr/share/arduino/ard-parse-boards: ( command not found) Kommando nicht gefunden
make: /usr/share/arduino/ard-parse-boards: Kommando nicht gefunden
make: /usr/share/arduino/ard-parse-boards: Kommando nicht gefunden
/usr/bin/avr-g++ -MM -mmcu= -DF_CPU= -DARDUINO=100 -I. -I/hardware/arduino/cores/arduino -I/hardware/arduino/variants/ -I/libraries/SerialCommand -I/libraries/RFControl -I/libraries/Keypad -I/libraries/DHTlib -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/DHTlib -g -Os -w -Wall -ffunction-sections -fdata-sections -fno-exceptions build-cli/homeduino.cpp -MF build-cli/homeduino.d -MT build-cli/homeduino.o
avr-g++: error: missing argument to โ€˜-mmcu=โ€™
/usr/share/arduino/Arduino.mk:429: recipe for target 'build-cli/homeduino.d' failed
make: *** [build-cli/homeduino.d] Error 1
rm build-cli/homeduino.cpp

Homeduino Contact - error in extentions - labels

Renaming the labels of my contacts, using "xOnLabel" and "xOffLabel", gives an error.

As mentioned in device-config-schema.coffee it should be possible;

HomeduinoRFContactSensor: {
title: "HomeduinoRFContactSensor config options"
type: "object"
extensions: ["xConfirm", "xLink", "xOnLabel", "xOffLabel"]

Homeduino with ATmega32u4

Hi!
I'm unable to get anything out of ATmega32u4.
I can flash it but when i do make monitor i cant get no response.
Pressing any key on keyboard makes led flash but otherwise i get no response in terminal.

pi@rPi-OVPN ~/homeduino $ make upload
-------------------------
Arduino.mk Configuration:
- [AUTODETECTED]       CURRENT_OS = LINUX
- [USER]               ARDMK_DIR = /home/pi/homeduino/arduino-mk
- [AUTODETECTED]       ARDUINO_DIR = /usr/share/arduino
- [AUTODETECTED]       ARDUINO_VERSION = 105
- [DEFAULT]            ARCHITECTURE =
- [DEFAULT]            VENDOR = arduino
- [DEFAULT]            ARDUINO_SKETCHBOOK = /home/pi/sketchbook
- [BUNDLED]            AVR_TOOLS_DIR = /usr/share/arduino/hardware/tools/avr (in Arduino distribution)
- [COMPUTED]           ARDUINO_LIB_PATH = /usr/share/arduino/libraries (from ARDUINO_DIR)
- [DEFAULT]            ARDUINO_CORE_PATH = /usr/share/arduino/hardware/arduino//cores/arduino
- [COMPUTED]           ARDUINO_VAR_PATH = /usr/share/arduino/hardware/arduino//variants (from ARDUINO_DIR)
- [COMPUTED]           BOARDS_TXT = /usr/share/arduino/hardware/arduino//boards.txt (from ARDUINO_DIR)
- [USER]               USER_LIB_PATH = /home/pi/homeduino/libraries
- [DEFAULT]            PRE_BUILD_HOOK = pre-build-hook.sh
- [USER]               BOARD_TAG = leonardo
- [COMPUTED]           OBJDIR = build-leonardo (from BOARD_TAG)
- [DETECTED]           MONITOR_BAUDRATE = 115200  (in sketch)
- [DEFAULT]            OPTIMIZATION_LEVEL = s
- [DEFAULT]            MCU_FLAG_NAME = mmcu
- [DEFAULT]            CFLAGS_STD =
- [DEFAULT]            CXXFLAGS_STD =
- [COMPUTED]           DEVICE_PATH = /dev/ttyACM0 (from MONITOR_PORT)
- [AUTODETECTED]       Size utility: AVR-aware for enhanced output
-
-                      ARDUINO_LIBS =
- [USER]                 SerialCommand
- [USER]                 RFControl
- [USER]                 Keypad
- [USER]                 DHTlib
- [USER]                 Keypad/utility
- [COMPUTED]           BOOTLOADER_PARENT = /usr/share/arduino/hardware/arduino//bootloaders (from ARDUINO_DIR)
- [COMPUTED]           ARDMK_VERSION = 1.3.4
- [COMPUTED]           CC_VERSION = 4.8.1 (avr-gcc)
-------------------------
mkdir -p build-leonardo
make reset
make[1]: Entering directory '/home/pi/homeduino'
/home/pi/homeduino/arduino-mk/bin/ard-reset-arduino --caterina  /dev/ttyACM0
make[1]: Leaving directory '/home/pi/homeduino'
make do_upload
make[1]: Entering directory '/home/pi/homeduino'
/usr/share/arduino/hardware/tools/avr/../avrdude -q -V -D -p atmega32u4 -C /usr/share/arduino/hardware/tools/avr/../avrdude.conf -c avr109 -b 57600 -P /dev/ttyACM0 \
                -U flash:w:build-leonardo/homeduino.hex:i

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x1e9587
avrdude: reading input file "build-leonardo/homeduino.hex"
avrdude: writing flash (14944 bytes):
avrdude: 14944 bytes of flash written

avrdude: safemode: Fuses OK (E:CB, H:D8, L:FF)

avrdude done.  Thank you.

make[1]: Leaving directory '/home/pi/homeduino'

Always "timeout"

after a certain time homeduino increases no longer works. I always get the message "timeout" no error messages in the log or elsewhere . I just need to restart the pimatic and it works again for a while

vhduino - high CPU usage

Since the last update process vhduino is always using CPU above 90%
I have a filter (one used in PiLight) and always worked fine.
Thanks.

The onewire branch is broken

I've checked the onewire branch as written in the readme, but on make upload it shows;

make: *** No rule to make target 'rfcontrol_command.h', needed by 'build-pro5v328/homeduino.o'. Stop.

Any ideas?

No response on PING

Hi, i connected a arduino nano to a raspberry pi, uploaded the sketch via make upload

pi@raspberrypi:~/homeduino $ make upload

Arduino.mk Configuration:

  • [AUTODETECTED] CURRENT_OS = LINUX
  • [USER] ARDMK_DIR = /home/pi/homeduino/arduino-mk
  • [AUTODETECTED] ARDUINO_DIR = /usr/share/arduino
  • [AUTODETECTED] ARDUINO_VERSION = 105
  • [DEFAULT] ARCHITECTURE =
  • [DEFAULT] VENDOR = arduino
  • [DEFAULT] ARDUINO_SKETCHBOOK = /home/pi/sketchbook
  • [BUNDLED] AVR_TOOLS_DIR = /usr/share/arduino/hardware/tools/avr (in Arduino distribution)
  • [COMPUTED] ARDUINO_LIB_PATH = /usr/share/arduino/libraries (from ARDUINO_DIR)
  • [DEFAULT] ARDUINO_CORE_PATH = /usr/share/arduino/hardware/arduino//cores/arduino
  • [COMPUTED] ARDUINO_VAR_PATH = /usr/share/arduino/hardware/arduino//variants (from ARDUINO_DIR)
  • [COMPUTED] BOARDS_TXT = /usr/share/arduino/hardware/arduino//boards.txt (from ARDUINO_DIR)
  • [USER] USER_LIB_PATH = /home/pi/homeduino/libraries
  • [DEFAULT] PRE_BUILD_HOOK = pre-build-hook.sh
  • [USER] BOARD_TAG = nano328
  • [COMPUTED] OBJDIR = build-nano328 (from BOARD_TAG)
  • [DETECTED] MONITOR_BAUDRATE = 115200 (in sketch)
  • [DEFAULT] OPTIMIZATION_LEVEL = s
  • [DEFAULT] MCU_FLAG_NAME = mmcu
  • [DEFAULT] CFLAGS_STD =
  • [DEFAULT] CXXFLAGS_STD =
  • [COMPUTED] DEVICE_PATH = /dev/ttyUSB0 (from MONITOR_PORT)
  • [AUTODETECTED] Size utility: AVR-aware for enhanced output
  •                  ARDUINO_LIBS =
    
  • [USER] SerialCommand
  • [USER] RFControl
  • [USER] Keypad
  • [USER] DHTlib
  • [USER] Keypad/utility
  • [COMPUTED] BOOTLOADER_PARENT = /usr/share/arduino/hardware/arduino//bootloaders (from ARDUINO_DIR)
  • [COMPUTED] ARDMK_VERSION = 1.3.4
  • [COMPUTED] CC_VERSION = 4.9.2 (avr-gcc)

mkdir -p build-nano328
make reset
make[1]: Entering directory '/home/pi/homeduino'
/home/pi/homeduino/arduino-mk/bin/ard-reset-arduino /dev/ttyUSB0
make[1]: Leaving directory '/home/pi/homeduino'
make do_upload
make[1]: Entering directory '/home/pi/homeduino'
/usr/share/arduino/hardware/tools/avr/../avrdude -q -V -D -p atmega328p -C /usr/share/arduino/hardware/tools/avr/../avrdude.conf -c arduino -b 57600 -P /dev/ttyUSB0
-U flash:w:build-nano328/homeduino.hex:i

avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "build-nano328/homeduino.hex"
avrdude: writing flash (11942 bytes):
avrdude: 11942 bytes of flash written

avrdude: safemode: Fuses OK (E:00, H:00, L:00)

avrdude done. Thank you.

make[1]: Leaving directory '/home/pi/homeduino'

And with make monitor I get the "ready" output but if I type "PING hello" and press CTRL-Return I get no other output.

I'm on a mac with terminal connected via ssh on the raspberry. Maybe some keyboard encoding stuff? Any Ideas?

Question: Extension Points for Status LEDs

Hi,
I am using homeduino with pimatic. Sending and Receiving is working perfectly. Thanks for building this cool piece of software.
What I want to do is having two LEDs showing when sending/receiving 433 Mhz signals.
I connected two LEDs with Digital Pins 3/5. During the setup method in homeduino.ino they are working.
My question is where should I place the "digitalWrite" calls for the LEDs? I already tried (including 1sec delay) digital_read_command, digital_write_command, analog_read_command, analog_write_command, but they did not work.

Thanks, Stephan

Auriol temperature sensor type IAN 91838 not detected

I have an Auriol weather station with a simple temperature sensor. My pimatic-homeduino logs periodically similar things like this:
21:11:42.635 [pimatic-homeduino] debug: data: "RF receive 444 1992 3955 9330 0 0 0 0 010202010201010202010101010101010101010202020102020202010202010103"
21:11:42.672 [pimatic-homeduino] debug: received: [ 444, 1992, 3955, 9330 ] 010202010201010202010101010101010101010202020102020202010202010103
21:12:13.636 [pimatic-homeduino] debug: data: "RF receive 447 1991 3950 9329 0 0 0 0 010202010201010202010101010101010101010202020102020202010202010103"
21:12:13.673 [pimatic-homeduino] debug: received: [ 447, 1991, 3950, 9329 ] 010202010201010202010101010101010101010202020102020202010202010103
21:12:44.635 [pimatic-homeduino] debug: data: "RF receive 445 1993 3950 9338 0 0 0 0 010202010201010202010101010101010101010202020102020202010202010103"
21:12:44.673 [pimatic-homeduino] debug: received: [ 445, 1993, 3950, 9338 ] 010202010201010202010101010101010101010202020102020202010202010103
but it seems that there is no device detected.

What might be the problem? Isn't it supported.
With Pilight it works well. The pilight config is as follows. Only temperature is valid, humidity is not correct.
"weather": {
"protocol": [ "auriol" ],
"id": [{
"id": 1
}],
"temperature": 0.0,
"humidity": 19.8,
"battery": 1
}

on/off inverted

I just switched from pilight to homeduino using the gpio driver. My pimatic config contains

  "plugins": [
    {
      "plugin": "homeduino",
      "driver": "gpio",
      "driverOptions": {},
      "receiverPin": 1,
      "transmitterPin": 0
    }
  ],
  "devices": [
    {
      "id": "pilight-living-sw1",
      "name": "Switch A",
      "class": "HomeduinoRFSwitch",
      "protocols": [
        {
          "name": "switch3",
          "options": {
            "houseCode": 21,
            "unitCode": 16
          }
        }
      ]
    }

It works well, but on and off state of the switch is inverted.

Great plugin, thank you.

[request] support for DS18B20 temp sensor

Hi,

First of all, the homeduino plugin is working great for sending and receiving 433Mhz! Thank you.

I'd like to add more stuff to my pimatic installation, including a DS18B20 temp sensor. I see DHT11/22 sensors are included in the Homeduino support. Also, I noticed a DS18B20 plugin for pimatic. I wonder why there's a separate plugin?
I would love to connect my temp sensor to the arduino to keep it simple.

Thanks.

Slow sending after receiving

I have some rules in pimatic so that after a button on a remote is pressed, it sends a signal to a switch.
But many times homeduino takes a long time to send after receiving.
I've already tried reducing the wait time on the listenBeforeTalk() method from 1 sec to 500 millis, but it still takes a long time (about 2 seconds a lot of the times). If I reduce it to 100 millis it works quickly, but then it is much less reliable (will talk before listening to everything :D ).

I've checked if the remote was sending for too much time, but it is not. It only repeats the signal for less than half a second, so that is not the problem.

Could it be that, when not receiving anything anymore, the package identification is taking too long to go to the last state (STATUS_RECORDING_END), causing the delay?

I'm not sure if this should be posted here or in RFControl...

pir recognized as switch

Hello.

My Name is Alex and i use a raspberry Pi B+ with 433mhz sender & reciever with pimatic and homeduino-plugin.

I'm now getting pilight-less with your plugin and my old+new intertechnos and weathersensors works fine. many thanks for your awesome work ;)

ill see your homeduino-plugin has 2 pir-protocolls (pir1, pir2) included and i would use one of them with this PIR-sensor:

http://www.importe-uzman.de//funkalarmanlagen-bewegungsmelder-kompatibel-zonen-anlage-p-4476.html?osCsid=0cd6b4f19f537ee2fd0a0afcf6a33f30

my problem was the rfcontroljs recognized the device as two-protocoll-switch, but i need them as pir

debug [pimatic-homeduino]: switch8: { systemcode: 18, programcode: 'A4', state: false }
debug [pimatic-homeduino]: switch6: { systemcode: 9, programcode: 28, state: true }
debug [pimatic-homeduino]: received: [ 170, 514, 5318 ] 01010110011001010110011001100101101010100101010102
debug [pimatic-homeduino]: data: "RF receive 170 514 5318 0 0 0 0 0 01010110011001010110011001100101101010100101010102"

I try to add following lines in my config - but useless and give me error outputs

{
  "id": "homeduino-pir",
  "name": "PIR",
  "class": "HomeduinoRFPir",
  "protocols": [
    {
      "name": "switch6",
      "options": {
        "systemcode": 9,
        "programcode": 28
      }
    }
  ],
  "resetTime": 6000
}

Debuglog:
error [pimatic]: Error loading device homeduino-pir: "switch6" is not a pir protocol.

{
  "id": "homeduino-pir2",
  "name": "PIR2",
  "class": "HomeduinoRFSwitch",
  "protocols": [
    {
      "name": "switch6",
      "options": {
        "systemcode": 9,
        "programcode": 28
      }
    }
  ],
  "resetTime": 6000
}

Makes me a Switch in pimatic and Debuglog:
error [pimatic]: Error loading device homeduino-pir: "switch6" is not a pir protocol.

Maybe you could help me with a new plugin for this type PIR-sensor?

Many thanks in advance and sorry for my bad english.
-Greedings from Austria -
Alex

Sending messages unreliable

Since the last update, sending is unreliable. There is a much longer delay between toggling the switch and the done message than before. The rf-switch reacts maybe once out of 5 times. There are no errors in the log:

debug [pimatic-homeduino]: data: "ACK"

Signal reception after sending

When I switch a lamp via the homeduino RF module, it sends out the RF signal but also receives the same signal. This can cause a loop in for example the HAP module. Issue #39 knows what is happening here? Hardware or Software related?

14:58:49 debug [pimatic-homeduino]: pir5: { id: 1337110, all: false, presence: false, unit: 1 }
14:58:49 debug [pimatic-homeduino]: switch1: { id: 1337110, all: false, state: false, unit: 1 }
14:58:49 debug [pimatic-homeduino]: received: [ 224, 356, 1244, 2580, 10188 ] 131012101210121012101212101012121010121012101212101210101210121210121012101012101210121210101212101210101210121012101210121012121014
14:58:49 debug [pimatic-homeduino]: data: "RF receive 356 2580 224 1244 10188 0 0 0 010203020302030203020303020203030202030203020303020302020302030302030203020203020302030302020303020302020302030203020302030203030204"

----> Same signal is received another time no manual switching here 2nd time?

14:58:49 debug [pimatic-homeduino]: data: "ACK"
14:58:48 debug [pimatic-homeduino]: Sending Protocol: switch1 id:1337110 unit:1 all:false state:false Pin:4 Repeats:7

--> Switching LAMP OFF (BUT NO MANUAL ACTION HERE 2nd time?)

14:58:48 debug [pimatic-homeduino]: contact1: { id: 1337110, all: false, contact: true, unit: 1 }
14:58:48 debug [pimatic-homeduino]: pir5: { id: 1337110, all: false, presence: false, unit: 1 }
14:58:48 debug [pimatic-hap]: switching device Lamp Televisie to false
14:58:48 debug [pimatic-homeduino]: switch1: { id: 1337110, all: false, state: false, unit: 1 }
14:58:48 debug [pimatic-homeduino]: received: [ 217, 364, 1236, 2568, 10172 ] 131012101210121012101212101012121010121012101212101210101210121210121012101012101210121210101212101210101210121012101210121012121014
14:58:48 debug [pimatic-homeduino]: data: "RF receive 364 2568 217 1236 10172 0 0 0 010203020302030203020303020203030202030203020303020302020302030302030203020203020302030302020303020302020302030203020302030203030204"

----> Same signal is received

14:58:48 debug [pimatic-homeduino]: data: "ACK"
14:58:48 debug [pimatic-homeduino]: Sending Protocol: switch1 id:1337110 unit:1 all:false state:false Pin:4 Repeats:7

*--> Switching LAMP OFF *

14:58:45 warn [pimatic-fritz]: Re-establishing session at http://fritz.box
14:58:45 debug [pimatic-homeduino]: contact1: { id: 1337110, all: false, contact: false, unit: 1 }
14:58:45 debug [pimatic-homeduino]: pir5: { id: 1337110, all: false, presence: true, unit: 1 }
14:58:45 debug [pimatic-homeduino]: switch1: { id: 1337110, all: false, state: true, unit: 1 }
14:58:45 debug [pimatic-homeduino]: received: [ 216, 364, 1237, 2572, 10176 ] 131012101210121012101212101012121010121012101212101210101210121210121012101012101210121210101212101210101210121210101210121012121014
14:58:45 debug [pimatic-homeduino]: data: "RF receive 364 2572 216 1237 10176 0 0 0 010203020302030203020303020203030202030203020303020302020302030302030203020203020302030302020303020302020302030302020302030203030204"

----> Same signal is received as well for second time?

14:58:45 debug [pimatic-homeduino]: data: "ACK"
14:58:44 debug [pimatic-homeduino]: Sending Protocol: switch1 id:1337110 unit:1 all:false state:true Pin:4 Repeats:7

--> Switching LAMP ON 2nd time no manual action here?

14:58:44 debug [pimatic-homeduino]: contact1: { id: 1337110, all: false, contact: false, unit: 1 }
14:58:44 debug [pimatic-homeduino]: pir5: { id: 1337110, all: false, presence: true, unit: 1 }
14:58:44 debug [pimatic-hap]: switching device Lamp Televisie to true
14:58:44 debug [pimatic-homeduino]: switch1: { id: 1337110, all: false, state: true, unit: 1 }
14:58:44 debug [pimatic-homeduino]: received: [ 216, 364, 1236, 2568, 10176 ] 131012101210121012101212101012121010121012101212101210101210121210121012101012101210121210101212101210101210121210101210121012121014
14:58:44 debug [pimatic-homeduino]: data: "RF receive 364 2568 216 1236 10176 0 0 0 010203020302030203020303020203030202030203020303020302020302030302030203020203020302030302020303020302020302030302020302030203030204"

-----> Signal is received

14:58:44 debug [pimatic-homeduino]: data: "ACK"
14:58:43 debug [pimatic-homeduino]: Sending Protocol: switch1 id:1337110 unit:1 all:false state:true Pin:4 Repeats:7

----> Switching LAMP ON

need help with compile and upload

I tried to compile and upload from Arduino Ide to an UNO under Win7 but doesn't work.
First copied the 4 folders "DHTlib; Keypad; ... " with its files from "libraries" into the Arduino "libraries" folder, looks like all folders and files in there. They are listed in the IDE under Library-Menu-List.
Then open the "homeduino.ino" file from folder on desktop.
When I try to compile (check) or Upload there ar a lot of err messages starting with "'RFControl' has not been declared" :

In file included from homeduino.ino:7:
/rfcontrol.h: In function 'void rfcontrol_loop()':
rfcontrol.h:7: error: 'RFControl' has not been declared
... 
In file included from homeduino.ino:12:
/dht.h: At global scope:
dht.h:4: error: 'dht' does not name a type
/dht.h: In function 'void dht_command()':
dht.h:23: error: 'DHT' was not declared in this scope
...
homeduino:133: error: 'RFControl' has not been declared

can you help me?

Commands sometimes get endless repeat on/off/on/off/on/off...

Hi,
i have the homeduino plugin for pimatic, using some 433 mhz powerplugs. only have a RF-Transmitter installed.

i am really confused and not able to debug this problem.
Sometimes when i use some rules to change device state from on/off and so on. Pimatic sends endless change events to the powerplug. No rule is executed while changing from on to off to on to off ..... Every rule at my system has logging and is not triggered.

LOG:

08:48:20debug [pimatic-homeduino]: data: "ACK"
08:48:19debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:48:19debug [pimatic-homeduino]: data: "ACK"
08:48:19debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:48:19debug [pimatic-homeduino]: data: "ACK"
08:48:17debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:48:17debug [pimatic-homeduino]: data: "ACK"
08:48:17debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:48:17debug [pimatic-homeduino]: data: "ACK"
08:48:16debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:48:16debug [pimatic-homeduino]: data: "ACK"
08:48:16debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:48:16debug [pimatic-homeduino]: data: "ACK"
08:48:15debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:48:15debug [pimatic-homeduino]: data: "ACK"
08:48:15debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:48:15debug [pimatic-homeduino]: data: "ACK"
08:48:14debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:48:14debug [pimatic-homeduino]: data: "ACK"
08:48:13debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:48:13debug [pimatic-homeduino]: data: "ACK"
08:48:13debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:48:13debug [pimatic-homeduino]: data: "ACK"
08:48:12debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:48:12debug [pimatic-homeduino]: data: "ACK"
08:48:11debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:48:11debug [pimatic-homeduino]: data: "ACK"
08:48:10debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:48:10debug [pimatic-homeduino]: data: "ACK"
08:48:09debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:48:09debug [pimatic-homeduino]: data: "ACK"
08:48:09debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:48:09debug [pimatic-homeduino]: data: "ACK"
08:48:08debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:48:08debug [pimatic-homeduino]: data: "ACK"
08:48:07debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:48:07debug [pimatic-homeduino]: data: "ACK"
08:48:03debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:48:03debug [pimatic-homeduino]: data: "ACK"
08:48:03debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:48:03debug [pimatic-homeduino]: data: "ACK"
08:48:02debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:48:02debug [pimatic-homeduino]: data: "ACK"
08:48:01debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:48:01debug [pimatic-homeduino]: data: "ACK"
08:48:00debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:48:00debug [pimatic-homeduino]: data: "ACK"
08:47:58debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:47:58debug [pimatic-homeduino]: data: "ACK"
08:47:58debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:47:58debug [pimatic-homeduino]: data: "ACK"
08:47:58debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:false Pin:4 Repeats:7
08:47:58debug [pimatic-homeduino]: data: "ACK"
08:47:57debug [pimatic-homeduino]: Sending Protocol: switch2 houseCode:20 unitCode:16 all:false state:true Pin:4 Repeats:7
08:47:57d

pins assignment restriction?

I am trying to reuse a ninjacrust (an arduino RF capp for the raspberryPI). The transceiver and receiver have their own pods on the board and you can't move them around unless you don't care to have them hanging. The modules use pins 3 and 5 and when I set those up in the pimatic config.json it refuses to start saying that pin must be 0 or 1, I then edited node_modules/pimatic-homeduino/homeduino.coffee and replaced "0, 1" with "0, 5" and now it starts.

What I am wondering is the reason to restrict the pin to 0 or 1 ? What issue am I running into if I try using different ports?

allow configuration of repeats

It would be nice to be able to configure how often a code sent repeatedly, globally and per device. This would improve stability of the RF connection.

Debug function and ACK

In the pimatic debug output the homeduino log shows only ACK 0 instead of the protocoll (wheater1, switch1, ...). How to come back to see the protocoll with id and so stuff?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.