Skip to content

thspinto/isecnet-go

Repository files navigation

FOSSA Status

This an go SDK implementation for Intelbras' ISECNet protocol.

ISEcnet

ISECnet is a proprietary protocol used by Intelbras in their alarm central communication.

Usage

Available Commands

  help          Help about any command
  partialStatus Get partial central status
  zones         Get Zone status

Example

Example of the zones and zones -w command running in the terminal

Zones description

You can configure the zone description in .isecnet-go.yaml to see meaningful names and only zones in use. See .isecnet-go..yaml.example for example:

zones:
  - id: 1
    name: Front Door
    description: Front dor magnetic sensor
➜  isecnet-go git:(main) ✗ go run . --password 1234 zones
Using config file: ./.isecnet-go.yaml
INFO[0000] Connecting...                                 address="localhost:9009"
+------------+----------+-------+----------+------------+--------+---------------+
|    ZONE    | ANULATED | OPEN  | VIOLATED | LOWBATTERY | TAMPER | SHORT CIRCUIT |
+------------+----------+-------+----------+------------+--------+---------------+
| Front Door | false    | false | false    | false      | false  | false         |
+------------+----------+-------+----------+------------+--------+---------------+

Testing

  • make unit-test: unit tests

  • make lint: linter

  • make test: run all

  • make mock-alarm-central: starts the mock server

  • go run . server: starts the gRPC server:

// Testing the API
grpcurl -plaintext localhost:8080 ZoneService.GetZones

References

License

FOSSA Status