• Izpārdošana!
  • -30%
Creasol DomBus1: Domoticz board with 3 relays, 6 inputs, 1 AC input
  • Creasol DomBus1: Domoticz board with 3 relays, 6 inputs, 1 AC input
  • Creasol DomBus1: Domoticz board with 3 relays, 6 inputs, 1 AC input

Creasol DomBus1: Domoticz plate ar 2 relejiem, 6 ieejām, 1 maiņstrāvas ieeju

DomBus1ir elektroniska tāfele, kas paredzētaviegli paplašināt mājas automatizācijas sistēmu I / Os skaitu, izmantojotDomoticz software(uz aveņu vai citu aparatūru)samazinot enerģijas patēriņu.Izvelciet Domoticz spraudni, pievienojiet Creasol DomBus aparatūru, un visa paneļa I / O būs uzreiz pieejama panelī Slēdži!DomBus1 var piegādāt no 5 līdz 25 Vdc, unenerģijas patēriņš ir patiešām mazs: pie 12V, piemēram, 3mA gaidīšanas režīmā, 9.5mA ar 1 releju ON, 16mA ar 2 relejiem ON.

41,48 €
29,04 € Ietaupi 30%

Apjoma atlaides

Daudzums Unit discount Cena Jūs ietaupat
1 30% 29,04 € 12,44 €
2 32% 28,21 € 26,55 €
3 34% 27,38 € 42,31 €
4 35% 26,96 € 58,07 €
6 37% 26,13 € 92,09 €
9 40% 24,89 € 149,33 €
Daudzums

 

Politiche per la sicurezza (modificale con il modulo Rassicurazioni cliente)

 

Politiche per le spedizioni (modificale con il Modulo rassicurazioni cliente)

 

Politiche per i resi merce (modificale con il Modulo rassicurazioni cliente)

Ievads

creDomBus1 domoticz rs485 board with 3 relays output, 1 AC input and 6 inputs.DomB domoticz us1 ir elektroniska tāfele, kas paredzēta, lai viegli paplašinātu I / O skaitu mājas automatizācijas sistēmās, izmantojot Domoticz sof tware (uz Raspberry vai citas aparatūras), samazinot enerģijas patēriņu .

Izvelciet Domoticz spraudni, pievienojiet Creasol DomBus aparatūru, un visa paneļa I / O būs uzreiz pieejama panelī Slēdži!

DomBus1 var piegādāt no 5 līdz 25 Vdc , un enerģijas patēriņš ir patiešām mazs: pie 12 V, piemēram, 3mA gaidīšanas režīmā, 9.5mA ar 1 releju ON, 16mA ar 2 relejiem ON .

Ar RS485 kopni var savienot vienu vai vairākus DomBus dēļus, tāpēc izmantojot a4 vadu kabelisir iespējams ieviest I / O un sensoru tīklu2 līnijas ir paredzētas datiem un 2 strāvas padevei (no 5 līdz 24 Vdc).

Gaismas diodes, kas savienotas ar visām ieejām, izejām un kopnēm, ļauj pārbaudīt plates stāvokli un konstatēt jebkādas problēmas ar vadu savienojumiem:Gaismas diodes tiek iespējotas, nospiežotProgpoguun paliks aktīvs 60 sekundes, pēc tam tiks izslēgts līdzProgpoga tiek nospiesta vēlreiz.

Releja izejas Out1 un Out3 ir konfigurētas mazjaudas režīmam, patērējot mazāk nekā 30% no jaudas, kas parasti nepieciešama relejiem, tāpēc tos var izmantot izejām, kas ilgstoši paliek ieslēgtas (trauksmes / drošības signāli, nakts gaismas, ... ).

Gaismas diodes, zemas jaudas releja izejas un komutācijas režīma barošana nodrošina pilnīgu ieeju / izeju kontroli ar optimizētu enerģijas patēriņu.

Jebkuru nepieciešamo pielāgošanu, lūdzu, sazinieties ar mums: mēs parasti piedāvājam pielāgojumus pat nelieliem daudzumiem.

