diff --git a/atom.xml b/atom.xml index e6aac43390..22f837c0d9 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
Integrate your Serial MySensors Gateway by adding the following to your configuration.yaml
file:
Integrate your Serial or Ethernet MySensors Gateway by adding the following to your configuration.yaml
file:
# Example configuration.yaml entry @@ -119,16 +119,17 @@Configuration variables:
If you are using an original Arduino the port will be named ttyACM*
. The exact number can be determined with the command shown below.
If you are using an original Arduino as a serial gateway, the port will be named ttyACM*
. The exact number can be determined with the command shown below.
$ ls /dev/ttyACM* @@ -141,13 +142,13 @@Present a MySensors sensor or actuator, by following these steps:
-
- Connect your gateway to your computer.
+- Connect the serial gateway to your computer or the ethernet gateway to your network.
- Configure the MySensors component in configuration.yaml.
- Start hass.
-- Wait for “gateway started” in the log output.
+- Wait for “Connected to [device]” in the log output.
- Write and upload your MySensors sketch to the sensor. Make sure you:
-
- Either use a manual node id, or AUTO for requesting a node id from the controller, in gw.begin().
+- Either use a manual node id, or AUTO for requesting a node id from the controller, in the begin method for initialization of the MySensors library.
- Send sketch name.
- Present the sensor’s S_TYPE.
- Send at least one initial value per V_TYPE.
diff --git a/components/switch.mysensors/index.html b/components/switch.mysensors/index.html index 05e97fb5e3..ecfd0c2e96 100644 --- a/components/switch.mysensors/index.html +++ b/components/switch.mysensors/index.html @@ -210,6 +210,7 @@ MyMessage msgRelay(CHILD_ID, V_STATUS); if (message.type == V_STATUS) { // Change relay state. digitalWrite(RELAY_PIN, message.getBool() ? 1 : 0); + gw.send(msgRelay.set(message.getBool() ? 1 : 0)); } }