Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wink state #3767

Closed
jsnoop315 opened this issue Oct 9, 2016 · 20 comments
Closed

Wink state #3767

jsnoop315 opened this issue Oct 9, 2016 · 20 comments

Comments

@jsnoop315
Copy link

jsnoop315 commented Oct 9, 2016

When I turn on a wink switch the switch comes on but the status returns to off

@rbflurry
Copy link
Contributor

Does it then return to the correct status?

My setup does the same thing. I turn on a light via the HA front end. The front end switch flips on then off then back on.

I read it was because HA must poll the light to get the status change and then updates the front end.

@w1ll1am23
Copy link
Contributor

@jsnoop315 Do you have any update on this? Sounds like this may be related to some of the other issues we are having with Wink push updates this is probably happening after HA has been running for awhile? I assume a restart fixes it?

@jsnoop315
Copy link
Author

The problem continues on a reboot. I think the problem is related to the iHome smart plug API. Those are the only switches that show the incorrect state. 

On Wed, Nov 2, 2016 at 8:21 AM -0500, "William Scanlon" notifications@github.com wrote:

@jsnoop315 Do you have any update on this? Sounds like this may be related to some of the other issues we are having with Wink push updates this is probably happening after HA has been running for awhile? I assume a restart fixes it?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@w1ll1am23
Copy link
Contributor

Ahhh good to know, probably a bug I don't have any of those and haven't ever seen an API response for one. Any chance you can get a dump of the API json for that device? If so follow the instruction below.

copy the contents of this link into a python file and run it http://hastebin.com/ehuduhudap.py it will prompt for your token (the one you are using in your config) and then spit out a data.json file in the same directory as the script. That file will have all of your devices in it. Paste that into https://jsonformatter.curiousconcept.com/ to format it and clean our any personal info, you will want to obfuscate all of the following.

lat_lng
subscribe_key
channel

Then after all of that, post that json here and we can see whats going on hopefully. Indicate the current state of the outlet too.

@jsnoop315
Copy link
Author

I'll try and get that to you as soon as I get back. 

On Wed, Nov 2, 2016 at 9:09 AM -0500, "William Scanlon" notifications@github.com wrote:

Ahhh good to know, probably a bug I don't have any of those and haven't ever seen an API response for one. Any chance you can get a dump of the API json for that device? If so follow the instruction below.

copy the contents of this link into a python file and run it http://hastebin.com/ehuduhudap.py it will prompt for your token (the one you are using in your config) and then spit out a data.json file in the same directory as the script. That file will have all of your devices in it. Paste that into https://jsonformatter.curiousconcept.com/ to format it and clean our any personal info, you will want to obfuscate all of the following.

lat_lng

subscribe_key

channel

Then after all of that, post that json here and we can see whats going on hopefully. Indicate the current state of the outlet too.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@jsnoop315
Copy link
Author