Iespējas

  • Pārslēgšanās režīma barošanas bloks, pārveidojot 5-25Vdc ieejas spriegumu uz 5V un samazinot enerģijas izkliedi / patēriņu
  • RS485, 115200bps pusduplekss (2 vadu kopne) ar 32 bitu mikrokontrolleru
  • 2 releja izejas (250 V 5A slēdža spēja ar neinduktīvu slodzi. Induktīvas slodzes gadījumā slēdža strāva ir mazāka)
  • 2 relejus var konfigurēt mazjaudas režīmā: strāvas patēriņš tiek samazināts līdz 6,5 mA @ 12 V, nevis 25 mA @ 12 V(tipisks releja spoles korektors)
  • 1 230 V maiņstrāvas ieeja (ar optronu), kas piemērota maiņstrāvas sprieguma uztveršanai: spaiļu bloks nav pieejams, tāpēc 2 vadi jāpielodē pie elektroniskās plates.
  • 6 ieejas, pilnībā konfigurējamas, ar iekšējo pievilkšanu līdz 5 V.
  • pašreizējais patēriņš gaidīšanas režīmā: parasti 6mA @ 5Vdc, 3mA @ 12Vdc, 2mA @ 24Vdc
  • Dominantz automātiski atpazīst jauno DomBus, kas pievienots RS485 kopnei, kad viena ieeja maina stāvokli, un atbilstošās I / O automātiski pievieno Domoticz slēdžu panelim
  • Vienkāršs veids, kā konfigurēt I / O, izmantojot slēdža aprakstu (piemēram, konfigurēt izeju kā parastu vai mazjaudas releju, parasti atvērtu vai aizvērtu vai konfigurēt ieeju kā parasti atvērtu vai aizvērtu digitālu vai analogu ....)
DomBus1 schema

Uzstādīšana

Izmantojot RS485 specifiskos kabeļus, iespējams iegūt gandrīz 1 km lineāru kopni ar vairākām ierīcēm. Alternatīvi, ir iespējams izmantot 2 vītus pārus lēta Cat.6 UTP vai STP kabeļa, vienu vītu pāri datiem (A un B) un vienu 12-24V barošanas avotam. Pieskarieties visām ierīcēm, izmantojot lineārās kopnes topoloģiju, lai iegūtu viszemāko atstarojumu / troksni, un abos galos pievienojiet 100-150 Oh rezistoru, kā parādīts 2. attēlā.

dombus connectionAN domoticz example1

Raspberry / PC pusē ir iespējams izmantot lētu USB-RS485 adapteri, ja nav pieejams sērijas ports ar RS485 draiveri.

Izmantojot šo instalācijas topoloģiju, tas ir iespējamsizvairieties no radiofrekvenču piesārņojuma un samaziniet savienojumu skaitu: DomBus1 gandrīz jebkurā telpā, kas savienots ar 4 vadu ekranētu kabeli, lai apmainītos ar datiem un iegūtu barošanas avotu (12 V akumulatora rezerves).

application pdfInstrukcijas

application pdfBrošūra

application pdf1. piemērs

Raspberry / PC pusē ir iespējams izmantot lētu USB-RS485 adapteri, ja nav pieejams sērijas ports ar RS485 draiveri.usb rs485 converter 200x200

Konfigurācija

Atspiediet šo TAR arhīvu domoticz direktorijā, izmantojot šādas komandas (no Linux apvalka):

 cd / home / pi / domoticz # vai citu direktoriju, kurā ir instalēts domoticz
wget -O /tmp/dombus.tgz http://docs.creasol.it/domoticz_CreasolDomBus.tgz
darva xvzf /tmp/dombus.tgz

Ievadiet domoticz vietni, dodieties uz Setup -> Hardware un izveidojiet jaunu aparatūru ar nosaukumu dombus (vai citu nosaukumu), ierakstiet Creasol DomBus .

Pievienojiet vienu DomBus ierīci vienlaikus: visas ierīces ir rūpnīcā ieprogrammētas ar adresi 0xff01 (sešstūra formāts), tāpēc, lai izvairītos no adrešu konfliktiem, tās adrese ir obligāti jāmaina uz citu (piemēram, 0x0001, 0x0002, 0x0003, ... vai jebkuru citu adresi. līdz 0xff00). Lai mainītu ierīces adresi, dodieties uz Slēdži, izvēlieties ierīci sākot ar " dombus - [Hff01] ..." noklikšķiniet uz Rediģēt un pievienot aprakstam ", HWADDR = 0x0002", lai mainītu tās adresi uz 0x0002: automātiski tiks izveidoti jauni slēdži ar jauno adresi ar nosaukumu "dombus - [H0002" ] ... " .

Katru I / O var konfigurēt, izmantojot Domoticz slēdža aprakstu: piemēram, ierīces tips IN_DIGITAL parasti ir Ieslēgts, ja tas nav savienots, un Izslēgts, kad tas ir īssavienots ar GND, taču šo funkciju ir iespējams apgriezt, norādotslēdža apraksts parametrs INVERTED, atdalīts no komata (,): "IN_DIGITAL, INVERTED" . Lūdzu, pārbaudiet šīs sadaļas I / O parametri un DomBus1 I / O iespējas.

I / O, kas netiek izmantoti, var atspējot Domoticz Setup -> Devices, noklikšķinot uz katras nederīgās ierīces zilās bultiņas (I / O).

I / O parametri

