core icon indicating copy to clipboard operation
core copied to clipboard

Bosch_SHC No devices discovered

Open Fitzbert-Fitz opened this issue 1 year ago • 2 comments

The problem

I just started setting up HA. Bosch_SHC does not discover any devices. (several thermostates and switches are connected to SHC) Unfortunatly there is not a lot which I can provide. Bosch_SHC is configured without any errors. I attach the debug log which covers the configuration process showing that HA interacts with at least one thermostate.

What version of Home Assistant Core has the issue?

core-2024.10.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

bosch_shc

Link to integration documentation on our website

https://www.home-assistant.io/integrations/bosch_shc

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-10-11 15:24:51.783 DEBUG (SyncWorker_7) [boschshcpy] Registering new client with id 192.168.178.77 and name oss_HomeAssistant_Binding.
2024-10-11 15:24:55.814 DEBUG (SyncWorker_7) [boschshcpy] Obtain unique_id for 'shc40fc0f' via zeroconf: '64-da-a0-40-fc-0f'
2024-10-11 15:24:58.174 DEBUG (SyncWorker_2) [boschshcpy] Obtain unique_id for 'shc40fc0f' via zeroconf: '64-da-a0-40-fc-0f'
2024-10-11 15:24:58.317 DEBUG (SyncWorker_2) [boschshcpy] Skipping device id ventilationService which has no services that are supported by this library
2024-10-11 15:24:58.318 DEBUG (SyncWorker_2) [boschshcpy] Skipping device id hdm:PhilipsHueBridge:PhilipsHueBridgeManager which has no services that are supported by this library
2024-10-11 15:24:58.589 DEBUG (SHCPollingThread) [boschshcpy] Subscribed for long poll. Poll id: fgih1lkh9-25
2024-10-11 15:25:04.081 DEBUG (SHCPollingThread) [boschshcpy] Long poll: {'path': '/devices/hdm:ZigBee:001e5e09029db128/services/TemperatureLevel', '@type': 'DeviceServiceData', 'id': 'TemperatureLevel', 'state': {'@type': 'temperatureLevelState', 'temperature': 20.05}, 'deviceId': 'hdm:ZigBee:001e5e09029db128'}
2024-10-11 15:25:04.129 DEBUG (SHCPollingThread) [boschshcpy] Long poll: {'path': '/devices/roomClimateControl_hz_8/services/TemperatureLevel', '@type': 'DeviceServiceData', 'id': 'TemperatureLevel', 'state': {'@type': 'temperatureLevelState', 'temperature': 20.05}, 'deviceId': 'roomClimateControl_hz_8'}

Additional information

No response

Fitzbert-Fitz avatar Oct 11 '24 13:10 Fitzbert-Fitz

Hey there @tschamm, mind taking a look at this issue as it has been labeled with an integration (bosch_shc) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of bosch_shc can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign bosch_shc Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


bosch_shc documentation bosch_shc source (message by IssueLinks)

home-assistant[bot] avatar Oct 11 '24 13:10 home-assistant[bot]

#103659 does not apply in my case. Shown firmware of intergration and smarthomecontroller are in sync

Fitzbert-Fitz avatar Oct 11 '24 13:10 Fitzbert-Fitz

I have a similar problem. My Wall Thermostat II 230V is not discovered. My Thermostat II on the other hand is discovered and works.

saithis avatar Oct 21 '24 12:10 saithis

Same here. So far I only own Wall Thermostat 2 230V (11 of them). And nothing is discovered.

Is the device even supposed to work with the integration already? If I can support by generating logs or similar - let me know...

dustXman avatar Oct 28 '24 10:10 dustXman

Not all devices are supported via the official integration. You can test the custom component if that supports the devices.

tschamm avatar Oct 28 '24 21:10 tschamm

I am a new user of HA and have connected a Bosch Smart Home Controller 2 unit to HA. My 2 thermostatII´s are not visible in HA. I only have 2 thermostats connected to Bosch; nothing else.

I am curious if the other people also have the same issue when they connect their units to a fresh instance of HA?

Ideally I did a manual addon of the thermostats directly into HA but that seems to be another story.

here is parts of my log where there seems to be some data coming in from the thermostatII 2024-11-01 17:42:36.409 DEBUG (SHCPollingThread) [boschshcpy] Long poll: {'path': '/devices/hdm:ZigBee:001e5e0902911a12/services/HumidityLevel', '@type': 'DeviceServiceData', 'id': 'HumidityLevel', 'state': {'@type': 'humidityLevelState', 'humidity': 47.57}, 'deviceId': 'hdm:ZigBee:001e5e0902911a12'} 2024-11-01 17:42:36.457 DEBUG (SHCPollingThread) [boschshcpy] Long poll: {'iconId': 'icon_room_living_room', 'extProperties': {'humidity': '47.57'}, '@type': 'room', 'name': 'Living room', 'id': 'hz_1'}

PS ... could it be that only Bosch Smart Home Controller 1 is supported and not 2? Same for thermostat?

Lem1ming avatar Nov 01 '24 17:11 Lem1ming

Hi there. I managed to get it working using not this (Bosch_SHC) integration but by using Matter (currently still in Beta). I needed to enable "matter support" in the Bosch SmartHome App. I then got a code valid only 15 Minutes, but I was able adding the SHC to the Matter integration within this time frame. (Devices, Add devices, type matter, manually, code, boom) - works out of the box... all room thermostats are shown as 2 devices: 1 sensor for temperatur and humidity and one heating controller.

dustXman avatar Nov 06 '24 13:11 dustXman

Hi, same issue also on my side: Completely new Smart Controller 2, completely new Room Thermostat 2 230V and completely new installation of Home Assistant. The Smart Controller itself is visible as a device, but with no entities under it and no info about the Thermostats at all. If there would be any logs I should provide,just let me know. For me the compatibility of HA with the Bosch Smart Home was the reason,why I decided for the Bosch devices. So now I'm in a bit of a trouble :-/ Thanks for your support in advance!

dubakdubak avatar Nov 06 '24 21:11 dubakdubak

Have you tried using the custom component? The smart home controller 2 devices are not yet supported in the official integration.

tschamm avatar Nov 07 '24 18:11 tschamm

Update: Custom HACS integration Bosch Smart Home Controller (SHC) for Home Assistant seems to solve it for me.

——

Same here 230V Thermostat II is not discovered. Other devices connected with the SHC are available in Home Assistant, eg. Twinguard, Thermostat I, Smart Plug.

I'm using the SHC 1.

I get this error in the logs. Not sure if this correlate. `Logger: homeassistant Source: components/bosch_shc/sensor.py:100 First occurred: 20:01:47 (1 occurrences) Last logged: 20:01:47

Error doing job: Exception in callback Entity._async_write_ha_state_from_call_soon_threadsafe() (None) Traceback (most recent call last): File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 998, in _async_write_ha_state_from_call_soon_threadsafe self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state self.__async_calculate_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1069, in __async_calculate_state state = self._stringify_state(available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1013, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 544, in state value = self.native_value ^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/bosch_shc/sensor.py", line 224, in native_value return self.entity_description.value_fn(self._device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/bosch_shc/sensor.py", line 100, in value_fn=lambda device: device.purity_rating.name, ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/boschshcpy/models_impl.py", line 712, in purity_rating return self._airqualitylevel_service.purityRating ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/boschshcpy/services_impl.py", line 717, in purityRating return self.RatingState(self.state["purityRating"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/enum.py", line 757, in call return cls.new(cls, value) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/enum.py", line 1171, in new raise ve_exc ValueError: 'UNKNOWN' is not a valid AirQualityLevelService.RatingState`

b33tlej avatar Nov 07 '24 19:11 b33tlej

I do have a SHC I (1st version) latest firmware. Installed bosch_shc and bosch HSC HACS version. Can do pairing, see home assistant connected in the SHC App and seeh the bosch_shc folder with the certicate after successful pairing. However, no devices show up. I do have the Radiator Thermostat II (without matter). Is this a bug? NO success with HACS version or official version.

gramels avatar Dec 01 '24 02:12 gramels

Same problem with my Thermostat II 230V. It's not discovered. It's working fine with the custom component.

Is there a specific reason why there is an official integration and a HACS-version, since it's the same author.? Is't it more difficult to maintain two versions?

MarcV16 avatar Dec 03 '24 15:12 MarcV16

It took me quite a while to figure out that the official Bosch Smart Home integration is fairly outdated and does not currently receive any updates directly.

Instead, one is supposed to install the custom integration from the same author as stated here:

https://github.com/tschamm/boschshc-hass/issues/178#issuecomment-2064791197

Luckily, it seems this is quite straightforward: You may simply download the custom integration using HACS.

After restarting Home Assistant, all you need to do is to manually reload the instance to trigger a full sync of all devices:

image

After this, a whole bunch of new devices will appear, others will be fixed to work properly.

jpawlowski avatar Dec 28 '24 12:12 jpawlowski

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.