{
"pagination":{
"count":16
},
"data":[
{
"location":"#########",
"upc_code":"047532907315",
"units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        0.0,
        0.0
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"cb3bca13-0f16-4841-849b-865c6f3fc0eb",
     "manufacturer_device_id":"UDskqPnVwXgUMyXK3Yqmambs",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1458098175,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"188970",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1478102264.0,
        "powered_changed_at":1478063849.0,
        "desired_powered_changed_at":1478058735.943195,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1478058735.943195,
        "connection_updated_at":1478102264.0,
        "powered_updated_at":1478102252.0
     },
     "name":"Recliner Lamp"
  },
  {
     "location":"###",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        ###,
        ###
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"ea54295e-cfb8-49c3-a0ce-5430a88f7b35",
     "manufacturer_device_id":"UD8kr3Er6WFkkMxEdFR8tpXm",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1458100699,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"188985",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1478102285.0,
        "powered_changed_at":1478058213.0,
        "desired_powered_changed_at":1478058213.865178,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1478058353.3139298,
        "connection_updated_at":1478102285.0,
        "powered_updated_at":1478102256.0
     },
     "name":"Cuddler Lamp"
  },
  {
     "location":"#########",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        0.0,
        0.0
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"69a8a011-7dc8-4494-a1cf-80e4b44dac98",
     "manufacturer_device_id":"UXsF7GwVCPgAgQUN64yFHcYc",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1458100703,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"188986",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1478102261.0,
        "powered_changed_at":1478058217.0,
        "desired_powered_changed_at":1478058218.2722347,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1478058218.2722347,
        "connection_updated_at":1478102261.0,
        "powered_updated_at":1478102245.0
     },
     "name":"Table Lamp"
  },
  {
     "location":"#########",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        0.0,
        0.0
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"15452509-6750-4900-942a-9ce066494c47",
     "manufacturer_device_id":"UDsrKxYpycGKFESDtxwAaEng",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1458418248,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"190396",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1478102251.0,
        "powered_changed_at":1477435193.0,
        "desired_powered_changed_at":1477883976.4660096,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1477883976.4660096,
        "connection_updated_at":1478102251.0,
        "powered_updated_at":1478102245.0
     },
     "name":"Gaflins Lamp"
  },
  {
     "location":"#########",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        0.0,
        0.0
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"9465863b-72c9-4be0-a321-c967886df98d",
     "manufacturer_device_id":"UgsrKatFBFkaSMSdTCBywcxg",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1458418249,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"190397",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1478102247.0,
        "powered_changed_at":1477484150.0,
        "desired_powered_changed_at":1477914782.3384955,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1477914782.3384955,
        "connection_updated_at":1478102247.0,
        "powered_updated_at":1478102248.0
     },
     "name":"Jodys Lamp"
  },
  {
     "location":"###",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        ###,
        ###
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"dc2f4032-a496-4806-9bdf-25f177c0ea53",
     "manufacturer_device_id":"UXsNKRmn36D7HYbAepBqdchs",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1458418250,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"190398",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1478102283.0,
        "powered_changed_at":1478089387.0,
        "desired_powered_changed_at":1478089388.0310404,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1478089388.0310404,
        "connection_updated_at":1478102283.0,
        "powered_updated_at":1478115857.0
     },
     "name":"Fans"
  },
  {
     "location":"#########",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        0.0,
        0.0
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"22b3b5f2-ee6a-451a-a01b-36076d731141",
     "manufacturer_device_id":"UDPrhQcKGF9pXUgesSPc8aYc",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1458418250,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"190399",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1478102252.0,
        "powered_changed_at":1478058213.0,
        "desired_powered_changed_at":1478058214.1540685,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1478058214.1540685,
        "connection_updated_at":1478102252.0,
        "powered_updated_at":1478115855.0
     },
     "name":"Mirror Lamp"
  },
  {
     "location":"#########",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        0.0,
        0.0
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"06ba8a43-f122-41a7-859f-7b56332b6571",
     "manufacturer_device_id":"Ug9BYysMBa2rVRbAVmp5Cnnp",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1458861124,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"192537",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1478102263.0,
        "powered_changed_at":1477435192.0,
        "desired_powered_changed_at":1477886928.8278332,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1477886928.8278332,
        "connection_updated_at":1478102263.0,
        "powered_updated_at":1478119216.0
     },
     "name":"Curio Lamp"
  },
  {
     "location":"#########",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        0.0,
        0.0
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"0fb9b919-ca3f-4c6c-a536-26ba9f7a3c64",
     "manufacturer_device_id":"UD9eEyFUKgg6kYArYEEBRhch",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1458861127,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"192538",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1478102263.0,
        "powered_changed_at":1478058222.0,
        "desired_powered_changed_at":1478058222.952449,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1478058347.903191,
        "connection_updated_at":1478102263.0,
        "powered_updated_at":1478102250.0
     },
     "name":"Bar Lamp"
  },
  {
     "location":"#########",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        0.0,
        0.0
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"0dd380fe-1b5a-4ef1-982d-ae067e553b80",
     "manufacturer_device_id":"UgtBhxhnBakNeRxAB3KKVq2s",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1458861130,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"192539",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1478102259.0,
        "powered_changed_at":1478091337.0,
        "desired_powered_changed_at":1478091337.4558938,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1478091337.4558938,
        "connection_updated_at":1478102259.0,
        "powered_updated_at":1478119234.0
     },
     "name":"Desk Lamp"
  },
  {
     "location":"###",
     "upc_code":"840410102358",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "provisioning_version":"8a",
        "oauth2_clients":[
           "wink_hub"
        ],
        "needs_wifi_network_list":true,
        "home_security_device":true
     },
     "device_manufacturer":"wink",
     "lat_lng":[
        ###,
        ###
     ],
     "manufacturer_device_model":"wink_hub",
     "locale":"en_us",
     "hub_id":"391856",
     "model_name":"Hub",
     "uuid":"cd75b558-8487-4758-93db-bc83b224abdf",
     "manufacturer_device_id":null,
     "hidden_at":null,
     "update_needed":false,
     "configuration":{
        "kidde_radio_code":0
     },
     "upc_id":"15",
     "created_at":1459008217,
     "desired_state":{
        "pairing_mode":null,
        "pairing_prefix":null,
        "pairing_mode_duration":0
     },
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "firmware_version_updated_at":1478102246.9634624,
        "update_needed_updated_at":1478102246.9634624,
        "local_control_id_updated_at":1478114052.2659566,
        "mac_address_updated_at":1478102246.9634624,
        "transfer_mode":null,
        "local_control_id":"2e59c85b-1abf-4c10-b833-74696a582a21",
        "connection_updated_at":1478114053.5421214,
        "mac_address":"B4:79:A7:21:B2:FB",
        "updating_firmware":false,
        "kidde_radio_code_updated_at":1459008218.425851,
        "agent_session_id":"5f234ab9fec5ac0c3130aaf85dde5db6",
        "firmware_version":"2.66.0",
        "agent_session_id_updated_at":1478102246.0287166,
        "desired_kidde_radio_code_updated_at":1459008218.4959567,
        "pairing_mode_duration_updated_at":1478114053.5421214,
        "desired_pairing_prefix_updated_at":1459008348.5039318,
        "hub_version":"00.01",
        "remote_pairable_updated_at":null,
        "pairing_prefix_updated_at":null,
        "transfer_mode_updated_at":1478102246.0287166,
        "app_version_updated_at":1478102246.9634624,
        "ip_address":"10.0.1.20",
        "local_control_public_key_hash_updated_at":1478114052.2659566,
        "updating_firmware_updated_at":1478102245.39627,
        "pairing_mode":null,
        "update_needed":false,
        "pairing_mode_updated_at":1478114053.5421214,
        "pairing_prefix":null,
        "desired_pairing_mode_duration_updated_at":1465137307.998812,
        "pairing_mode_duration":0,
        "local_control_public_key_hash":"DD:22:2A:E2:FC:82:1D:2C:89:A8:4F:9D:8A:35:8B:FA:86:08:34:4B:A2:98:40:F8:8D:BD:59:4F:37:07:55:C7",
        "app_version":"0.1.0",
        "connection":true,
        "agent_session_id_changed_at":1478102246.0287166,
        "remote_pairable":null,
        "desired_pairing_mode_updated_at":1465137307.998812,
        "ip_address_updated_at":1478102246.9634624,
        "hub_version_updated_at":1478102246.9634624,
        "connection_changed_at":1478102245.39627
     },
     "name":"Hub"
  },
  {
     "location":"###",
     "upc_code":"883351278591",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "home_security_device":true,
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"locked"
           },
           {
              "mutability":"read-only",
              "type":"percentage",
              "field":"battery"
           }
        ]
     },
     "device_manufacturer":"kwikset",
     "lat_lng":[
        ###,
        ###
     ],
     "manufacturer_device_model":"kwikset_zwave_lock",
     "locale":"en_us",
     "hub_id":"391856",
     "model_name":"Z-Wave Deadbolt",
     "uuid":"a6b3f904-4e48-4502-ba76-d23be5a2ec4b",
     "manufacturer_device_id":null,
     "lock_id":"76511",
     "hidden_at":null,
     "upc_id":"14",
     "created_at":1459399778,
     "local_id":"3",
     "radio_type":"zwave",
     "desired_state":{
        "locked":true
     },
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "battery_updated_at":1478114381.269952,
        "desired_locked_updated_at":1477862278.0767436,
        "connection":true,
        "last_error_updated_at":null,
        "locked_updated_at":1478114381.269952,
        "locked_changed_at":1478114381.269952,
        "desired_locked_changed_at":1477862278.0767436,
        "connection_updated_at":1478114381.269952,
        "last_error":null,
        "battery":0.6,
        "locked":true
     },
     "name":"Front Door"
  },
  {
     "location":"",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        null,
        null
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"a1c865d0-f829-4dcf-8001-24909f85a8d3",
     "manufacturer_device_id":"UFxdNpVsTsXs5aSbXP4QWDpk",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1477705763,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"286874",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1477949545.0,
        "powered_changed_at":1477886815.0,
        "desired_powered_changed_at":1477886961.317409,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1477886961.317409,
        "connection_updated_at":1477975285.6992157,
        "powered_updated_at":1478105596.0
     },
     "name":"Den Light 2"
  },
  {
     "location":"",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        null,
        null
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"f624e9d7-bda7-4a48-905a-c099de12955f",
     "manufacturer_device_id":"Ukxdr4cwMBNxTCfqH6EWsfHd",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1477705764,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"286875",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1477944363.0,
        "powered_changed_at":1478124190.0,
        "desired_powered_changed_at":1477886942.904903,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1477886942.904903,
        "connection_updated_at":1477975286.1558769,
        "powered_updated_at":1478124190.0
     },
     "name":"Family Rm Light 2"
  },
  {
     "location":"",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        null,
        null
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"46e307b5-7a93-4f80-941d-00976c489828",
     "manufacturer_device_id":"UFbdNB9MbrMFyphRsBDm3Phf",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1477705764,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"286876",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1477949207.0,
        "powered_changed_at":1477885918.5293453,
        "desired_powered_changed_at":1477886092.0492978,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1477886092.0492978,
        "connection_updated_at":1477975286.815392,
        "powered_updated_at":1478052790.0
     },
     "name":"Den Light 1"
  },
  {
     "location":"",
     "upc_code":"047532907315",
     "units":{

     },
     "triggers":[

     ],
     "capabilities":{
        "fields":[
           {
              "mutability":"read-only",
              "type":"boolean",
              "field":"connection"
           },
           {
              "mutability":"read-write",
              "type":"boolean",
              "field":"powered"
           }
        ]
     },
     "linked_service_id":"310603",
     "device_manufacturer":"ihome",
     "lat_lng":[
        null,
        null
     ],
     "manufacturer_device_model":"ihome_i_sp5",
     "locale":"en_us",
     "hub_id":null,
     "model_name":"SmartPlug",
     "uuid":"cc4ce807-87b3-4ee7-8adc-df1efb9b99be",
     "manufacturer_device_id":"UkxUNTm7brqkTKYasBgGBbKh",
     "order":0,
     "gang_id":null,
     "hidden_at":null,
     "current_budget":null,
     "upc_id":"358",
     "created_at":1477705765,
     "local_id":null,
     "radio_type":null,
     "desired_state":{
        "powered":false
     },
     "binary_switch_id":"286877",
     "subscription":{
        "pubnub":{
           "channel":"###",
           "subscribe_key":"###"
        }
     },
     "last_reading":{
        "connection_changed_at":1477949863.0,
        "powered_changed_at":1478124190.0,
        "desired_powered_changed_at":1477874836.8889673,
        "powered":false,
        "connection":true,
        "desired_powered_updated_at":1477874836.8889673,
        "connection_updated_at":1477975287.044338,
        "powered_updated_at":1478124190.0
     },
     "name":"Family Rm Light 1"
  }

],
"errors":[

]
}