Parametra nosaukums Funkcija
HWADDR = 0xNNNN Iestatiet jauno dombus ierīces jauno adresi: tā paņems jauno adresi un noņems šo parametru no vecā slēdža. NNNN ir eksadecimāls skaitlis no 0x0002 līdz 0xfffe, tāpēc ir pieejamas 65533 kombinācijas. Ņemiet vērā katrai dombus ierīcei piesūcinātu adresi, jo adreses konflikta gadījumā ir nepieciešams izslēgt vienu no konfliktējošajām ierīcēm un pārējo programmēt uz citu adresi.
Apgriezts Izmanto, lai apgrieztu ievades vai izvades loģisko stāvokli. Var izmantot kopā ar OUT_DIGITAL, OUT_RELAY_LP, IN_DIGITAL.
Parasti domoticz slēdzis ir Ieslēgts, ja ievade ir augsti loģiskā līmenī (atvērta), un Izslēgta, kad tā ir saīsināta. Ja ir norādīts INVERTED, domotika slēdzis būs Ieslēgts, kad atbilstošajai ieejai būs īssavienojums ar zemi, un otrādi.
OUT_DIGITAL Izeja tiek pārvaldīta kā digitāla, ieslēgta, kad tā ir aktīva, un izslēgta, kad tā ir atspējota.
OUT_RELAY_LP Releja izeja tiek pārvaldīta zemas enerģijas taupīšanas režīmā, lai samazinātu relay spoles strāvas patēriņš ir mazāks par 30% no normālās vērtības.
IN_DIGITAL Digitālā ieeja ir Ieslēgta, ja atbilstošā ieeja ir augsta sprieguma līmenī (atvērta), un Izslēgta, kad atbilstošā ieeja ir GND (īssavienojums).

DomBus1 I / O iespējas

# Nosaukums Iespējas Noklusējuma konfigurācija Apraksts
1 Relejs OUT1 OUT_DIGITAL, OUT_RELAY_LP OUT_RELAY_LP Releja izeja, ko var pārvaldīt kā standarta releju (OUT_DIGITAL) vai mazjaudas releju (OUT_RELAY_LP)
2 Relejs OUT2 OUT_DIGITAL, OUT_RELAY_LP OUT_RELAY_LP NEVAR LIETOT
3 Relejs OUT3 OUT_DIGITAL, OUT_RELAY_LP OUT_DIGITAL Releja izeja, kas darbojas tikai kā standarta relejs
4 IN1 IN_DIGITAL, IN_ANALOG IN_DIGITAL Parasti tas darbojas kā digitālā ieeja, 0-5V: 0-5V analogā sprieguma mērīšanai ir nepieciešama modifikācija shēmā
5 IN2 IN_DIGITAL, IN_ANALOG IN_DIGITAL Parasti tas darbojas kā digitālā ieeja, 0-5V: 0-5V analogā sprieguma mērīšanai ir nepieciešama modifikācija shēmā
6 IN3 IN_DIGITAL, IN_ANALOG IN_DIGITAL Parasti tas darbojas kā digitālā ieeja, 0–5 V: shēmas modifikācija irnepieciešams, lai izmērītu 0-5V analogo spriegumu
7 IN4 IN_DIGITAL, IN_ANALOG IN_DIGITAL Parasti tas darbojas kā digitālā ieeja, 0-5V: 0-5V analogā sprieguma mērīšanai ir nepieciešama modifikācija shēmā
8 IN5 IN_DIGITAL, IN_ANALOG IN_DIGITAL Parasti tas darbojas kā digitālā ieeja, 0-5V: 0-5V analogā sprieguma mērīšanai ir nepieciešama modifikācija shēmā
9 IN6 IN_DIGITAL, IN_ANALOG IN_DIGITAL Parasti tas darbojas kā digitālā ieeja, 0-5V: 0-5V analogā sprieguma mērīšanai ir nepieciešama modifikācija shēmā
10 AC / OUT SSR IN_AC, OUT_DIGITAL IN_AC apgriezts 230Vac līnijas sensori, ko izmanto aptumšošanas vai līnijas sprieguma noteikšanai. DomBus1 paneli var pārveidot, lai shēmu aizstātu ar 60V 100mA SSR (strāvas patēriņš mazāks par 1mA), kas piemērots sirēnas vai citas drošības ierīces, apkures sistēmas vai citas zemsprieguma ierīces vadīšanai.

Lietošanas piezīmes

creDomBus1
12 vienības:


Typical installation schema

Installation schema
Often it's important to have a stable power to supply your Smart Home, to avoid troubles with the domotic controller (RaspberryPI or other), have internet connection always ON and are able to manage alarm sensors even in case of power outage.
  • Use a 12V power supply unit with backup battery charger, to avoid trouble on RaspberryPI or other devices. Also, in this way it's possible to get everything working even in case of power outage (domotic controller, domotic modules, network switches, routers, NVR and IPcams).
  • Use a 12V lead-acid battery well dimensioned to supply everything during blackout.
  • Use a DC/DC converter 12V → 5V 3A to supply the RaspberryPI, if you have it.
  • To use DomBus modules, use a standard alarm shielded cable (within 4 wires) to interconnect all modules to RaspberryPI (through a cheap RS485 to USB adapter).
  • Protect each bus with a fuse

