Christopher Mullins лет назад: 8
Родитель
Сommit
234943213c
1 измененных файлов с 10 добавлено и 0 удалено
  1. 10 0
      README.md

+ 10 - 0
README.md

@@ -223,6 +223,16 @@ irb(main):007:0> puts client.get.inspect
 
 **Make sure that `mqtt_topic_pattern`, `mqtt_state_topic_pattern`, and `matt_update_topic_pattern` are all different!**  If they are they same you can put your ESP in a loop where its own updates trigger an infinite command loop.
 
+##### Customize fields
+
+You can select which fields should be included in state updates by configuring the `group_state_fields` parameter.  Available fields should be mostly self explanatory, with the possible exceptions of:
+
+1. `state` / `status` - same value with different keys (useful if your platform expects one or the other).
+1. `brightness` / `level` - [0, 255] and [0, 100] scales of the same value.
+1. `kelvin / color_temp` - [0, 100] and [153, 370] scales for the same value.  The later's unit is mireds.
+1. `bulb_mode` - what mode the bulb is in: white, rgb, etc.
+1. `color` / `computed_color` - behaves the same when bulb is in rgb mode.  `computed_color` will send RGB = 255,255,255 when in white mode.  This is useful for HomeAssistant where it always expects the color to be set.
+
 ## UDP Gateways
 
 You can add an arbitrary number of UDP gateways through the REST API or through the web UI. Each gateway server listens on a port and responds to the standard set of commands supported by the Milight protocol. This should allow you to use one of these with standard Milight integrations (SmartThings, Home Assistant, OpenHAB, etc.).