Baldhor / Homey-ESPhome-Enhanced

This is an Homey app which adds support for ESPHome devices. ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems. More information on their homepage: https://www.esphome.io/
GNU General Public License v3.0
5 stars 3 forks source link

Cannot read properties of undefined (reading 'specialCase') #23

Closed JoachimVeulemans closed 1 year ago

JoachimVeulemans commented 1 year ago

Here I am again, a new bug appeared:

When trying to turn on/off a switch (on/off capability):

image

Baldhor commented 1 year ago

@JoachimVeulemans It's all good, it's normal some users encounter some unexpected cases (like encryption key or template cover :) )

I just tested a Switch, no problem on my side: image

You click on the device capability from your browser, right ?

Can you get some console.re logs ? specialCase is part of the solution for template cover. But here the error is more like a symptom of another problem. The native capability was not found for the capability onoff ... strange.

JoachimVeulemans commented 1 year ago
------------------------------ [MARKED  -------------------------------

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.39:6053],[Client],Created

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.39:6053],[Client],Initializing:,{4}
{
    "ipAddress": "192.168.1.39",
    "port": "6053",
    "encryptionKey": "<hidden value>",
    "password": "<no value>"
}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],Physical Device doesn't exist, create a new one

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],New Physical Device to create:,192.168.1.39,6053

[ManagerDrivers],[Driver:esphome-wizard],[Device:f5825fea-2310-4548-8375-ff82b81658bd],Settings,{7}
{
    "ipAddress": "192.168.1.39",
    "port": "6053",
    "encryptionKey": "<hidden value>",
    "password": "<no value>",
    "energy_alwayson": false,
    "energy_value_off": null,
    "energy_value_on": null
}

[ManagerDrivers],[Driver:esphome-wizard],[Device:f5825fea-2310-4548-8375-ff82b81658bd],REDACTED,is inited

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.188:6053],Get current value:,2029126445:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:c7b5d485-a0e7-4e2b-94ec-736f920c76f4],_forceUpdateCurrentValue:,onoff

[ManagerDrivers],[Driver:esphome-wizard],[Device:c7b5d485-a0e7-4e2b-94ec-736f920c76f4],Init capability,onoff,for,2029126445:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:c7b5d485-a0e7-4e2b-94ec-736f920c76f4],Processing capability: ,onoff

[ManagerDrivers],[Driver:esphome-wizard],[Device:c7b5d485-a0e7-4e2b-94ec-736f920c76f4],startNativeCapabilityListener

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],Physical Device already exist

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],New Physical Device to create:,192.168.1.188,6053

[ManagerDrivers],[Driver:esphome-wizard],[Device:c7b5d485-a0e7-4e2b-94ec-736f920c76f4],Settings,{7}
{
    "ipAddress": "192.168.1.188",
    "port": "6053",
    "encryptionKey": "<no value>",
    "password": "<hidden value>",
    "energy_alwayson": false,
    "energy_value_off": null,
    "energy_value_on": null
}

[ManagerDrivers],[Driver:esphome-wizard],[Device:c7b5d485-a0e7-4e2b-94ec-736f920c76f4],REDACTED,is inited

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.36:6053],Get current value:,977454165:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:b17097e3-dd7e-4c9c-9e3c-6346ac9d91ea],_forceUpdateCurrentValue:,alarm_generic

[ManagerDrivers],[Driver:esphome-wizard],[Device:b17097e3-dd7e-4c9c-9e3c-6346ac9d91ea],Init capability,alarm_generic,for,977454165:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:b17097e3-dd7e-4c9c-9e3c-6346ac9d91ea],Processing capability: ,alarm_generic

[ManagerDrivers],[Driver:esphome-wizard],[Device:b17097e3-dd7e-4c9c-9e3c-6346ac9d91ea],startNativeCapabilityListener

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.36:6053],[Client],Created

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.36:6053],[Client],Initializing:,{4}
{
    "ipAddress": "192.168.1.36",
    "port": "6053",
    "encryptionKey": "<hidden value>",
    "password": "<no value>"
}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],Physical Device doesn't exist, create a new one

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],New Physical Device to create:,192.168.1.36,6053