Ports parameters

Parameter name Function
HWADDR=0xNNNN This command set new address for the dombus device: reload the Switch panel to see the new devices associated with the new address of DomBus. NNNN is an exadecimal number, from 0x0001 to 0xff00, so 65280 combinations are available. Keep note of address assegnated to each dombus device, because in case of address conflict it's needed to switch off one of the conflicting device and program the remaining one to another address, or make a factory reset as explained below.
INVERTED Used to invert the logic state of an input or output. Can be used in conjuction with OUT_DIGITAL, OUT_RELAY_LP, IN_DIGITAL, DIMMER.
Normally, domoticz switch is On if input is at logic level high (open), and Off when it's shorted to ground. If INVERTED is specified, domoticz switch will be On when the corresponding input is shorted to ground, and vice versa.
OUT_DIGITAL Output, open collector, active low, On => output wire is shorted to GND (max current 50mA). Off => output is open (current=0).
OUT_RELAY_LP Not recommended: output, open collector, active low, but with duty cycle 25% to reduce power consumption on relays coil
OUT_DIMMER Set the output as DIMMER, from 0 to 100% using 5% step, 500Hz frequency. Suitable to control LED strip lights
OUT_BUZZER Set two outputs as BUZZER: a piezo buzzer can be connected to the selected two ports (configured in push-pull) to generate 5KHz frequency when the corrsponding Domoticz switch is On. The Domoticz switch can be configured as selector: in this case buzzer will output 1 or more short alerts to notify a status, similarly to the led configured as OUT_DIGITAL with Domoticz switch configured as Selector.
OUT_BLIND

Port configured to control a blind, in close direction. Next port will be automatically configured as blind in open direction.
Ports OUT1 and OUT2 can directly be connected to 12V relay coils (if Vbus is 12-14V, or 24V relay coils if Vbus is 24V).
Ports IN1..IN3 can be configured as OUT_BLIND, but in this case should be connected to relayboard that already have a transitors/optocouplers to drive relays.

OUT_LEDSTATUS Configure a LED port to show the device status (flashes when a frame is transmit to the RS485 bus)
OUT_ANALOG Set output as analog, with 0-10V linear output. It can be used to control another electronic board with 0-10V or 1-10V input (light dimmer, heat pump power, linear valve, ....).
The domotic controller will display a device with a slider, like dimmer, with values from 0 (=0V) to 100 (=10V).
Using Domoticz, it's possible to create LUA or dzEvent automations that automatically change the output voltage according to some inputs (brightness, temperature, renewable power availability, ...): the DAC value can be set using the syntax commandArray['DEVICE_NAME']='Set Level 74' to set the output voltage to 7.4V.
IN_DIGITAL Digital input, is On when the corresponding input is at high voltage level (open), and Off when the corresponding input is at GND (shorted).
IN_ANALOG Port configured as IN_ANALOG can be used to measure DC voltage, like battery voltage, bus voltage, thermistors and temperature sensors, .... The voltage is sampled every 15 seconds.
DomBusTH has one pad/hole where it's possible to solder a wire to measure an external DC voltage, <30Vdc; a solder jumper must be opened (because that pad is connected to Vbus).
Also, one or more of the 4 input wires can be configured as analog inputs, 0-3V range: a solder jumper in the PCB must be opened (by cutter) to disable the internal pullup resistor. Also, external resistive divider should be added to measure higher voltages, so the voltage at the input terminal block must be less or equal than 3V.
On DomBus12 it's possible to use IO7, IO8 and IO9 ports as analog inputs. Also, it's possible to use IO1, IO2, IO3, IO4 ports as analog inputs, but in this case it's needed to open, using a cutter, the corresponding PCB jumper PU1-PU4 (that internally connect the input line with a 10k pullup resistor): for example, to use IO1 as analog input, the PU1 PCB jumper must be open. Analog voltage must not exceed the 0-3V range: if voltage range is higher, a resistive divider must be applied externally.
On DomBus23 only IO1 and IO2 ports can be configured as analog inputs: only 0-3V range is supported, and a resistive divider must be externally connected to measure higher voltages.
IN_COUNTER Used to count pulses, max 16 pulses/second (57kW max using 1000pulses/kWh meter, or 28kW max using 2000pulses/kWh meter). This solution is perfect to count energy, gas, water, ...If TYPENAME=kWh is also specified in Description, a device with both energy and power will be created. Other options that can be set for this kind of device is OPPOSITE=dev to set the device counting energy in the opposite direction (import vs export), and DIVIDER=nnnn where nnnn is the number of pulses/kWh (default 1000, but can be 1666, 2000 or any reasonable value).
IN_TWINBUTTON This is a method to connect two pushbuttons/switches to a single input, to get a UP/DOWN/STOP select switch. The two switches are connected together by a 4.7KOhm resistor, using the schema indicated in the application notes below.
A For analog and distance sensors: used to compute the real value using the formula  REAL_VALUE=A * VALUE_FROM_DOMBUS + B.
B For analog and distance sensors: used to compute the real value using the formula  REAL_VALUE=A * VALUE_FROM_DOMBUS + B
DIVIDER Used with IN_COUNTER ports to set how many pulses per unit of measure. For example, using energy meter with 2000 pulses/kWh, the option DIVIDER=2000 should be set; in case of water meter with 20000 pulses/m³, DIVIDER=20000 should be set.
TYPENAME Option to force the creation of a the specified Domoticz. For example, IN_COUNTER,TYPENAME=kWh to create a energy/power meter instead of a normal incremental counter, or IN_ANALOG,TYPENAME=Temperature,A=0.123,B=-50 to get an analog input that return a temperature using the linear equation Temperature=A*x+B where x is the analog value read
OPPOSITE Used for kWh devices, measuring electric power and energy. Suppose to have a PowerMeter Import device, with Unit=98 (see Setup ⇒ Devices), measuring the power/energy from grid, and PowerMeter Export, with Unit=99, measuring the power/energy produced and fed to the grid. If these devices are connected to the pulse output of an energy meter, when a pulse is received from the Import device it means that exported power is 0, and vice-versa. This parameter is used to set what is the Unit number associated to the opposite counter.
So, PowerMeter Import description must have IN_COUNTER,TYPENAME=kWh,OPPOSITE=99 and PowerMeter Export description IN_COUNTER,TYPENAME=kWh,OPPOSITE=98
DISABLE Used to disable one or more ports: it can be usedful with large buses with more than 255 ports (devices), because Domoticz has a limit of max 255 devices for each bus. In this case it's possible to disable unused module ports by writing, in the Description of port 1, the list of disabled ports separated by colon, for example
DISABLE=2:5:6:7:11 to disable ports 2,5,6,7,11 of the current module. Port 1 can be never disabled.
To enable a previosly disabled port, just edit the port 1 description for that module, removing the port from the list of DISABLE command: that port will be enabled again in 60 seconds (wait for 1 minute and reload the Domoticz panel).
DCMD Dombus Command: through this keyword it's possible to set a command to send to the same or another module, when an event occurs.
In this way, when an event occurs, the module send a command to a dombus module to execute an operation, and this work without the need of a Domoticz controller and without the need to configure Domoticz to manage this kind of actions. See the DCMD section below.

