delid4ve / openhab-3.x-sonoff

Openhab Binding for Sonoff Devices
26 stars 11 forks source link

Thing offline #8

Closed azraiez closed 3 years ago

azraiez commented 3 years ago

I have installed the binding in OH3.x. I have created the account thing in Local only Access Mode. The status of the Account is now Online green. I proceeded to add sonoff BASIC_R3 using ThingTypeUID = 1. Unfortunately the status is now OFFLINE: This device has not been initilized, please run discovery. The identifier for the Thing is sonoff:1:efbb0686ce. I've tried running discovery using OH console with the following command: discovery start sonoff:1:efbb0686ce And I get the following in openhab.log: [WARN ] [nternal.DiscoveryServiceRegistryImpl] - No discovery service for thing type 'sonoff:1:efbb0686ce' found! The thing remained OFFLINE.

Help.

delid4ve commented 3 years ago

Just go to things -> add -> Sonoff -> scan. You need to run discovery for the binding not a thing

azraiez commented 3 years ago

Just go to things -> add -> Sonoff -> scan. nothing appears after the scan. You need to run discovery for the binding not a thing so the correct command in console is : discovery start sonoff ?

I'm also getting these in my openhab.log: 2021-06-04 13:52:21.681 [ERROR] [unication.SonoffCommunicationManager] - The device 100025ca55 doesnt exist, unable to set state 2021-06-04 13:52:21.688 [ERROR] [unication.SonoffCommunicationManager] - The device 100025ddce doesnt exist, unable to set state 2021-06-04 13:52:21.842 [ERROR] [unication.SonoffCommunicationManager] - The device 10010b3fe6 doesnt exist, unable to set state 2021-06-04 13:52:21.845 [ERROR] [unication.SonoffCommunicationManager] - The device 1000523082 doesnt exist, unable to set state 2021-06-04 13:52:21.848 [ERROR] [unication.SonoffCommunicationManager] - The device 1001021756 doesnt exist, unable to set state 2021-06-04 13:52:21.850 [ERROR] [unication.SonoffCommunicationManager] - The device 100072382b doesnt exist, unable to set state 2021-06-04 13:52:21.853 [ERROR] [unication.SonoffCommunicationManager] - The device 10008f8e9a doesnt exist, unable to set state 2021-06-04 13:52:21.866 [ERROR] [unication.SonoffCommunicationManager] - The device 1000ae56dc doesnt exist, unable to set state 2021-06-04 13:52:21.895 [ERROR] [unication.SonoffCommunicationManager] - The device 100101f8c2 doesnt exist, unable to set state

delid4ve commented 3 years ago

Is this after you have run discovery or before? If after, remove the jar and re-add it (without trace logs I cannot see why). if you haven't run discovery yet then this will also happen.