Flipping switches

Hi,

I’m going nuts over this.
I can only use my switches once after reboot and after that they just flipps back.

Any one who has experienced this?

What switches?
You might have to enable Zwave Polling to get the correct status: Z-Wave Polling Questions Answered

Below is an example of how you can enable polling for lights and switches.

zwave:
  usb_path: /dev/ttyACM0
  polling_interval: 30000
  device_config_domain:
    light:
      polling_intensity: 1
      refresh_value: true
      delay: 5
    switch:
      polling_intensity: 1
      refresh_value: true
      delay: 5

For the moment i have only migrated 1 Fibaro switch (FGWP-102) and 3 Aeotec (ZW075) from my old Domotics system.
Controller is a Aeotec Z Wave stick.

After a while all switches just flips and i can’t turn them on/off permanently.

Below is my config for one of the switches.
zwave:
usb_path: /dev/ttyACM0
polling_interval: 30000
device_config:
switch.vvc_switch_2_0:
polling_intensity: 1
refresh_value: true
delay: 5

I can see error messages like this in the log.

2017-06-01 19:34:00.006 Info, Node002, Sending (Send) message (Callback ID=0x6d, Expected Reply=0x04) - SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x6d, 0x8a
2017-06-01 19:34:00.052 Detail, Node002, Polling: COMMAND_CLASS_SWITCH_BINARY index = 0 instance = 1 (poll queue has 0 messages)
2017-06-01 19:34:00.052 Detail, Node002, Queuing (Poll) SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x6e, 0x89
2017-06-01 19:34:01.007 Error, Node002, ERROR: Dropping command, expected response not received after 1 attempt(s)
2017-06-01 19:34:01.007 Detail, Node002, Removing current message
2017-06-01 19:34:01.007 Detail, Node002, Notification: Notification - TimeOut

Here is a complleat log for Node002 after a reboot.
First after the reboot i can flip the switch from on/off once.
After that it only flips back.

