add rest of hue driver functionality.
This commit is contained in:
@@ -50,12 +50,12 @@ func (b *bridge) Devices() []models.Device {
|
||||
models.DCButtons,
|
||||
},
|
||||
ButtonNames: []string{"Touch"},
|
||||
DriverProperties: map[string]string{
|
||||
"x": strconv.Itoa(panel.X),
|
||||
"y": strconv.Itoa(panel.Y),
|
||||
"o": strconv.Itoa(panel.O),
|
||||
DriverProperties: map[string]interface{}{
|
||||
"x": panel.X,
|
||||
"y": panel.Y,
|
||||
"o": panel.O,
|
||||
"shapeType": shapeTypeMap[panel.ShapeType],
|
||||
"shapeWidth": strconv.Itoa(shapeWidthMap[panel.ShapeType]),
|
||||
"shapeWidth": shapeWidthMap[panel.ShapeType],
|
||||
},
|
||||
UserProperties: nil,
|
||||
State: models.DeviceState{
|
||||
@@ -393,7 +393,7 @@ func (b *bridge) runTouchListener(ctx context.Context, host, apiKey string, ch c
|
||||
}
|
||||
|
||||
event := models.Event{
|
||||
Name: "ButtonPressed",
|
||||
Name: models.ENButtonPressed,
|
||||
Payload: map[string]string{
|
||||
"buttonIndex": "0",
|
||||
"buttonName": "Touch",
|
||||
|
||||
Reference in New Issue
Block a user