DCMD commands

This is an experimental function, undergoing testing and development, available on DomBusTH, DomBus12, DomBus23, DomBus31 modules.

For each port it's possible to configure, through the Domoticz Description field, one or more DCMD commands.

DCMD is a command that is sent to the same or to another DomBus module, in response to an event, and more DCMD commands can be specified for the same event and port.

The syntax is DCMD(Event:ValueLow:ValueHigh)=ModuleAddress.ModulePort:Command:Value

where ValueLow, ValueHigh, Value are optional parameters.
When ModuleAddress corresponds to the same module that we're editing, the command is executed locally, by the same module.
When ModuleAddress corresponds to another Dombus module, the command is sent by bus to that module.

DCMD: list of possible events
Event Description Example
OFF This even occurs when input goes OFF DCMD(OFF)=13.1:OFF
When input goes off, turns OFF also port 1 of module 13
ON This even occurs when input goes ON

DCMD(ON)=13.2:ON:90s
When input goes on, turns ON port 2 of module 13 for 90s

PULSE Input is pulsed ON for less than 0.5s DCMD(Pulse)=13.3:TOGGLE
When input is pulsed shortly, send command to module 13 port 3 to toggle it's output OFF->ON or vice versa
PULSE1 Input is pulsed ON for about 1s

DCMD(Pulse1)=13.3:ON
When input is pulsed for 1s, turns ON port 3 of module 13

PULSE2 Input is pulsed ON for about 2s

DCMD(Pulse2)=13.3:OFF
When input is pulsed for 2s, turns OFF port 3 of module 13

PULSE4 Input is pulsed ON for about 4s

DCMD(Pulse4)=13.4:ON:2h
When input is pulsed for 4s, turns ON port 4 of module 13 for 2 hours

DIMMER    
VALUE Sensor value is in the range between ValueLow an ValueHigh

DCMD(Value:0:20.5)=13.5:ON
DCMD(Value:21:50)=13.5:OFF
Turns ON output 13.5 when temperature is below 20.5°C, and turns OFF when above 21°C

DCMD(Value:0:12.2)=31.7:ON
DCMD(Value:13.8:20)=31.7:OFF
Turns ON port 31.7 when the current voltage is below 12.2V, and turns OFF when voltage is above 13.8V

 