[ManagerDrivers],[Driver:esphome-wizard],[Device:b17097e3-dd7e-4c9c-9e3c-6346ac9d91ea],Settings,{8}
{
    "ipAddress": "192.168.1.36",
    "port": "6053",
    "encryptionKey": "<hidden value>",
    "password": "<no value>",
    "energy_value_constant": null,
    "energy_alwayson": false,
    "energy_value_off": null,
    "energy_value_on": null
}

[ManagerDrivers],[Driver:esphome-wizard],[Device:b17097e3-dd7e-4c9c-9e3c-6346ac9d91ea],REDACTED,is inited

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.47:6053],Get current value:,3850425730:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:acc9ab70-a53b-46a5-9495-d5ed2210418f],_forceUpdateCurrentValue:,measure_power

[ManagerDrivers],[Driver:esphome-wizard],[Device:acc9ab70-a53b-46a5-9495-d5ed2210418f],Init capability,measure_power,for,3850425730:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:acc9ab70-a53b-46a5-9495-d5ed2210418f],Processing capability: ,measure_power

[ManagerDrivers],[Driver:esphome-wizard],[Device:acc9ab70-a53b-46a5-9495-d5ed2210418f],startNativeCapabilityListener

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.47:6053],[Client],Created

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.47:6053],[Client],Initializing:,{4}
{
    "ipAddress": "192.168.1.47",
    "port": "6053",
    "encryptionKey": "<hidden value>",
    "password": "<no value>"
}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],Physical Device doesn't exist, create a new one

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],New Physical Device to create:,192.168.1.47,6053

[ManagerDrivers],[Driver:esphome-wizard],[Device:acc9ab70-a53b-46a5-9495-d5ed2210418f],Settings,{5}
{
    "ipAddress": "192.168.1.47",
    "port": "6053",
    "encryptionKey": "<hidden value>",
    "password": "<no value>",
    "energy_alwayson": false
}

[ManagerDrivers],[Driver:esphome-wizard],[Device:acc9ab70-a53b-46a5-9495-d5ed2210418f],REDACTED,is inited

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.188:6053],Get current value:,14952642:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:97be6c9b-61f2-4bcb-98a4-3303cae147f6],_forceUpdateCurrentValue:,onoff

[ManagerDrivers],[Driver:esphome-wizard],[Device:97be6c9b-61f2-4bcb-98a4-3303cae147f6],Init capability,onoff,for,14952642:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:97be6c9b-61f2-4bcb-98a4-3303cae147f6],Processing capability: ,onoff

[ManagerDrivers],[Driver:esphome-wizard],[Device:97be6c9b-61f2-4bcb-98a4-3303cae147f6],startNativeCapabilityListener

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],Physical Device already exist

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],New Physical Device to create:,192.168.1.188,6053

[ManagerDrivers],[Driver:esphome-wizard],[Device:97be6c9b-61f2-4bcb-98a4-3303cae147f6],Settings,{7}
{
    "ipAddress": "192.168.1.188",
    "port": "6053",
    "encryptionKey": "<no value>",
    "password": "<hidden value>",
    "energy_alwayson": false,
    "energy_value_off": null,
    "energy_value_on": null
}

[ManagerDrivers],[Driver:esphome-wizard],[Device:97be6c9b-61f2-4bcb-98a4-3303cae147f6],REDACTED,is inited

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.35:6053],Get current value:,977454165:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:8e4252e2-f6f8-4030-a94c-4eec165a4962],_forceUpdateCurrentValue:,alarm_generic

[ManagerDrivers],[Driver:esphome-wizard],[Device:8e4252e2-f6f8-4030-a94c-4eec165a4962],Init capability,alarm_generic,for,977454165:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:8e4252e2-f6f8-4030-a94c-4eec165a4962],Processing capability: ,alarm_generic

