Code for other devices
-
- Posts: 11
- Joined: Fri Feb 26, 2016 6:43 am
I would like to add devices like lights and such but need to know what the device numbers are for the config file.
-
- Posts: 19344
- Joined: Tue Jan 19, 2016 9:26 am
- Location: Paczków
Hi.
Which platforms do you use. ESP8266/Raspberry/Arduino ?
You can choose channel device function at channel properties page.
Which platforms do you use. ESP8266/Raspberry/Arduino ?
You can choose channel device function at channel properties page.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 11
- Joined: Fri Feb 26, 2016 6:43 am
I don't have the same options as you...
You do not have the required permissions to view the files attached to this post.
-
- Posts: 19344
- Joined: Tue Jan 19, 2016 9:26 am
- Location: Paczków
sudo nano /etc/supla-dev/supla.cfg
and change port type from 2000 to 2010
If you need activate roller shutter function then you need to change 2000 to 2020. Additionally you have to set second gpio port.
For example:
[CHANNEL_8]
type=2020
gpio1=22
gpio2=17
After channel config modification, you should remove device from cloud.supla.org before you connect raspberry again.
and change port type from 2000 to 2010
If you need activate roller shutter function then you need to change 2000 to 2020. Additionally you have to set second gpio port.
For example:
[CHANNEL_8]
type=2020
gpio1=22
gpio2=17
After channel config modification, you should remove device from cloud.supla.org before you connect raspberry again.
-
- Posts: 11
- Joined: Fri Feb 26, 2016 6:43 am
Can you provide a list of the type codes and what features they add or enable? Also I have hooked up a humidity and temp sensor on GPIO 4 and don't seem to get the data anywhere.
-
- Posts: 19344
- Joined: Tue Jan 19, 2016 9:26 am
- Location: Paczków
In the case of Raspberry at this moment you can choice:
1000 - Sensor (Normal Open)
2000 - Relay HFD4
(gateway lock, gate, garage door, door lock)
2010 - Relay G5LA1A
(gateway lock, gate, garage door, door lock, power switch, light switch)
2020 - Relay 2xG5LA1A
(gateway lock, gate, garage door, door lock, power switch, light switch, roller shutter)
3000 - Thermometer
In the next version you will can set general purpose relay (2900) and define relay capabilities.
Regarding to thermometer.
Did you use 4k7 pull up resistor ?
Do you use DS18B20 ?
Do you see thermometer device in /sys/bus/w1/devices/ ?
1000 - Sensor (Normal Open)
2000 - Relay HFD4
(gateway lock, gate, garage door, door lock)
2010 - Relay G5LA1A
(gateway lock, gate, garage door, door lock, power switch, light switch)
2020 - Relay 2xG5LA1A
(gateway lock, gate, garage door, door lock, power switch, light switch, roller shutter)
3000 - Thermometer
In the next version you will can set general purpose relay (2900) and define relay capabilities.
Regarding to thermometer.
Did you use 4k7 pull up resistor ?
Do you use DS18B20 ?
Do you see thermometer device in /sys/bus/w1/devices/ ?
-
- Posts: 11
- Joined: Fri Feb 26, 2016 6:43 am
Thank you, for the Humidity/temperature I am using a KY-015 board.
-
- Posts: 3
- Joined: Sun Feb 28, 2016 1:18 pm
When I edit something, i can´t safe it because there standing permission denied
-
- Posts: 19344
- Joined: Tue Jan 19, 2016 9:26 am
- Location: Paczków
sudo nano /etc/supla-dev/supla.cfg