On Nov 2, 2016, at 9:09 AM, William Scanlon notifications@github.com wrote:

Ahhh good to know, probably a bug I don't have any of those and haven't ever seen an API response for one. Any chance you can get a dump of the API json for that device? If so follow the instruction below.

copy the contents of this link into a python file and run it http://hastebin.com/ehuduhudap.py http://hastebin.com/ehuduhudap.py it will prompt for your token (the one you are using in your config) and then spit out a data.json file in the same directory as the script. That file will have all of your devices in it. Paste that into https://jsonformatter.curiousconcept.com/ https://jsonformatter.curiousconcept.com/ to format it and clean our any personal info, you will want to obfuscate all of the following.

lat_lng
subscribe_key
channel

Then after all of that, post that json here and we can see whats going on hopefully. Indicate the current state of the outlet too.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #3767 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AUYjjhyUp8vP-xrP2VrU2fltaJ4hMef6ks5q6JmggaJpZM4KR5Qi.

@w1ll1am23
Copy link
Contributor

@jsnoop315 Thanks for the json, not seeing anything that stands out looks how I would expect any of the binary_switches to look. Do you always see this issue? or just on some state changes? Do you see the state change in HA if you update the state via the official Wink app? Also are you seeing any errors in your log?

@jsnoop315
Copy link
Author