[ManagerDrivers],[Driver:esphome-wizard],[Device:8e4252e2-f6f8-4030-a94c-4eec165a4962],startNativeCapabilityListener

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.35:6053],[Client],Created

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.35:6053],[Client],Initializing:,{4}
{
    "ipAddress": "192.168.1.35",
    "port": "6053",
    "encryptionKey": "<hidden value>",
    "password": "<no value>"
}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],Physical Device doesn't exist, create a new one

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],New Physical Device to create:,192.168.1.35,6053

[ManagerDrivers],[Driver:esphome-wizard],[Device:8e4252e2-f6f8-4030-a94c-4eec165a4962],Settings,{7}
{
    "ipAddress": "192.168.1.35",
    "port": "6053",
    "encryptionKey": "<hidden value>",
    "password": "<no value>",
    "energy_alwayson": false,
    "energy_value_off": null,
    "energy_value_on": null
}

[ManagerDrivers],[Driver:esphome-wizard],[Device:8e4252e2-f6f8-4030-a94c-4eec165a4962],REDACTED,is inited

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.38:6053],Get current value:,977454165:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:63c4b88d-bc50-41d9-81b8-bbc272b0ad5c],_forceUpdateCurrentValue:,alarm_generic

[ManagerDrivers],[Driver:esphome-wizard],[Device:63c4b88d-bc50-41d9-81b8-bbc272b0ad5c],Init capability,alarm_generic,for,977454165:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:63c4b88d-bc50-41d9-81b8-bbc272b0ad5c],Processing capability: ,alarm_generic

[ManagerDrivers],[Driver:esphome-wizard],[Device:63c4b88d-bc50-41d9-81b8-bbc272b0ad5c],startNativeCapabilityListener

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.38:6053],[Client],Created

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.38:6053],[Client],Initializing:,{4}
{
    "ipAddress": "192.168.1.38",
    "port": "6053",
    "encryptionKey": "<hidden value>",
    "password": "<no value>"
}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],Physical Device doesn't exist, create a new one

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],New Physical Device to create:,192.168.1.38,6053

[ManagerDrivers],[Driver:esphome-wizard],[Device:63c4b88d-bc50-41d9-81b8-bbc272b0ad5c],Settings,{7}
{
    "ipAddress": "192.168.1.38",
    "port": "6053",
    "encryptionKey": "<hidden value>",
    "password": "<no value>",
    "energy_alwayson": false,
    "energy_value_off": null,
    "energy_value_on": null
}

[ManagerDrivers],[Driver:esphome-wizard],[Device:63c4b88d-bc50-41d9-81b8-bbc272b0ad5c],REDACTED,is inited

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.188:6053],Get current value:,1402501725:position

[ManagerDrivers],[Driver:esphome-wizard],[Device:41ab5552-3589-44b2-9327-881a38e4290a],_forceUpdateCurrentValue:,windowcoverings_closed

[ManagerDrivers],[Driver:esphome-wizard],[Device:41ab5552-3589-44b2-9327-881a38e4290a],Init capability,windowcoverings_closed,for,1402501725:position

[ManagerDrivers],[Driver:esphome-wizard],[Device:41ab5552-3589-44b2-9327-881a38e4290a],Processing capability: ,windowcoverings_closed

[ManagerDrivers],[Driver:esphome-wizard],[Device:41ab5552-3589-44b2-9327-881a38e4290a],startNativeCapabilityListener

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],Physical Device already exist

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],New Physical Device to create:,192.168.1.188,6053

[ManagerDrivers],[Driver:esphome-wizard],[Device:41ab5552-3589-44b2-9327-881a38e4290a],Settings,{5}
{
    "ipAddress": "192.168.1.188",
    "port": "6053",
    "encryptionKey": "<no value>",
    "password": "<hidden value>",
    "energy_value_constant": null
}

[ManagerDrivers],[Driver:esphome-wizard],[Device:41ab5552-3589-44b2-9327-881a38e4290a],REDACTEDn,is inited

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.188:6053],Get current value:,65285400:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:1b67552b-4e4f-4413-8fd9-35b2828ea07a],_forceUpdateCurrentValue:,onoff