DCMD: list of possible commands
Command Description Example
OFF Turns output OFF. If the optional Value is specified, output will be OFF for the specified time, then returns ON  
ON Turns output ON. If the optional Value is specified, output will be ON for the specified time, then returns OFF  
TOGGLE Change state to the selected output. If the optional Value is specified, wait the specified time before toggling output  
DIMMER    

 

Value optional parameter: list of possible values for the command
Command Description Example
number A number without any suffix should be multiplied by 31.25ms (seconds/32) 1=31.25ms
3=93.75ms
16=500ms
numberS Number of seconds, from 1 to 3600

1s=1 second
60s=1 minute
100s, ....

 

numberM

Number of minutes, from 1 to 1440 1m=1 minute
10m=10 minutes
180m=3 hours
numberH Number of hours, from 1 to 43824 1h=1 hour
6h= 6 hours
72h=3 days
numberD Number of days, from 1 to 1826

1d=1 day
....

 

Examples 1: configure a pushbutton switch to have 3 functions:

short pulse => toggle ON/OFF light
1 second pulse => enable ventilation for 30s
2 seconds pulse => disable ventilation

This 3 events can be configured writing in the description of the pushbutton switch:
DCMD(Pulse)=0101.1:TOGGLE, (with a short pulse, toggle port 1 of module 0x0101)
DCMD(Pulse1)=0101.2:ON:30m, (with 1 second pulse => turn on port 2 of 0x0101 for 30 minutes)
DCMD(Pulse2)=0101.2:OFF, (with 2 seconds long pulse, turn OFF the port 2 of 0x0101)

The Domoticz switch Description will be

IN_DIGITAL,INVERTED,
DCMD(Pulse)=0101.1:TOGGLE,
DCMD(Pulse1)=0101.2:ON:30m,
DCMD(Pulse2)=0101.2:OFF

Example 2: temperature sensor that enable/disable electric heater and valve

In the description field of the temperature sensor we'll write

DCMD(Value:0:20.5)=0101.3:ON, (if temperature between 0 and 20.5°C, turns ON heater on output 3 of module 0x0101)
DCMD(Value:0:20.5)=0102.1:ON, (if temperature between 0 and 20.5°C, turns ON valve output 1 of module 0x0102)
DCMD(Value:20.8:50)=0101.3:OFF
(turn OFF heater when temperature above 20.8°C)
DCMD(Value:20.8:50)=0102.1:OFF
(turn OFF valve when temperature above 20.8°C)
Domoticz temperature sensor Description will be:

TEMPERATURE,
DCMD(Value:0:20.5)=0101.3:ON,
DCMD(Value:0:20.5)=0102.1:ON,
DCMD(Value:20.8:50)=0101.3:OFF,
DCMD(Value:20.8:50)=0102.1:OFF

 

Installation

Using RS485 specific cables it's possible to get almost 1km linear bus with several devices attached. Alternatively, it's possible to use 2 twisted pairs of cheap Cat6 UTP or STP cable, one twisted pair for data (A and B) and one for 12-24V power supply. Ideally, all devices should be connected using a linear bus topology, to get the lowest reflection/noise, and connect 100-150 Ohm resistor on the two ends, as illustrated in the Fig. 2. In practice, this is not important for common buildings.

dombus connection

AN domoticz example2

At Raspberry/PC side, it's possible to use a cheap USB-RS485 adapter, if a serial port with RS485 driver is not already available.

Using DomBus modules it's possible to:

  1. avoid RF pollution
  2. no need to periodically change batteries on sensors/actuators
  3. using a UPS or  13.6V power supply with backup battery, it's possible to get a building automation system that works also in case of power outage
  4. very very low power consumption

 

Writing a microSD card with a fresh Raspbian + Domoticz distribution

Click here if you need to write a microSD card with a clean updated Raspbian+Domoticz image optimized to extend SD life (minimizing writings), and with some addons (firewall, backup, libraries).


Adding DomBus plugin to Domoticz

This procedure is not needed in case of a new Domoticz installation writing the SD as written above.
If Domoticz does not already include the DomBus plugin, type the following commands (from Linux root shell: type sudo su - to become root):

#install git, if not already installed
which git
if [ $? -ne 0 ]; then sudo apt install git; fi

#change to the domoticz directory / plugins
cd /home/pi/domoticz/plugins 

#fetch the Python Plugin Manager (that can be used to install/upgrade other plugins, including Creasol DomBus)
git clone https://github.com/ycahome/pp-manager

#fetch Creasol Plugin
git clone https://github.com/CreasolTech/CreasolDomBus

#restart Domoticz daemon
service domoticz restart

Domoticz configuration

After plugins installation and Domoticz restart, it's possible to add the Creasol DomBus hardware (Setup->Hardware , add new "dombus" hardware type "Creasol DomBus" and specify the serial device, normally /dev/ttyUSB0) and connect the DomBus device to the RS485 bus.
DomBus module is factory programmed with a default address indicated above, and only one port will be automatically added to the Switches panel of Domoticz. Enter the Switches panel, find the new device with the DomBus default address, click on Edit and add in the description ,HWADDR=0x0001 to set the new address to 0001, or specify another address of your choice. Reload the Switches panel to see all input/output/led ports of DomBusTH active.

With Domoticz, each DomBus port can be configured via the Domoticz device description: for example a port IN_DIGITAL normally is On when it's left unconnected, and Off when it's shorted to GND, but it's possible to invert this function specifying in the device description the parameter INVERTED, separated by a comma (,): IN_DIGITAL,INVERTED . Relay outputs can be configured writing in the description field OUT_DIGITAL or OUT_RELAY_LP: in the latter case, relay are internally managed to assure a low power consumption.
Please check the sections Ports capabilities and Ports parameters.

Ports that are not used can be disabled in Domoticz Setup ⇒ Devices clicking on the blue arrow of each useless port (device), but in case of a bus with almost 255 ports, it's suggested to disable the unused ports by using the DISABLE command:
1. suppose that DomBus module 0x0001 has ports 3,4,5,6,8 not used
2. in Domoticz Switches panel select port1 of that module ([0001.1] RL1)
3. click on Edit, and add in the Description field DISABLE=3:4:5:6:8 and click on Save.
In this way, the selected ports will be disabled and removed from the Devices list. With this solution it's possible to add more DomBus modules to the same bus, with up to 255 enabled ports. In large buildings, it's a good practice to have more than one bus, to divide floors or areas.


Installing CreasolDomBus Home Assistant custom component

The integration code is available at https://github.com/CreasolTech/home-assistant-creasol-dombus
The following commands should be executed in the linux shell: for people using Windows, use git UI to download the custom component and place it in the right directory.
cd /tmp
git clone https://github.com/CreasolTech/home-assistant-creasol-dombus.git
cp -a home-assistant-creasol-dombus/custom_components HADIR/config/
ha core restart
where HADIR is the Home Assistant root dir: in case of Hassio, use the command cp -a home-assistant-creasol-dombus/custom_components /config/
After reboot of Home-Assistant, this integration can be added through the Configuration -> Integrations -> + ADD INTEGRATION and selecting Creasol DomBus integration.

FAQ about DomBus products

How can I change address of DomBus1 device?
DomBusTH is factory programmed with address 0xff51 : please connect only 1 new/unprogrammed DomBusTH to the existing bus, and you'll find one "switch" device in the Domoticz Switches panel with name "dombus - [Hff51] OUT1" or something similar.
Click on the Edit button of that switch and add the following text to its description:  ,HWADDR=0x0001  (don't forget the comma used to separate each parameter) to set the new address to 0001, ot another not-used value.
DomBus device will be set to the specified address, then you'll find in the Switches panel all ports with the selected address.
At this point you can add another new dombus device, and change its address in the same way.
DomBusTH: how to fix it?
DomBusTH electronic board must be fixed by a just 4 points of hot glue or mastic on the blank cover with a 3-4mm diameter hole in the center.
Please keep in mind that:
  1. sensor needs that air circulate easily, but the polymers inside it can be damaged by direct sun light and dust: for this reason the hole must be centered with the LEDs inside the board, and sensor must stay below the hole!
  2. when LEDs are steady ON: for this reason they must stay above the sensor, and air must circulate easily from bottom to top
  3. don't cover the programming pads, so it will be possible to further upgrade the firmware without removing the board from the plastic cover
DomBusTH: how to do a factory reset?
Normally, factor reset is not needed because, enabling debug on Domoticz controller, it's always possible to know the address of a device, changing its address, and for each port change it's configuration through the Domoticz web panel.
Anyway, it's possible to do a factory reset in this way:
  1. Disconnect the device
  2. For firmware version before 2021-11-11: Solder the PCB jumper a to force IN4 in low impedance (150 Ohm resistor)
  3. Connect together IN1, IN2, IN3, IN4 wires
  4. Connect the device to the power supply: you can see a red flash 1000ms long, that notify that configuration was restored to the factory default.
  5. For firmware version before 2021-11-11: If IN4 is used as input, remove the solder bump on PCB jumper a
How many DomBus modules can I connect to a bus?
Domoticz has a limit of 256 devices (I/O) to a single hardware, and this correspond to 20-30 DomBus modules (it depends by the number of I/O/Sensors for each module).
It's possible to have more than one bus, each bus associated to one RS485 port: for example for large buildings or if it's needed to differentiate the buses to increase system security, it's possible to use many RS485/USB adapters connected to Domoticz, one for each bus.
Why there is a long delay between pushing a button and get light/output on?
Some possible problems that lead to long latency are:
  1. bus is not terminated by resistors: RS485 is a balanced bus, and need two resistors 100-150 ohm connected to the two opposite end of the bus.
    RESISTOR --- Module1 --- Module 2 --- Raspberry --- ..... --- Module 20 --- Module 21 --- RESISTOR between A and B
    Some DomBus modules have a PCB jumper that can be shorted (using a solder iron) to enable the RS485 resistor already included in the module.
    There must be exactly 2 resistors connected on the bus!
  2. Latency can be caused by Domoticz being busy with other services. Disable hardware that is not used or not needed, like Python Plugin Manager that is known to cause longer latencies. Also, enable logging so you can check exactly what is the latency reason (Domoticz reading the Raspberry internal sensors/cpu usage/disk usage, for example).
  3. Update DomBus plugin to the last version: you can install/enable Python Plugin Manager, update all python plugins (including Creasol Dombus) and then disable it.
Why DomBus device does not work?
1. Are you using Domoticz? Does it work?
2. Did you installed the Creasol DomBus plugin on Domoticz? If not, check the Configuration section above
3. If you open the Domoticz web panel, and enter Settings -> Hardware, can you find the Creasol DomBus protocol ? Did you enable it? If not, check the Configuration section above
4. When you connect the DomBus device to the RS485 bus, can you see a new device in the Domoticz Switches panel? if not, the device cannot communicate to Domoticz by RS485 serial bus. In this case, check that:
  a) DomBus device is supplied by 12Vdc or similar voltage
  b) RS485 bus is connected (A, B, GND) to Domoticz (Raspberry or other hw) through the USB/RS485 adapter or other RS485 adapter
  c) Verify that the DomBus protocol on Domoticz is configured correctly (115200bps and right serial device), and that there are not 2 DomBus hardware with in Domoticz with the same serial port