Sometimes it does work. I don't receive any error messages. 
I have contacted wink and they claim to be aware of the problem and there are working on a solution. 
I wish iHome could be controlled by HA directly thus eliminating the need to use wink for those plugs.

On Wed, Nov 2, 2016 at 5:44 PM -0500, "William Scanlon" notifications@github.com wrote:

@jsnoop315 Thanks for the json, not seeing anything that stands out looks how I would expect any of the binary_switches to look. Do you always see this issue? or just on some state changes? Do you see the state change in HA if you update the state via the official Wink app? Also are you seeing any errors in your log?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@w1ll1am23
Copy link
Contributor

Interesting, good to know sounds like there isn't anything we can do about this unfortunately. I ran through the setup for one of those, and it looks like they are connecting it via an iHome account? So it sounds like Wink is accessing some API of theirs did a quick search and didn't see any public API for it. If you continue to have problems and Wink isn't able to resolve this we may be able to come up with some sort of polling only on those specific devices, that way if they don't update properly the state would get corrected on the next polling.

@jsnoop315
Copy link
Author

Wink does need my iHome account to add them to my account. The API is not public from what I have seen. Maybe iHome will allow that one day. iHome has branched out and is now working with Alexa and smart things. 
I have played around toyed around with using a command switch with a curl command as a work around and it works ok. 