[ManagerDrivers],[Driver:esphome-wizard],[Device:1b67552b-4e4f-4413-8fd9-35b2828ea07a],Init capability,onoff,for,65285400:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:1b67552b-4e4f-4413-8fd9-35b2828ea07a],Processing capability: ,onoff

[ManagerDrivers],[Driver:esphome-wizard],[Device:1b67552b-4e4f-4413-8fd9-35b2828ea07a],startNativeCapabilityListener

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.188:6053],[Client],Created

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.188:6053],[Client],Initializing:,{4}
{
    "ipAddress": "192.168.1.188",
    "port": "6053",
    "encryptionKey": "<no value>",
    "password": "<hidden value>"
}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],Physical Device doesn't exist, create a new one

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],New Physical Device to create:,192.168.1.188,6053

[ManagerDrivers],[Driver:esphome-wizard],[Device:1b67552b-4e4f-4413-8fd9-35b2828ea07a],Settings,{7}
{
    "ipAddress": "192.168.1.188",
    "port": "6053",
    "encryptionKey": "<no value>",
    "password": "<hidden value>",
    "energy_alwayson": false,
    "energy_value_off": null,
    "energy_value_on": null
}

[ManagerDrivers],[Driver:esphome-wizard],[Device:1b67552b-4e4f-4413-8fd9-35b2828ea07a],REDACTED,is inited

[ManagerDrivers],[Driver:esphome-wizard],ESPhomeWizard initialized

[ManagerDrivers],[Driver:esphome-device],ESPhomeDriver initializing

[MyApp],ConsoleRe is initialized

[MyApp],Disconnecting from ConsoleRe

Connected
Baldhor commented 1 year ago

I see you have many virtual devices with onoff capability. All of them have the problem ?

In those logs, I cannot see the error you are talking about.

I made a change to make the code stronger, but it will just cause a nicer message to appear: throw new Error('Capability', capability, "doesn't have a matching native capability. the configuration of your physical device probably changed in an incompatible way. Use the Wizard to 'repair' your physical device!");

Basicaly, the only way this issue could appear is if your physical device configuration changed "a lot" => the entity id changed ... because you made big changes in the yml file and uploaded a new firmware

In such situation, the wizard should help you repair the virtual devices linked to your physical device.

NB: my entity ids are stable even I upload new firmware about every days to add more 'mock' entities.

Baldhor commented 1 year ago

You should have this kind of logs: image

Baldhor commented 1 year ago

@JoachimVeulemans Actually you have an error in the initialization of your devices:

[ManagerDrivers],[Driver:esphome-wizard],[Device:41ab5552-3589-44b2-9327-881a38e4290a],REDACTEDn,is inited

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.188:6053],Get current value:,65285400:state

......

[ManagerDrivers],[Driver:esphome-wizard],[Device:1b67552b-4e4f-4413-8fd9-35b2828ea07a],REDACTED,is inited

Between the Get current value and the next is inited, you should other logs ... But you do not because it crash ... (again I conclude in the same analyze than in previous message!)

I will improve error management ... that will not fix your issue.

JoachimVeulemans commented 1 year ago

I had a device registered in the app that was not visible in the devices page. I have deleted the app and so all the devices. I have re-added one, it is back working now. I will re-add the others and do some restarts, will see if it stops working

Baldhor commented 1 year ago

Oh, I think it is because I added encryptionKey support, probably broke existing devices ... => I will publish a fix immediatly!

Baldhor commented 1 year ago

@JoachimVeulemans 0.6.5 is live

I fixed encryption key compatibility for existing devices. Added logs to inform about the "entity id changed' issue. Fixed problem with Errors (Exceptions) not logged in console.re!

JoachimVeulemans commented 1 year ago

I am getting these errors from time to time, was also present in the previous version. I will try to add more logs but the problem is not always present

image