2017-06-01 19:38:38.404 Detail, Node002, Polling: COMMAND_CLASS_SWITCH_BINARY index = 0 instance = 1 (poll queue has 0 messages)
2017-06-01 19:38:38.404 Detail, Node002, Queuing (Poll) SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x38, 0xdf
2017-06-01 19:38:38.404 Detail, 
2017-06-01 19:38:38.404 Info, Node002, Sending (Poll) message (Callback ID=0x38, Expected Reply=0x04) - SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x38, 0xdf
2017-06-01 19:38:38.416 Detail, Node002,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2017-06-01 19:38:38.416 Detail, Node002,   ZW_SEND_DATA delivered to Z-Wave stack
2017-06-01 19:38:38.433 Detail, Node002,   Received: 0x01, 0x07, 0x00, 0x13, 0x38, 0x00, 0x00, 0x02, 0xd1
2017-06-01 19:38:38.433 Detail, Node002,   ZW_SEND_DATA Request with callback ID 0x38 received (expected 0x38)
2017-06-01 19:38:38.433 Info, Node002, Request RTT 29 Average Request RTT 37
2017-06-01 19:38:38.433 Detail,   Expected callbackId was received
2017-06-01 19:38:38.449 Detail, Node002,   Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x02, 0x03, 0x25, 0x03, 0xff, 0x2a
2017-06-01 19:38:38.449 Detail, 
2017-06-01 19:38:38.449 Info, Node002, Response RTT 45 Average Response RTT 54
2017-06-01 19:38:38.449 Info, Node002, Received SwitchBinary report from node 2: level=On
2017-06-01 19:38:38.449 Detail, Node002, Refreshed Value: old value=true, new value=true, type=bool
2017-06-01 19:38:38.449 Detail, Node002, Changes to this value are not verified
2017-06-01 19:38:38.449 Detail, Node002,   Expected reply and command class was received
2017-06-01 19:38:38.449 Detail, Node002,   Message transaction complete
2017-06-01 19:38:38.449 Detail, 
2017-06-01 19:38:38.449 Detail, Node002, Removing current message
2017-06-01 19:38:38.449 Detail, Node002, Notification: ValueChanged
2017-06-01 19:38:56.497 Info, Node002, Value::Set - COMMAND_CLASS_SWITCH_BINARY - Switch - 0 - 1 - False
2017-06-01 19:38:56.497 Info, Node002, SwitchBinary::Set - Setting node 2 to Off
2017-06-01 19:38:56.497 Detail, Node002, Queuing (Send) SwitchBinaryCmd_Set (Node=2): 0x01, 0x0a, 0x00, 0x13, 0x02, 0x03, 0x25, 0x01, 0x00, 0x25, 0x39, 0xdf
2017-06-01 19:38:56.497 Detail, Node002, Queuing (Send) SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x3a, 0xdd
2017-06-01 19:38:56.498 Detail, 
2017-06-01 19:38:56.498 Info, Node002, Sending (Send) message (Callback ID=0x39, Expected Reply=0x13) - SwitchBinaryCmd_Set (Node=2): 0x01, 0x0a, 0x00, 0x13, 0x02, 0x03, 0x25, 0x01, 0x00, 0x25, 0x39, 0xdf
2017-06-01 19:38:56.583 Detail, Unsolicited message received while waiting for ACK.
2017-06-01 19:38:56.586 Detail, Node002,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2017-06-01 19:38:56.586 Detail, Node002,   ZW_SEND_DATA delivered to Z-Wave stack
2017-06-01 19:38:56.599 Detail, Unsolicited message received while waiting for ACK.
2017-06-01 19:38:56.601 Detail, Node002,   Received: 0x01, 0x07, 0x00, 0x13, 0x39, 0x00, 0x00, 0x02, 0xd0
2017-06-01 19:38:56.601 Detail, Node002,   ZW_SEND_DATA Request with callback ID 0x39 received (expected 0x39)
2017-06-01 19:38:56.601 Info, Node002, Request RTT 103 Average Request RTT 70
2017-06-01 19:38:56.601 Detail,   Expected callbackId was received
2017-06-01 19:38:56.601 Detail,   Expected reply was received
2017-06-01 19:38:56.601 Detail,   Message transaction complete
2017-06-01 19:38:56.601 Detail, 
2017-06-01 19:38:56.601 Detail, Node002, Removing current message
2017-06-01 19:38:56.601 Detail, 
2017-06-01 19:38:56.601 Info, Node002, Sending (Send) message (Callback ID=0x3a, Expected Reply=0x04) - SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x3a, 0xdd
2017-06-01 19:38:56.612 Detail, Node002,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2017-06-01 19:38:56.612 Detail, Node002,   ZW_SEND_DATA delivered to Z-Wave stack
2017-06-01 19:38:56.683 Detail, Node002,   Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x02, 0x03, 0x20, 0x03, 0x00, 0xd0
2017-06-01 19:38:56.683 Detail, 
2017-06-01 19:38:56.683 Info, Node002, Response RTT 82 Average Response RTT 68
2017-06-01 19:38:56.683 Info, Node002, Received Basic report from node 2: level=0
2017-06-01 19:38:56.683 Detail, Node002, Queuing (Send) SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x3b, 0xdc
2017-06-01 19:38:56.698 Detail, Node002,   Received: 0x01, 0x07, 0x00, 0x13, 0x3a, 0x00, 0x00, 0x09, 0xd8
2017-06-01 19:38:56.701 Detail, Node002,   ZW_SEND_DATA Request with callback ID 0x3a received (expected 0x3a)
2017-06-01 19:38:56.701 Info, Node002, Request RTT 100 Average Request RTT 85
2017-06-01 19:38:56.701 Detail,   Expected callbackId was received
2017-06-01 19:38:56.707 Detail, Node002,   Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x02, 0x03, 0x25, 0x03, 0x00, 0xd5
2017-06-01 19:38:56.707 Detail, 
2017-06-01 19:38:56.707 Info, Node002, Response RTT 106 Average Response RTT 87
2017-06-01 19:38:56.707 Info, Node002, Received SwitchBinary report from node 2: level=Off
2017-06-01 19:38:56.707 Detail, Node002, Refreshed Value: old value=true, new value=false, type=bool
2017-06-01 19:38:56.707 Detail, Node002, Changes to this value are not verified
2017-06-01 19:38:56.707 Detail, Node002,   Expected reply and command class was received
2017-06-01 19:38:56.707 Detail, Node002,   Message transaction complete
2017-06-01 19:38:56.707 Detail, 
2017-06-01 19:38:56.707 Detail, Node002, Removing current message
2017-06-01 19:38:56.707 Detail, Node002, Notification: ValueChanged
2017-06-01 19:38:56.709 Detail, 
2017-06-01 19:38:56.709 Info, Node002, Sending (Send) message (Callback ID=0x3b, Expected Reply=0x04) - SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x3b, 0xdc
2017-06-01 19:38:56.718 Detail, Node002,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2017-06-01 19:38:56.718 Detail, Node002,   ZW_SEND_DATA delivered to Z-Wave stack
2017-06-01 19:38:56.738 Detail, Node002,   Received: 0x01, 0x07, 0x00, 0x13, 0x3b, 0x00, 0x00, 0x02, 0xd2
2017-06-01 19:38:56.738 Detail, Node002,   ZW_SEND_DATA Request with callback ID 0x3b received (expected 0x3b)
2017-06-01 19:38:56.738 Info, Node002, Request RTT 28 Average Request RTT 56
2017-06-01 19:38:56.738 Detail,   Expected callbackId was received
2017-06-01 19:38:56.744 Detail, Node002,   Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x02, 0x03, 0x25, 0x03, 0x00, 0xd5
2017-06-01 19:38:56.744 Detail, 
2017-06-01 19:38:56.744 Info, Node002, Response RTT 34 Average Response RTT 60
2017-06-01 19:38:56.744 Info, Node002, Received SwitchBinary report from node 2: level=Off
2017-06-01 19:38:56.744 Detail, Node002, Refreshed Value: old value=false, new value=false, type=bool
2017-06-01 19:38:56.744 Detail, Node002, Changes to this value are not verified
2017-06-01 19:38:56.744 Detail, Node002,   Expected reply and command class was received
2017-06-01 19:38:56.744 Detail, Node002,   Message transaction complete
2017-06-01 19:38:56.744 Detail, 
2017-06-01 19:38:56.744 Detail, Node002, Removing current message
2017-06-01 19:38:56.744 Detail, Node002, Notification: ValueChanged
2017-06-01 19:38:57.841 Detail, Node002,   Received: 0x01, 0x14, 0x00, 0x04, 0x00, 0x02, 0x0e, 0x32, 0x02, 0x21, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86
2017-06-01 19:38:57.841 Detail, 
2017-06-01 19:38:57.841 Detail, Node002, Refreshed Value: old value=false, new value=false, type=bool
2017-06-01 19:38:57.841 Detail, Node002, Changes to this value are not verified
2017-06-01 19:38:57.841 Info, Node002, Received Meter report from node 2: Power=0.000W
2017-06-01 19:38:57.841 Detail, Node002, Refreshed Value: old value=24.287, new value=0.000, type=decimal
2017-06-01 19:38:57.841 Detail, Node002, Changes to this value are not verified
2017-06-01 19:38:57.841 Detail, Node002, Notification: ValueChanged
2017-06-01 19:38:57.843 Detail, Node002, Notification: ValueChanged
2017-06-01 19:39:08.466 Detail, Node002, Polling: COMMAND_CLASS_SWITCH_BINARY index = 0 instance = 1 (poll queue has 0 messages)
2017-06-01 19:39:08.466 Detail, Node002, Queuing (Poll) SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x3c, 0xdb
2017-06-01 19:39:08.466 Detail, 
2017-06-01 19:39:08.466 Info, Node002, Sending (Poll) message (Callback ID=0x3c, Expected Reply=0x04) - SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x3c, 0xdb
2017-06-01 19:39:08.499 Detail, Node002,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2017-06-01 19:39:08.499 Detail, Node002,   ZW_SEND_DATA delivered to Z-Wave stack
2017-06-01 19:39:08.524 Detail, Node002,   Received: 0x01, 0x07, 0x00, 0x13, 0x3c, 0x00, 0x00, 0x02, 0xd5
2017-06-01 19:39:08.524 Detail, Node002,   ZW_SEND_DATA Request with callback ID 0x3c received (expected 0x3c)
2017-06-01 19:39:08.524 Info, Node002, Request RTT 57 Average Request RTT 56
2017-06-01 19:39:08.524 Detail,   Expected callbackId was received
2017-06-01 19:39:08.535 Detail, Node002,   Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x02, 0x03, 0x25, 0x03, 0x00, 0xd5
2017-06-01 19:39:08.535 Detail, 
2017-06-01 19:39:08.535 Info, Node002, Response RTT 68 Average Response RTT 64
2017-06-01 19:39:08.535 Info, Node002, Received SwitchBinary report from node 2: level=Off
2017-06-01 19:39:08.535 Detail, Node002, Refreshed Value: old value=false, new value=false, type=bool
2017-06-01 19:39:08.535 Detail, Node002, Changes to this value are not verified
2017-06-01 19:39:08.535 Detail, Node002,   Expected reply and command class was received
2017-06-01 19:39:08.535 Detail, Node002,   Message transaction complete
2017-06-01 19:39:08.535 Detail, 
2017-06-01 19:39:08.535 Detail, Node002, Removing current message
2017-06-01 19:39:08.535 Detail, Node002, Notification: ValueChanged
2017-06-01 19:39:38.538 Detail, Node002, Polling: COMMAND_CLASS_SWITCH_BINARY index = 0 instance = 1 (poll queue has 0 messages)
2017-06-01 19:39:38.539 Detail, Node002, Queuing (Poll) SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x3d, 0xda
2017-06-01 19:39:38.539 Detail, 
2017-06-01 19:39:38.539 Info, Node002, Sending (Poll) message (Callback ID=0x3d, Expected Reply=0x04) - SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x3d, 0xda
2017-06-01 19:39:39.539 Error, Node002, ERROR: Dropping command, expected response not received after 1 attempt(s)
2017-06-01 19:39:39.539 Detail, Node002, Removing current message
2017-06-01 19:39:39.539 Detail, Node002, Notification: Notification - TimeOut
2017-06-01 19:39:45.422 Info, Node002, Value::Set - COMMAND_CLASS_SWITCH_BINARY - Switch - 0 - 1 - True
2017-06-01 19:39:45.422 Info, Node002, SwitchBinary::Set - Setting node 2 to On
2017-06-01 19:39:45.422 Detail, Node002, Queuing (Send) SwitchBinaryCmd_Set (Node=2): 0x01, 0x0a, 0x00, 0x13, 0x02, 0x03, 0x25, 0x01, 0xff, 0x25, 0x3e, 0x27
2017-06-01 19:39:45.422 Detail, Node002, Queuing (Send) SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x3f, 0xd8
2017-06-01 19:39:45.422 Detail, 
2017-06-01 19:39:45.422 Info, Node002, Sending (Send) message (Callback ID=0x3e, Expected Reply=0x13) - SwitchBinaryCmd_Set (Node=2): 0x01, 0x0a, 0x00, 0x13, 0x02, 0x03, 0x25, 0x01, 0xff, 0x25, 0x3e, 0x27
2017-06-01 19:39:46.422 Error, Node002, ERROR: Dropping command, expected response not received after 1 attempt(s)
2017-06-01 19:39:46.422 Detail, Node002, Removing current message
2017-06-01 19:39:46.422 Detail, Node002, Notification: Notification - TimeOut
2017-06-01 19:39:46.423 Detail, 
2017-06-01 19:39:46.423 Info, Node002, Sending (Send) message (Callback ID=0x3f, Expected Reply=0x04) - SwitchBinaryCmd_Get (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x25, 0x02, 0x25, 0x3f, 0xd8
2017-06-01 19:39:47.424 Error, Node002, ERROR: Dropping command, expected response not received after 1 attempt(s)
2017-06-01 19:39:47.424 Detail, Node002, Removing current message
2017-06-01 19:39:47.424 Detail, Node002, Notification: Notification - TimeOut

Tried setting up a new VM and installed HASS in virtualenv but it’s the same problem.