On Wed, Nov 2, 2016 at 5:59 PM -0500, "William Scanlon" notifications@github.com wrote:

Interesting, good to know sounds like there isn't anything we can do about this unfortunately. I ran through the setup for one of those, and it looks like they are connecting it via an iHome account? So it sounds like Wink is accessing some API of theirs did a quick search and didn't see any public API for it. If you continue to have problems and Wink isn't able to resolve this we may be able to come up with some sort of polling only on those specific devices, that way if they don't update properly the state would get corrected on the next polling.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@w1ll1am23
Copy link
Contributor

Are you making a curl command directly to the switch? Or are you using curl
to hit the wink api? Is the switch WiFi?

On Nov 2, 2016 7:26 PM, "jsnoop315" notifications@github.com wrote:

Wink does need my iHome account to add them to my account. The API is not
public from what I have seen. Maybe iHome will allow that one day. iHome
has branched out and is now working with Alexa and smart things.
I have played around toyed around with using a command switch with a curl
command as a work around and it works ok.

On Wed, Nov 2, 2016 at 5:59 PM -0500, "William Scanlon" <
notifications@github.com> wrote:

Interesting, good to know sounds like there isn't anything we can do about
this unfortunately. I ran through the setup for one of those, and it looks
like they are connecting it via an iHome account? So it sounds like Wink is
accessing some API of theirs did a quick search and didn't see any public
API for it. If you continue to have problems and Wink isn't able to resolve
this we may be able to come up with some sort of polling only on those
specific devices, that way if they don't update properly the state would
get corrected on the next polling.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#3767 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGIoAlNjm1OJ9YYE9FnEZ_FsubH8jPzLks5q6RxCgaJpZM4KR5Qi
.

@jsnoop315
Copy link
Author

The switch is wifi. 
I use the curl command to change the state of the wink switch. The command link switch holds the current state. If I control the switch outside of HA I lost the correct state but I can at least control it. 
For instance if for some reason wink thinks a switch is on I won't be able to turn it on if it's actually off. But with the command switch if I lose the correct state I can just toggle the switch to match the correct state. 

On Wed, Nov 2, 2016 at 6:34 PM -0500, "William Scanlon" notifications@github.com wrote:

Are you making a curl command directly to the switch? Or are you using curl

to hit the wink api? Is the switch WiFi?