JoachimVeulemans commented 1 year ago
------------------------------ [MARKED  -------------------------------

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],_addCapabilityListener:,measure_temperature,939048788:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],Processing capability: ,measure_temperature

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],_addCapabilityListener:,measure_power,1062154304:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],Processing capability: ,measure_power

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],_addCapabilityListener:,onoff,1205040111:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],Processing capability: ,onoff

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],startCapabilityListeners

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],stateChangedListener:,939048788:state,36.43675231933594

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],Get current value:,939048788:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],_forceUpdateCurrentValue:,measure_temperature

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],Init capability,measure_temperature,for,939048788:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],Processing capability: ,measure_temperature

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],stateChangedListener:,1062154304:state,-78

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],Get current value:,1062154304:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],_forceUpdateCurrentValue:,measure_power

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],Init capability,measure_power,for,1062154304:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],Processing capability: ,measure_power

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],stateChangedListener:,1205040111:state,false

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],Get current value:,1205040111:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],_forceUpdateCurrentValue:,onoff

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],Init capability,onoff,for,1205040111:state

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],Processing capability: ,onoff

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],startNativeCapabilityListener

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],Physical Device already exist

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDeviceManager],New Physical Device to create:,192.168.1.45,6053

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],Settings,{5}
{
    "ipAddress": "192.168.1.45",
    "port": "6053",
    "encryptionKey": "<hidden value>",
    "password": "<no value>",
    "energy_alwayson": false
}

[ManagerDrivers],[Driver:esphome-wizard],[Device:77d51e8c-dedd-4234-aa4a-48aed22b36f8],test,is inited

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],Emit event stateChanged,1062154304:state,-78

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],Native capability:,{8}
{
    "entityId": "1062154304",
    "entityName": "shelly1pm001 WiFi Signal",
    "type": "Sensor",
    "attribut": "state",
    "configs": {
        "deviceClass": "signal_strength",
        "usage": "diagnostic",
        "readOnly": true,
        "unit": "dBm",
        "precision": 0
    },
    "constraints": {},
    "specialCase": null,
    "value": -75
}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],State received:,1062154304,state,-78

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],[Client],Emit event:,stateChanged,1062154304,state,-78

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],[Client],Received state for entity,1062154304,:,{3}
{
    "key": 1062154304,
    "state": -78,
    "missingState": false
}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],[Client],Received a log:,{3}
{
    "level": 5,
    "message": "\u001b[0;36m[D][sensor:093]: 'shelly1pm001 WiFi Signal': Sending state -78.00000 dBm with 0 decimals of accuracy\u001b[0m",
    "sendFailed": false
}

[ManagerDrivers],[Driver:esphome-wizard],browser log:,Finished processing all actions

[ManagerDrivers],[Driver:esphome-wizard],browser log:,Creating device:,{7}

[ManagerDrivers],[Driver:esphome-wizard],browser log:,Devices to create:,[1]

[ManagerDrivers],[Driver:esphome-wizard],browser log:,_addCreateAction:,{6},[0]

[ManagerDrivers],[Driver:esphome-wizard],browser log:,Processing new virtual device,new_1

[ManagerDrivers],[Driver:esphome-wizard],browser log:,Computing actions to apply

[ManagerDrivers],[Driver:esphome-wizard],browser log:,_confirm

[ManagerDrivers],[Driver:esphome-wizard],browser log:,onClickConfirm:,{1}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],Emit event stateChanged,939048788:state,36.43675231933594

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],Native capability:,{8}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],State received:,939048788,state,36.43675231933594

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],[Client],Emit event:,stateChanged,939048788,state,36.43675231933594

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],[Client],Received state for entity,939048788,:,{3}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],[Client],Received a log:,{3}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],[Client],Received a log:,{3}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],[Client],Received a log:,{3}

[ManagerDrivers],[Driver:esphome-wizard],[PhysicalDevice:192.168.1.45:6053],[Client],Received a log:,{3}
Baldhor commented 1 year ago

@JoachimVeulemans I understand it's working now. Can we close this issue? I opened another one for the PairSession Notfound issue, but I'm really unsure I can do anything about it. Generaly, it happens if you change window.

JoachimVeulemans commented 1 year ago

Yes, thank you