Why current consumption is 0uA?
DomBus devices have a serie protection resistor, 2.2 Ohm, acting as a fuse when the user forget to protect 12V power supply by a fuse. Maybe the resistor is burned (you can check using an ohm-meter) and can be replaced by another resistor or, if you know what you do, by a short circuit.
DomBus1: first version of DomBus1 was not protected against polarity inversion, and switching mode power supply circuitry break down in case of polarity inversion opening the circuit. If you have a solder iron, you can try DomBus1 connecting a 5Vdc power supply to +5V indicated by the red arrow, and GND terminal block. Click to see the picture!
DomBusTH: Check polarity: the first wire (black) is ground (0V) and the second wire (brown) V+ (normally, +12V). DomBusTH is protected against polarity inversion.

DomBus software ChangeLog

2021-10-25
IN_COUNTER has changed: now it outputs two 16bit incremental counters: updated counter, and last counter processed by the domotic controller (confirmed by an ACK from the controller): in case that the domotic controller is offline (stopped or while booting), no pulses are lost, but they are accumulated and sent as soon as the controller return online. The max number of accumulated pulses is 65535: in case that more than 65535 pulses were received while controller is down, the counter is freezed to 65535.
2021-10-19
Improved IN_COUNTER ports: debouncing has been disabled (to works well with power meters with 2000 pulses/kWh).
DCMD(On) and DCMD(Off) commands now are available also for output ports, so when an output has been activated/disactivated, a DCMD command is sent to the same module (this can be useful to get two relays activated together, simultaneously, by a unique command) and/or to other modules.
2021-03-16
Added IN_COUNTER type, used to count pulses from electric meter, gas meter, water meter, .... Max pulse frequency = 5Hz (input is debounced), min transmission period = 5s (accumulate pulses if frequency is greater than 0.2Hz, to avoid high CPU usage by Domoticz.
Added TYPENAME=kWh option, to get an electric Power/Energy meter: this device computes both energy (proportional to the number of pulses) and power (frequency of pulses).
Added OPPOSITE=Unit option, associated to kWh devices (power/energy meters): when the opposite device receives a pulse, power for the current device is immediately set to 0 Watt
For example: PowerMeter_Import, with Unit=98. PowerMeter_Export, with Unit=99
On PowerMeter_Import description, add ,OPPOSITE=99, and in PowerMeter_Export description add ,OPPOSITE=98 : in this way when a pulse is received from the import device, the power on export device will be set to 0, and viceversa.
After powerOn, the module transmits its firmware version and module name, logged by Domoticz with priority INFO.
When device is supplied, it transmits its module name and firmware version so it can be logged by Domoticz.
DCMD commands now are transmitted before sending commands to the controller, to reduce latency.
2020-12-28
New protocol V2, with both destination and source addresses, and cmdLen field divided by 2 (to address up to 14 bytes for each command).
New DCMD_CONFIG and DCMD commands to get dombus commands (command from module to module).

Need help? join the DomBus channel on Telegram!
Esiste anche il Canale Telegram in Italiano DomBus_it!

Facebook domoticz groups:
Domoticz community, Domoticz Italia, Domoticz France, Domoticz Nederland, ... just search Domoticz on Facebook!

Jums arī varētu patikt

chat Komentāri (1)
Novērtējums