Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/and3rson/intesis
Interface to control and monitor Intesis adapters (Mitsubishi Air Conditioning systems) with Go.
https://github.com/and3rson/intesis
air-conditioning go golang mitsubishi
Last synced: 12 days ago
JSON representation
Interface to control and monitor Intesis adapters (Mitsubishi Air Conditioning systems) with Go.
- Host: GitHub
- URL: https://github.com/and3rson/intesis
- Owner: and3rson
- License: mit
- Created: 2024-07-02T19:30:00.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-09T23:30:20.000Z (4 months ago)
- Last Synced: 2024-12-08T07:44:07.987Z (14 days ago)
- Topics: air-conditioning, go, golang, mitsubishi
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# intesis
Interface to control and monitor Intesis adapters (Mitsubishi Air Conditioning systems) with Go.
## Usage example
```go
package mainimport (
"context"
"github.com/and3rson/intesis"
)func main() {
intesisManager := intesis.NewManager()
intesisManager.AddDevice(intesis.NewDevice("ac_one", "192.168.1.101"))
intesisManager.AddDevice(intesis.NewDevice("ac_two", "192.168.1.102"))
intesisManager.AddDevice(intesis.NewDevice("ac_three", "192.168.1.103"))
intesisManager.Run()// Set a datapoint
intesisManager.Devices[0].Set(intesis.UserSetpoint, 250) // Set temperature to 25.0°C
intesisManager.Devices[1].Set(intesis.OnOff, 1) // Turn onfor {
select {
case event := <-intesisManager.Events:
// Handle event
fmt.Printf("Got event: device=%s, datapoint=%s\n", event.Device.Name, event.Datapoint)
}
}
}
```