Yes so it means that your nano clone should work (mine works).
I assume you already try to reboot and restart pimatic 2 or 3 times?
Check that https://github.com/pimatic/pimatic/issues/222#issuecomment-57917641
maybe it can help
Pimatic don't connect to arduino nano clone
Yes so it means that your nano clone should work (mine works).
I assume you already try to reboot and restart pimatic 2 or 3 times?
Check that https://github.com/pimatic/pimatic/issues/222#issuecomment-57917641
maybe it can help
pimatic rocks!
info [pimatic-homeduino]: Connected to homeduino device.
I don’t explain it.
I don’t know why arduino is connected right now. I restart the rpi and pimatic many times without a possible message and after a restart again just now it works.
I’m speechless
At the moment there are few troubles around homeduino https://github.com/pimatic/pimatic/issues/521#
pimatic rocks!
It works great. But i have a short question. Before i change from pilight to homeduino the 433mhz receiver and transmitter directly connected to rpi. So i’m writing a c program to read the receiver and transmit data from 4 custom sensors (arduino nano with a dht22)
i want to transmit the data from the sensors to the homeduino now. Can i use HomeduinoRFGenericSensor for my Problem?
my current sketch on the sensor arduino
#include <RCSwitch.h>
#include "DHT.h"
RCSwitch mySwitch = RCSwitch();
#define DHTPIN 7
#define DHTTYPE DHT22 //DHT11, DHT21, DHT22
DHT dht(DHTPIN, DHTTYPE);
int sensor_id = 32;
float temp_offset = 0;
void setup() {
pinMode(2, OUTPUT); // Either way, we'll use pin 7 to drive the data pin of the transmitter.
Serial.begin(9600);
// Transmitter is connected to Arduino Pin #10
mySwitch.enableTransmit(2);
dht.begin();
}
void loop() {
float h = dht.readHumidity(); //Luftfeuchte auslesen
float t = dht.readTemperature(); //Temperatur auslesen
if (isnan(h) || isnan(t)) {
//Serial.println("Failed to read from DHT sensor!");
return;
}
// 31 1/0 300 50
// id +/- temp hum
unsigned long i = sensor_id * 100000;
if (t > 0.0) i += 10000;
i += (int)(t+0.5) * 100;
i += (int)(h+.5);
//Serial.print("send ");
Serial.println(i);
mySwitch.send(i, 24);
delay(60000);
//delay(10000);
}
In theory yes, it’s the purpose of the generic sensor
you can get the client (ie sensor side) here : https://github.com/Yves911/generic_433_sender
you will have to adapt that for your specific need.
On the pimatic side you will just have to declare the new device
{
"id": "elec-sensor",
"name": "Compteur élec",
"class": "HomeduinoRFGenericSensor",
"attributes": [
{
"name": "elec",
"type": 2,
"decimals": 3,
"baseValue": 59743,
"unit": "kWh",
"displayUnit": "kWh",
"label": "elec"
}
],
"protocols": [
{
"name": "generic",
"options": {
"id": 1111
}
}
]
},
I am now using this for 2 sensors since 5 months, it works perfect!
pimatic rocks!
https://github.com/Oitzu/generic-rfbox/tree/development/libraries/PimaticProbe
Written a class for this purpose.
Look at the examples how to use it.
it works perfectly last 5 days until i’m updating pimatic and pimatic-homeduino plugin today. If i’m connecting to console i’m see all
ready
PING hello
ACK
RF receive 676 4319 2028 10136 0 0 0 0 010201020102020101020102010202010102010202010201010201020102010202010102020101020102010201020102010201020102010201020102010201020102010201020102010201020102010202010102020101020201010202010201020103
RF receive 675 4320 2029 10132 0 0 0 0 010201020102020101020102010202010102010202010201010201020102010202010102020101020102010201020102010201020102010201020102010201020102010201020102010201020102010202010102020101020201010202010201020103
RF receive 294 966 378 9900 0 0 0 0 01010101011201120110011001120101011001100110010103
RF receive 319 952 9888 0 0 0 0 0 01010101011001100110011001100110011001101010101002
RF receive 298 970 384 9892 0 0 0 0 01010101011001100110011001100101011001120110010103
RF receive 254 974 388 9920 0 0 0 0 01010101011201120112011201120112010101120112010103
RF receive 305 967 9896 0 0 0 0 0 01010101011001100110011001100110010101100110010102
RF receive 675 4316 2026 10128 0 0 0 0 010201020102020101020201020102010102020102010201010201020102010201020201020101020102010201020102010201020102010201020102010201020102010201020102010201020102010201020201010202010201010202010102010203
RF receive 677 4314 2025 10124 0 0 0 0 010201020102020101020201020102010102020102010201010201020102010202010102020101020102010201020102010201020102010201020102010201020102010201020102010201020102010202010201020101020102020102010102010203
RF receive 698 4288 1999 10088 0 0 0 0 010201020102010202010201020102010201010202010102010201020102010201020201020101020102010201020102010201020102010201020102010201020102010201020102010201020102010201020201020102010102010201020102020103
but my pimatic show only this and i can’t switch my devices on/off after the last update today.
17:48:46.896 [pimatic-homeduino] info: Connected to homeduino device.
debug [pimatic-homeduino]: data: "ready"
is this a problem of the current version?
having no problems here after the update to homeduino 0.8.40.
all parameters working in normal range
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !