danaues / pylutron-caseta

RadioRA3 development for pylutron-caseta
2 stars 0 forks source link

Testing RA3 Support #7

Open danaues opened 2 years ago

danaues commented 2 years ago

Hi Everyone @MouseRatt, @JonGilmore, @daytonturner, @chrisdrackett, @mrmichaeldavis, @swamplynx

This is where we stand with official integration: pylutron-caseta https://github.com/gurumitts/pylutron-caseta/pull/101 was merged providing support for RA3 Processors https://github.com/gurumitts/pylutron-caseta/pull/107 is merged, adding occupancy sensors for RA3 LED's have been implemented by cbw, and scenes are still a work in progress, but cbw's QSX code allows for button presses, essentially solving the scene problem once it's ready.

lutron-caseta HA integration: https://github.com/home-assistant/core/pull/75323 is merged. Required to support the RA3 non-serialized zones https://github.com/home-assistant/core/pull/75324 is merged. Fixing Sunnata Keypad Support

I think that once all the above PRs are merged, we'll have working RA3 support within the official release.

Is anyone available to test prior to official release? I"m specifically interested in testing the occupancy sensors. Does anyone have more than 1 sensor in an area?

There is a copy of my lutron_caseta HA integration here, we can install as a custom component for testing. https://github.com/danaues/lutron_caseta

There are installation instructions in the README. Unfortunately, we still have to manually install the custom pylutron-caseta module using pip inside the container.

Requires at least HA 8.7

Thanks.

danaues commented 2 years ago

Adding @iCSpotRun , @mrmichaeladavis

peterxrock commented 2 years ago

113C44E3-E605-43C7-816B-30D2CEF4550A Joining here. I have Sunnata 3b keypads, dimmers and one occupancy sensor. I have installed the custom component, but when trying to install pylutron, per the directions, the SSH console in HA doesn’t start with “ha”. I’m running on a VM, but I see Docker mentioned, so maybe that’s the issue.

danaues commented 2 years ago

@peterxrock, It won't work over SSH. Try using the console screen on your VM, Not the SSH connection.

peterxrock commented 2 years ago

I might be too novice for this. Hosting on a Synology VM so there's no built in console. I can SSH to the Synology but I don't know the commands to access the VM specifically. Sorry.

Edit: One sec. Think I found it.

peterxrock commented 2 years ago

Install worked. When I try to add the component, I get this. image

danaues commented 2 years ago

looks like it's missing part of the message. Try entering the IP address of your RA3 Processor and clicking submit

danaues commented 2 years ago

It should look like this:

image

danaues commented 2 years ago

Then this: image

peterxrock commented 2 years ago

Paired it successfully. I noticed it's picking up one room of the Triathlon shades, but none of the others. Let me know if you want to test anything specific!

danaues commented 2 years ago

@peterxrock

To confirm, you're running at least HA 8.7.x ?

Can you add this to your configuration.yaml, restart and let me know if you see any lutron_caseta errors in the logs.

logger: default: info logs: custom_components.lutron_caseta: debug

peterxrock commented 2 years ago

I’m running 2022.8.6. I’m in the beta channel but I don't see 8.7. Will try to get it updated manually shortly.

danaues commented 2 years ago

@peterxrock I've just pushed some changes to the lutron-caseta custom component folder.

I don't have any shades to test with, but I think they were probably returning None serials, which created an error, and is why you only see the first one. I've updated the component to handle None serialized zones for covers, switches and fans.

update your config/custom_components/lutron_caseta with the latest from: https://github.com/danaues/lutron_caseta

After updating, you should just be able to restart. Let me know how it works out.

peterxrock commented 2 years ago

Thank you! All devices load now.

Keypads - Tested both Single Action and Toggle settings in Lutron Designer. I believe the component treats all button presses as Single Action. It would be ideal to have Toggle work, so you could use a single keypad button to toggle. I realize the automation logic can be "if light is on, then turn off/if off, then turn on".

Shades - All of the covers load now; the single room of covers that loaded in the prior version show as "Restored" in HA but work.

Naming - See attached. Many of the entities are picking up incorrect names.

Screen Shot 2022-08-19 at 9 46 03 AM

Logger added

Any recommendations on forcing 8.7 via the console on the VM? It's not showing through the UI Updates tab (even with beta channel turned on)

mrmichaeladavis commented 2 years ago

I will take a test on the weekend and report back!

danaues commented 2 years ago

@peterxrock Can you post your diagnostic.txt file for the integration: Click on "Settings" > "Devices and Services" Select the 3 vertical dots icon at the bottom right of the Lutron Caseta integration box, and click "Download diagnostics" to get the file.

Also, can you provide example names that you were expecting for these: image

Thx

peterxrock commented 2 years ago

Attached. I ended up renaming the devices in Lutron, since it was pulling in as light.living_room_living_room_pendant. After a transfer and some reloads, it seems to pull the correct name now. I would note that when a device name is changed in Lutron, it creates a new device in HA and abandons the old one. This may be intended functionality. Just FYI. config_entry-lutron_caseta-548833c7f1dbe65ba9bf2c93245c28f4.json.txt

FYI - Everything is working really nicely. Love that I can single press the raise/lower buttons on the keypad to raise/lower the shades, instead of having to hold them down. I have it set up in Node-RED, too, with no issues.

Screen Shot 2022-08-19 at 1 05 56 PM
peterxrock commented 2 years ago

One issue - I have one room with multiple shade groups. One group is a single shade/door, one group for the two shades on either side, and one group for the single shade across the room. When using a keypad button to raise/lower, the shade groups are not in sync. Not by much, but enough that they're not aligned.

peterxrock commented 2 years ago

New issue - on Kitchen Keypad 1, the button 1 LED never turns off, even though it's set as Single Action in Lutron. It functions normally.

peterxrock commented 2 years ago

Logger: pylutron_caseta.smartbridge Source: /usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py:485 First occurred: 4:28:46 PM (40 occurrences) Last logged: 4:41:23 PM

Reconnecting... Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 460, in _monitor_once self._leap = await self._connect() File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 116, in _connect res = await open_connection( File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/leap.py", line 182, in open_connection reader, writer = await asyncio.open_connection(host, port, limit=limit, **kwds) File "/usr/local/lib/python3.10/asyncio/streams.py", line 47, in openconnection transport, = await loop.create_connection( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection raise exceptions[0] File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection sock = await self._connect_sock( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock await self.sock_connect(sock, address) File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect return await fut File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('192.168.1.67', 8081)

peterxrock commented 2 years ago

Logger: homeassistant.helpers.integration_platform Source: loader.py:674 First occurred: August 19, 2022, 11:23:18 PM (3 occurrences) Last logged: August 19, 2022, 11:23:18 PM

Unexpected error importing lutron_caseta/recorder.py Unexpected error importing lutron_caseta/media_source.py Unexpected error importing lutron_caseta/system_health.py Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component platform = integration.get_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 657, in get_platform cache[full_name] = self._import_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 674, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'custom_components.lutron_caseta-main.recorder'

danaues commented 2 years ago

New issue - on Kitchen Keypad 1, the button 1 LED never turns off, even though it's set as Single Action in Lutron. It functions normally.

Yes, LEDs are still on the To Do list. Not supported yet. I'll start looking into it once the occupancy support is merged

danaues commented 2 years ago

It kinda looks like the RA3 Processor was reset/restarted. Did it come back on it own after this?

Logger: pylutron_caseta.smartbridge Source: /usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py:485 First occurred: 4:28:46 PM (40 occurrences) Last logged: 4:41:23 PM

Reconnecting... Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 460, in _monitor_once self._leap = await self._connect() File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 116, in _connect res = await open_connection( File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/leap.py", line 182, in open_connection reader, writer = await asyncio.open_connection(host, port, limit=limit, **kwds) File "/usr/local/lib/python3.10/asyncio/streams.py", line 47, in openconnection transport, = await loop.create_connection( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection raise exceptions[0] File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection sock = await self._connect_sock( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock await self.sock_connect(sock, address) File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect return await fut File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('192.168.1.67', 8081)

It kinda looks like the RA3 Processor was reset/restarted. Did it come back on it own after this?

danaues commented 2 years ago

Logger: homeassistant.helpers.integration_platform Source: loader.py:674 First occurred: August 19, 2022, 11:23:18 PM (3 occurrences) Last logged: August 19, 2022, 11:23:18 PM

Unexpected error importing lutron_caseta/recorder.py Unexpected error importing lutron_caseta/media_source.py Unexpected error importing lutron_caseta/system_health.py Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component platform = integration.get_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 657, in get_platform cache[full_name] = self._import_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 674, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'custom_components.lutron_caseta-main.recorder'

I think you might have some extra files in your custom_components/lutron_caseta folder.

These files aren't supposed to be in there, and aren't in my repository. Can you have a look?

lutron_caseta/recorder.py lutron_caseta/media_source.py lutron_caseta/system_health.py

peterxrock commented 2 years ago

It kinda looks like the RA3 Processor was reset/restarted. Did it come back on it own after this?

Logger: pylutron_caseta.smartbridge Source: /usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py:485 First occurred: 4:28:46 PM (40 occurrences) Last logged: 4:41:23 PM

Reconnecting... Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 460, in _monitor_once self._leap = await self._connect() File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 116, in _connect res = await open_connection( File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/leap.py", line 182, in open_connection reader, writer = await asyncio.open_connection(host, port, limit=limit, **kwds) File "/usr/local/lib/python3.10/asyncio/streams.py", line 47, in openconnection transport, = await loop.create_connection( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection raise exceptions[0] File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection sock = await self._connect_sock( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock await self.sock_connect(sock, address) File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect return await fut File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('192.168.1.67', 8081)

It kinda looks like the RA3 Processor was reset/restarted. Did it come back on it own after this?

I wonder if this happens when there's a transfer? I was definitely transferring quite a bit yesterday.

peterxrock commented 2 years ago

Logger: homeassistant.helpers.integration_platform Source: loader.py:674 First occurred: August 19, 2022, 11:23:18 PM (3 occurrences) Last logged: August 19, 2022, 11:23:18 PM Unexpected error importing lutron_caseta/recorder.py Unexpected error importing lutron_caseta/media_source.py Unexpected error importing lutron_caseta/system_health.py Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component platform = integration.get_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 657, in get_platform cache[full_name] = self._import_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 674, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'custom_components.lutron_caseta-main.recorder'

I think you might have some extra files in your custom_components/lutron_caseta folder.

These files aren't supposed to be in there, and aren't in my repository. Can you have a look?

lutron_caseta/recorder.py lutron_caseta/media_source.py lutron_caseta/system_health.py

Nope, none of these files in the folder.

danaues commented 2 years ago

It kinda looks like the RA3 Processor was reset/restarted. Did it come back on it own after this?

Logger: pylutron_caseta.smartbridge Source: /usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py:485 First occurred: 4:28:46 PM (40 occurrences) Last logged: 4:41:23 PM

Reconnecting... Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 460, in _monitor_once self._leap = await self._connect() File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 116, in _connect res = await open_connection( File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/leap.py", line 182, in open_connection reader, writer = await asyncio.open_connection(host, port, limit=limit, **kwds) File "/usr/local/lib/python3.10/asyncio/streams.py", line 47, in openconnection transport, = await loop.create_connection( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection raise exceptions[0] File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection sock = await self._connect_sock( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock await self.sock_connect(sock, address) File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect return await fut File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('192.168.1.67', 8081)

It kinda looks like the RA3 Processor was reset/restarted. Did it come back on it own after this?

I wonder if this happens when there's a transfer? I was definitely transferring quite a bit yesterday.

Yes, happens to me on during a transfer too. Mine comes back up on it's own after the processor is available again.

danaues commented 2 years ago

Logger: homeassistant.helpers.integration_platform Source: loader.py:674 First occurred: August 19, 2022, 11:23:18 PM (3 occurrences) Last logged: August 19, 2022, 11:23:18 PM Unexpected error importing lutron_caseta/recorder.py Unexpected error importing lutron_caseta/media_source.py Unexpected error importing lutron_caseta/system_health.py Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component platform = integration.get_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 657, in get_platform cache[full_name] = self._import_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 674, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'custom_components.lutron_caseta-main.recorder'

I think you might have some extra files in your custom_components/lutron_caseta folder. These files aren't supposed to be in there, and aren't in my repository. Can you have a look? lutron_caseta/recorder.py lutron_caseta/media_source.py lutron_caseta/system_health.py

Nope, none of these files in the folder.

might be related to running it on HA 8.6, maybe some things that were changed in 8.7 are causing this. My clone of the lutron_caseta integration was from the 8.7 source tree. Do you have to restart after you get this error? Or does everything keep working?

peterxrock commented 2 years ago

Logger: homeassistant.helpers.integration_platform Source: loader.py:674 First occurred: August 19, 2022, 11:23:18 PM (3 occurrences) Last logged: August 19, 2022, 11:23:18 PM Unexpected error importing lutron_caseta/recorder.py Unexpected error importing lutron_caseta/media_source.py Unexpected error importing lutron_caseta/system_health.py Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component platform = integration.get_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 657, in get_platform cache[full_name] = self._import_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 674, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'custom_components.lutron_caseta-main.recorder'

I think you might have some extra files in your custom_components/lutron_caseta folder. These files aren't supposed to be in there, and aren't in my repository. Can you have a look? lutron_caseta/recorder.py lutron_caseta/media_source.py lutron_caseta/system_health.py

Nope, none of these files in the folder.

might be related to running it on HA 8.6, maybe some things that were changed in 8.7 are causing this. My clone of the lutron_caseta integration was from the 8.7 source tree. Do you have to restart after you get this error? Or does everything keep working?

Everything keeps working. So far, none of the errors have stopped it. Is there an easy way to upgrade to 8.7 via the VM console? I tried some Googled commands but nothing happened.

peterxrock commented 2 years ago

Lots of these, but I believe due to 8.6, too:

Logger: pylutron_caseta.smartbridge Source: runner.py:119 First occurred: August 19, 2022, 11:23:18 PM (8 occurrences) Last logged: 3:45:23 PM

Occupancy group 1854 has a status but no sensors Occupancy group 1866 has a status but no sensors

danaues commented 2 years ago

Lots of these, but I believe due to 8.6, too:

Logger: pylutron_caseta.smartbridge Source: runner.py:119 First occurred: August 19, 2022, 11:23:18 PM (8 occurrences) Last logged: 3:45:23 PM

Occupancy group 1854 has a status but no sensors Occupancy group 1866 has a status but no sensors

These are expected. The processor sends area status updates for areas that don't have any sensors. The module just ignores them, and sends this warning. Maybe I'll remove the warning, it isn't really important.

danaues commented 2 years ago

Lots of these, but I believe due to 8.6, too: Logger: pylutron_caseta.smartbridge Source: runner.py:119 First occurred: August 19, 2022, 11:23:18 PM (8 occurrences) Last logged: 3:45:23 PM Occupancy group 1854 has a status but no sensors Occupancy group 1866 has a status but no sensors

These are expected. The processor sends area status updates for areas that don't have any sensors. The module just ignores them, and sends this warning. Maybe I'll remove the warning, it isn't really important.

I've just updated this to send a debug message instead of a warning. You can uninstall and re-install using pip to test.

peterxrock commented 2 years ago

Lots of these, but I believe due to 8.6, too: Logger: pylutron_caseta.smartbridge Source: runner.py:119 First occurred: August 19, 2022, 11:23:18 PM (8 occurrences) Last logged: 3:45:23 PM Occupancy group 1854 has a status but no sensors Occupancy group 1866 has a status but no sensors

These are expected. The processor sends area status updates for areas that don't have any sensors. The module just ignores them, and sends this warning. Maybe I'll remove the warning, it isn't really important.

I've just updated this to send a debug message instead of a warning. You can uninstall and re-install using pip to test.

That worked!

peterxrock commented 2 years ago

I noticed it's pulling in a device called "Bathroom Shower Fan". I do have a Bathroom Shower Fan that's currently unactivated, but it's the only unactivated switch showing up under Devices. When I open it, it has all the Lutron entities underneath it.

Screen Shot 2022-08-24 at 9 54 49 PM Screen Shot 2022-08-24 at 9 54 38 PM
peterxrock commented 2 years ago

I upgraded to 8.7 last night. It broke the integration (I assume this is because you sent one specific for 8.6). I downloaded the custom component in the first message of this thread, reinstalled, and now it won't let me add the custom component. Do I need to update something with pylutron?

dcough commented 2 years ago

I upgraded to 8.7 last night. It broke the integration (I assume this is because you sent one specific for 8.6). I downloaded the custom component in the first message of this thread, reinstalled, and now it won't let me add the custom component. Do I need to update something with pylutron?

Also upgraded to 8.7 and now seeing a "Failed to Set Up" notice on the integration that was working a few days ago, and a notice to check the logs.

The log shows:

2022-08-25 22:51:55.942 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.1.70 RA3 for lutron_caseta File "/config/custom_components/lutron_caseta/init.py", line 158, in async_setup_entry File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 104, in connect File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 543, in _login File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 588, in _load_devices

Are you getting the same?

I'll attempt a re-install later this evening and report back.

peterxrock commented 2 years ago

I upgraded to 8.7 last night. It broke the integration (I assume this is because you sent one specific for 8.6). I downloaded the custom component in the first message of this thread, reinstalled, and now it won't let me add the custom component. Do I need to update something with pylutron?

Also upgraded to 8.7 and now seeing a "Failed to Set Up" notice on the integration that was working a few days ago, and a notice to check the logs.

The log shows:

2022-08-25 22:51:55.942 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.1.70 RA3 for lutron_caseta

File "/config/custom_components/lutron_caseta/init.py", line 158, in async_setup_entry

File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 104, in connect

File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 543, in _login

File "/usr/local/lib/python3.10/site-packages/pylutron_caseta/smartbridge.py", line 588, in _load_devices

Are you getting the same?

I'll attempt a re-install later this evening and report back.

Yes, that's the same issue. I removed and reinstalled and it still didn't work. I ended up rolling back to a snapshot on 8.6.

dcough commented 2 years ago

Yes, that's the same issue. I removed and reinstalled and it still didn't work. I ended up rolling back to a snapshot on 8.6.

Hm, I was able to re-install and no errors with launching anymore. My existing test automation was broken, but once I re-added the keypad and saved the automation it started working again.

I did the following to re-install (same as instructions but with a step of deleting the integration prior to the restart)

enter the command "docker exec -it $(docker ps -f name=homeassistant -q) bash" and you get a "bash-5.1#" prompt enter the command "pip uninstall pylutron-caseta" and answer "y" when asked to proceed (or it will skip if not installed) enter the command "pip install git+https://github.com/danaues/pylutron-caseta@testing" Deleted my existing Lutron Caseta Integration using the HA web interface restarted home assistant using the HA web interface or client add the "Lutron Caseta" integration using the HA web interface or client

Going to try adding a few new devices to the network and we'll see how it goes.

peterxrock commented 2 years ago

Yes, that's the same issue. I removed and reinstalled and it still didn't work. I ended up rolling back to a snapshot on 8.6.

Hm, I was able to re-install and no errors with launching anymore. My existing test automation was broken, but once I re-added the keypad and saved the automation it started working again.

I did the following to re-install (same as instructions but with a step of deleting the integration prior to the restart)

enter the command "docker exec -it $(docker ps -f name=homeassistant -q) bash" and you get a "bash-5.1#" prompt enter the command "pip uninstall pylutron-caseta" and answer "y" when asked to proceed (or it will skip if not installed) enter the command "pip install git+https://github.com/danaues/pylutron-caseta@testing" Deleted my existing Lutron Caseta Integration using the HA web interface restarted home assistant using the HA web interface or client add the "Lutron Caseta" integration using the HA web interface or client

Going to try adding a few new devices to the network and we'll see how it goes.

Thanks! I was able to get it running again. Checking everything now. I still get this error in the log: Logger: homeassistant.helpers.integration_platform Source: loader.py:674 First occurred: 8:38:21 AM (3 occurrences) Last logged: 8:38:21 AM

Unexpected error importing lutron_caseta/recorder.py Unexpected error importing lutron_caseta/system_health.py Unexpected error importing lutron_caseta/media_source.py Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component platform = integration.get_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 657, in get_platform cache[full_name] = self._import_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 674, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'custom_components.lutron_caseta-main.recorder'

dcough commented 2 years ago

Thanks! I was able to get it running again. Checking everything now. I still get this error in the log:

Happy to help, your install experience was a huge help to me!

I'm not seeing errors, but I'm probably not looking in the right place. (Former front end web designer, minimal experience with anything developer related!)

My config file has the following:

logger: default: info logs: custom_components.lutron_caseta: debug homeassistant.helpers.integration_platform: debug

(I added the last one after seeing your error message).

And I'm looking in the "Full Logs" available from the HA UI in System > Logs. If that matches, then nothing being flagged on my system.

I've since added a few more RA3 devices and things seem to be running smoothly.

@danaues as mentioned I'm pretty green with all of this stuff but let me know if there's any way I can be of help!

peterxrock commented 2 years ago

After upgrading to 8.7, I’m still not seeing the occupancy sensor working. It just stays on full time. image

danaues commented 2 years ago

re

@dcough , thanks I appreciate the help testing!

danaues commented 2 years ago

@peterxrock is the sensor configured as occupancy or vacation within the lutron designer? Can you send me another diagnostic.txt file?

Thanks!

peterxrock commented 2 years ago

@peterxrock is the sensor configured as occupancy or vacation within the lutron designer? Can you send me another diagnostic.txt file?

Thanks!

Sorry. I realized the issue is the occupancy sensor isn't coming through at all - not that it's not updating. After 8.7, the automation was referencing a non-existent entity. Here are the logs.

Screen Shot 2022-08-29 at 9 30 36 AM

config_entry-lutron_caseta-d8996d3cc3ff5fd1e256d94d0c397bcb.json.txt

peterxrock commented 2 years ago

Still getting this on 8.7, too: Logger: homeassistant.helpers.integration_platform Source: loader.py:674 First occurred: 9:35:43 AM (3 occurrences) Last logged: 9:35:43 AM

Unexpected error importing lutron_caseta/recorder.py Unexpected error importing lutron_caseta/media_source.py Unexpected error importing lutron_caseta/system_health.py Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component platform = integration.get_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 657, in get_platform cache[full_name] = self._import_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 674, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'custom_components.lutron_caseta-main.recorder'

danaues commented 2 years ago

ModuleNotFoundError: No module named 'custom_components.

@peterxrock , can you double check to make sure the folder name that you have the custom component in is

"/custom_components/lutron_caseta" all in lower case. The folder name has to match exactly the domain we've set in the manifest file.

This forum post describes a similar problem that was fixed with capitalization of the folder name: https://community.home-assistant.io/t/modulenotfounderror-custom-compontent/324670

danaues commented 2 years ago

Did the sensor entity exist before the upgrade to 8.7?

peterxrock commented 2 years ago

ModuleNotFoundError: No module named 'custom_components.

@peterxrock , can you double check to make sure the folder name that you have the custom component in is

"/custom_components/lutron_caseta" all in lower case. The folder name has to match exactly the domain we've set in the manifest file.

This forum post describes a similar problem that was fixed with capitalization of the folder name: https://community.home-assistant.io/t/modulenotfounderror-custom-compontent/324670

As downloaded, it's "lutron_caseta-main". I changed it, and the issue resolved.

peterxrock commented 2 years ago

Did the sensor entity exist before the upgrade to 8.7?

Yes, I think you dropped me an update to the component, and it was working for a bit on 8.6. Just confirming - I should see this in the entities list?

danaues commented 2 years ago

Yes, as a binary sensor

peterxrock commented 2 years ago

Got it. It's not coming through then.