Code for other devices

jx2b.graham
Posts: 11
Joined: Fri Feb 26, 2016 6:43 am

Post

I would like to add devices like lights and such but need to know what the device numbers are for the config file.
User avatar
pzygmunt
Posts: 19344
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

Hi.
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.
jx2b.graham
Posts: 11
Joined: Fri Feb 26, 2016 6:43 am

Post

I don't have the same options as you...
sensor.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
pzygmunt
Posts: 19344
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

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.
jx2b.graham
Posts: 11
Joined: Fri Feb 26, 2016 6:43 am

Post

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.
User avatar
pzygmunt
Posts: 19344
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

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/ ?
jx2b.graham
Posts: 11
Joined: Fri Feb 26, 2016 6:43 am

Post

Thank you, for the Humidity/temperature I am using a KY-015 board.
Zauberhaft34
Posts: 3
Joined: Sun Feb 28, 2016 1:18 pm

Post

When I edit something, i can´t safe it because there standing permission denied
User avatar
pzygmunt
Posts: 19344
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

sudo nano /etc/supla-dev/supla.cfg

Return to “Help”