On Nov 2, 2016 7:26 PM, "jsnoop315" notifications@github.com wrote:

Wink does need my iHome account to add them to my account. The API is not

public from what I have seen. Maybe iHome will allow that one day. iHome

has branched out and is now working with Alexa and smart things.

I have played around toyed around with using a command switch with a curl

command as a work around and it works ok.

On Wed, Nov 2, 2016 at 5:59 PM -0500, "William Scanlon" <

notifications@github.com> wrote:

Interesting, good to know sounds like there isn't anything we can do about

this unfortunately. I ran through the setup for one of those, and it looks

like they are connecting it via an iHome account? So it sounds like Wink is

accessing some API of theirs did a quick search and didn't see any public

API for it. If you continue to have problems and Wink isn't able to resolve

this we may be able to come up with some sort of polling only on those

specific devices, that way if they don't update properly the state would

get corrected on the next polling.

You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub, or mute the thread.

You are receiving this because you commented.

Reply to this email directly, view it on GitHub

#3767 (comment),

or mute the thread

https://github.com/notifications/unsubscribe-auth/AGIoAlNjm1OJ9YYE9FnEZ_FsubH8jPzLks5q6RxCgaJpZM4KR5Qi

.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@jsnoop315
Copy link
Author

This is off the original topic but I would like to ask. 
Can a raspberry pi gpio rf listener component be added.  This would allow ha to listen for a button pressed on a physical rf remote to control ha components 

On Wed, Nov 2, 2016 at 6:34 PM -0500, "William Scanlon" notifications@github.com wrote:

Are you making a curl command directly to the switch? Or are you using curl

to hit the wink api? Is the switch WiFi?

On Nov 2, 2016 7:26 PM, "jsnoop315" notifications@github.com wrote:

Wink does need my iHome account to add them to my account. The API is not

public from what I have seen. Maybe iHome will allow that one day. iHome

has branched out and is now working with Alexa and smart things.

I have played around toyed around with using a command switch with a curl

command as a work around and it works ok.

On Wed, Nov 2, 2016 at 5:59 PM -0500, "William Scanlon" <

notifications@github.com> wrote:

Interesting, good to know sounds like there isn't anything we can do about

this unfortunately. I ran through the setup for one of those, and it looks

like they are connecting it via an iHome account? So it sounds like Wink is

accessing some API of theirs did a quick search and didn't see any public

API for it. If you continue to have problems and Wink isn't able to resolve

this we may be able to come up with some sort of polling only on those

specific devices, that way if they don't update properly the state would

get corrected on the next polling.

You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub, or mute the thread.

You are receiving this because you commented.

Reply to this email directly, view it on GitHub

#3767 (comment),

or mute the thread

https://github.com/notifications/unsubscribe-auth/AGIoAlNjm1OJ9YYE9FnEZ_FsubH8jPzLks5q6RxCgaJpZM4KR5Qi

.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@w1ll1am23
Copy link
Contributor

@jsnoop315 Yeah, off topic. If you have a feature request/question like this you should ask it on the forum. Did a quick search, and it looks like some people are talking about it, for example https://community.home-assistant.io/t/how-to-make-use-of-generic-433mhz-sensors/1215

@w1ll1am23 w1ll1am23 mentioned this issue Nov 24, 2016
4 tasks
@w1ll1am23
Copy link
Contributor

@jsnoop315 are you still having trouble with these switches after updating to 0.34.0? If so I think I might be able to implement something that could help.

@jsnoop315
Copy link
Author

jsnoop315 commented Dec 5, 2016 via email

@w1ll1am23
Copy link
Contributor

In 0.34.0 there was a new Wink service added. The next time you see this issue, can you call the refresh_state_from_wink service and see if your switch state gets corrected?

@jsnoop315
Copy link
Author

jsnoop315 commented Dec 5, 2016 via email

@jsnoop315
Copy link
Author

jsnoop315 commented Dec 9, 2016 via email

@w1ll1am23
Copy link
Contributor

@jsnoop315 that is unfortunate. That really means we are dependent on Wink to correct the issue. Going to go ahead and close this since it isn't any issue we can resolve. Hopefully Wink gets the issue figured out.

@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants