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

Abort integration via HA 0.100.3 #11

Closed
probecar opened this issue Oct 29, 2019 · 82 comments
Closed

Abort integration via HA 0.100.3 #11

probecar opened this issue Oct 29, 2019 · 82 comments

Comments

@probecar
Copy link

Hello,

Thank you for your work.
Trying to integrate your component, but have Aborted for version 0.4.2 and 0.5.1
Latest release (0.3 alpha) I can integrate, but did not receive information from sensors, but bosch_scan.json show all information from gateway.
I use HA 0.100.3 (hassio), KM200 v2 Gateway (FW 01.06.02)

If need any assistant of testing your component please let me know.

Thank you.

bosch_scan.zip

@pszafer

This comment has been minimized.

@probecar

This comment has been minimized.

@probecar
Copy link
Author

Now tested 0.4.1 same issue

@pszafer
Copy link
Collaborator

pszafer commented Oct 29, 2019

  1. Stop HA
  2. Remove file ~/.homeassistant/.storage/bosch
  3. Start HA
  4. Check now if same error occurs.

Test on newest version as it's easier to fix this version

@probecar
Copy link
Author

probecar commented Oct 29, 2019

Same issue:
Unknown error connecting with Bosch thermostat at 192.168.1.32

I am trying to add component via Integrations
Untitled

Final release 0.5.1

@probecar
Copy link
Author

probecar commented Oct 29, 2019

May be this will usefull:
4:03 PM custom_components/bosch/config_flow.py (ERROR) - message first occured at 3:41 PM and shows up 2 times - Unknown error connecting with Bosch thermostat at 192.168.1.32

@probecar
Copy link
Author

Hi,
Which HA version you was using for testing your 0.5.1 release? I am trying to reboot Gateway, but problem still exist.

@pszafer
Copy link
Collaborator

pszafer commented Oct 30, 2019

Be patient. I think there are some changes in HA 0.100.x which I missed and that might be the reason for component failing.

@probecar
Copy link
Author

No problem. Waiting for your new fixed release. Thank you.

@probecar
Copy link
Author

Hello,
May be you can provide information how to debug your code? I will try to debug it by myself.
I see that you too busy, it is ok. I am understand.

Thank you,
Regards,

@pszafer
Copy link
Collaborator

pszafer commented Nov 29, 2019

It's in testing stage, but I have something... I have to polish it little more I think.

But what you can do:

cd ~/.homeassistant/custom_components/
git clone --single-branch --branch new_config_flow git@github.com:pszafer/home-assistant-bosch-custom-component.git
cd ~
git clone --single-branch --branch dev git@github.com:moustic999/bosch-thermostat-http-client-python.git
cd PATH_TO_YOUR_HA_INSTALLATION/lib/python3.x/site-packages
rm -rf bosch_thermostat_http
ln -s ~/bosch-thermostat-http-client-python/bosch_thermostat_http/ bosch_thermostat_http

you have to remove config entry from HA manually and then test it for me.
For water_heater set_temperature is not quite ready so this is one thing I have to fix for sure.

@probecar
Copy link
Author

Hi,
Thank for fast response.
I am need to test it on latest release 0.5.1?

@pszafer
Copy link
Collaborator

pszafer commented Nov 29, 2019

It's not ready to be released yet (even in any alpha stage), so no release zip.
It's in dev stage, but you can use my instructions to use it already and report any bugs here.

@probecar
Copy link
Author

I am trying to download by your link:

git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Also I use hassio, and I have not access to /lib/python3.x/site-packages

@probecar
Copy link
Author

Can you upload this files here as attachment. Thnks

@pszafer
Copy link
Collaborator

pszafer commented Nov 29, 2019

If you can't install anything in site-packages then it's impossible to test it for you yet.
You can replace git link with https link and it should work: https://github.com/pszafer/home-assistant-bosch-custom-component/

@probecar
Copy link
Author

you mean wget https://github.com/pszafer/home-assistant-bosch-custom-component/
if so, I tried but it does not work

@pszafer
Copy link
Collaborator

pszafer commented Nov 29, 2019

git clone --single-branch --branch new_config_flow https://github.com/pszafer/home-assistant-bosch-custom-component

@probecar
Copy link
Author

yes you right. it is not work without bosch-thermostat-http-client-python packages. And as I use hassio I can not change it.
Waiting for your release. Thank you. Have a nice weekend.

@pszafer
Copy link
Collaborator

pszafer commented Dec 2, 2019

New component is released. Please test it and give feedback if it is working for you.

@probecar
Copy link
Author

probecar commented Dec 2, 2019

Thank you. I will test it and back to you.

@probecar
Copy link
Author

probecar commented Dec 3, 2019

Hello,

Now trying to add Bosch thermostat via HA Integration.
But no success. When trying Submit, nothing happens, no error, just submit for resets and all fields is empty.
Any ideas?
Password is gateway user pass, Access token is device password that is printed on buderus gateway.
Pls correct me if I'm not right. Which port use your module for connection with gateway?

@probecar
Copy link
Author

probecar commented Dec 3, 2019

Log:
Error connecting Bosch at 192.168.1.32 - Path does not exist : /system/info 4:57 PM custom_components/bosch/config_flow.py (ERROR)

@moustic999
Copy link
Collaborator

moustic999 commented Dec 3, 2019 via email

@moustic999
Copy link
Collaborator

moustic999 commented Dec 3, 2019 via email

@probecar
Copy link
Author

probecar commented Dec 3, 2019

Hello moustic,
I use Buderus Logatherm wps10k.
I am already was trying to delete old config from conf. yaml. Reupload new files to custom folder, and delete bosch file from storage folder.

@pszafer
Copy link
Collaborator

pszafer commented Dec 3, 2019

Can you install python and lib from different device that is HASS?
I need another scan...

Also, I see there are many problems with component, so I decided to create discord channel to be in touch easier. https://discord.gg/uWnWnx

@probecar
Copy link
Author

probecar commented Dec 3, 2019

At this time I have only one Pi for this purpose and Hassio is installed on it, that as why I can't upload any files to lib directory. I will try to figure out with this and find one more device for testing environment.
But it is very strange that when I use 0.3 version I can connect to gateway, but within all other versions NOT.
Now I am using latest HA 0.102.3

@moustic999
Copy link
Collaborator

moustic999 commented Dec 3, 2019 via email

@pszafer
Copy link
Collaborator

pszafer commented Dec 3, 2019

@probecar it was adding things for you because before component didn't check if it can handle this kind of device. Since we discovered that every model has different way of handling data, I'm trying to adapt it for each model. Unfortunately your device doesn't return anything in this area

@pszafer
Copy link
Collaborator

pszafer commented Dec 21, 2019

released new version in which I added more logs to sensors output.
maybe that will help to investigate... sorry for that. Without access to the device it's more like guessing how it works.

Config folder is the way to go. I added message in logs as well informing that module is loading file from your config directory.

CONFIG_FOLDER/custom_bosch_db.json

@probecar
Copy link
Author

probecar commented Dec 21, 2019

My custom json:
All sensors show -1, (waiting to fetch data), Climate.hc1 also not working.

{
    "01.06.02": {
        "heatingCircuits": {
            "hastates": {
                "off": "off",
                "heat": "setpoint1",
                "cool": null,
                "heat_cool": "setpoint2",
                "auto": "auto",
                "dry": null,
                "fan_only": null
            },
            "mode_to_setpoint": {
                "normal": {
                    "read": null,
                    "write": "setpoint1",
                    "type": "manual"
                },
                "exception": {
                    "read": null,
                    "write": "setpoint2",
                    "type": "manual"
                },
                "auto":{
                    "read": null,
                    "write": "setpoint1",
                    "type": "auto"
                }
            },
            "mainUri": "/heatingCircuits",
            "refs": {
                "operation_mode": {
                    "id": "/heatingCircuits/{}/operationMode",
                    "name": "Operation mode",
                    "type": "regular"
                },
                "setpoint1": {
                    "id": "/heatingCircuits/{}/temperatureLevels/normal",
                    "name": "Normal room setpoint",
                    "type": "setpoint"
                },
                "setpoint2": {
                    "id": "/heatingCircuits/{}/temperatureLevels/exception",
                    "name": "Exception room setpoint",
                    "type": "setpoint"
                },
               
                "activeProgram": {
                    "id": "/heatingCircuits/{}/activeSwitchProgram",
                    "name": "Active Switch Program",
                    "type": "activeProgram"
                },
                "status": {
                    "id": "/heatingCircuits/{}/status",
                    "name": "Heating circuit status",
                    "type": "regular"
                }
            }
        },
        "dhwCircuits": {
            "hastates": {
                "off": "off",
                "on": "on",
                "eco": null,
                "eletric": null,
                "performance": "auto",
                "high_demand": null,
                "heat_pump": null,
                "gas": null
            },
            "mode_to_setpoint": {
                "on": {
                    "read": "setpoint2",
                    "write": "setpoint2",
                    "type": "manual"
                },
                "off": {
                    "read": "setpoint1",
                    "write": null,
                    "type": "off"
                },
                "auto": {
                    "read": null,
                    "write": "setpoint2",
                    "type": "auto"
                }
            },
            "mainUri": "/dhwCircuits",
            "refs": {
                "current_temp": {
                    "id": "/dhwCircuits/{}/actualTemp",
                    "name": "Hotwater temp",
                    "type": "regular"
                },
                "operation_mode": {
                    "id": "/dhwCircuits/{}/operationMode",
                    "name": "Operation mode",
                    "type": "regular"
                },
                "setpoint1": {
                    "id": "/dhwCircuits/{}/setTemperature",
                    "name": "DHW setpoint",
                    "type": "setpoint"
                },
                "setpoint2": {
                    "id": "/dhwCircuits/{}/currentSetpoint",
                    "name": "DHW Curr Setpoint",
                    "type": "setpoint"
                },
                "status": {
                    "id": "/dhwCircuits/{}/status",
                    "name": "DHW status",
                    "type": "regular"
                },
                "activeProgram": {
                    "id": "/dhwCircuits/{}/activeSwitchProgram",
                    "name": "Active Switch Program",
                    "type": "activeProgram"
                }
            }
        },
        "sensors": {
            "outdoor_t1": {
                "id": "/system/sensors/outdoorTemperatures/t1",
                "name": "Outdoor temperature"
            },
            "hotWater_t2": {
                "id": "/dhwCircuits/dhw1/actualTemp",
                "name": "Hotwater temp"
            },
            "supply_t1_setpoint": {
                "id": "/heatingCircuits/hc1/supplyTemperatureSetpoint",
                "name": "Supply temp setpoint"
            },

            "hotWater_setpoint": {
                "id": "/dhwCircuits/dhw1/setTemperature",
                "name": "Hotwater SetPoint"
            },
            "hotWater_Program": {
                "id": "/dhwCircuits/dhw1/activeDhwTimeProgram",
                "name": "Hotwater Program"
            }
        },
        "versionFirmware": "01.06.02"
    }
}

Logs:

2019-12-21 22:05:15 DEBUG (SyncWorker_14) [custom_components.bosch.climate] Update of climate hc1 component called.
2019-12-21 22:05:15 DEBUG (SyncWorker_9) [custom_components.bosch.climate] Update of climate hc2 component called.
2019-12-21 22:05:20 WARNING (MainThread) [homeassistant.core] Unable to remove unknown service bosch/update_thermostat.
2019-12-21 22:05:20 DEBUG (MainThread) [custom_components.bosch] Setting up Bosch component version 0.5.7.
2019-12-21 22:05:20 DEBUG (MainThread) [custom_components.bosch] Checking connection to Bosch gateway.
2019-12-21 22:05:20 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /gateway/uuid
2019-12-21 22:05:20 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /gateway/versionFirmware
2019-12-21 22:05:20 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /system/brand
2019-12-21 22:05:20 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /system/info
2019-12-21 22:05:20 DEBUG (MainThread) [bosch_thermostat_http.gateway] Can't fetch data for update_info URI /system/info doesn not exist: 404, message='Not Found', url='http://192.168.1.32/system/info
2019-12-21 22:05:20 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /system/systemType
2019-12-21 22:05:20 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /gateway/DateTime
2019-12-21 22:05:20 INFO (MainThread) [custom_components.bosch] Loading custom db file.
2019-12-21 22:05:20 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /heatingCircuits
2019-12-21 22:05:20 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /heatingCircuits/hc1
2019-12-21 22:05:20 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /heatingCircuits/hc2
2019-12-21 22:05:21 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /heatingCircuits/hc1/status
2019-12-21 22:05:21 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /heatingCircuits/hc2/status
2019-12-21 22:05:21 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /dhwCircuits
2019-12-21 22:05:21 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /dhwCircuits/dhw1
2019-12-21 22:05:21 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /dhwCircuits/dhw1/status
2019-12-21 22:05:21 INFO (MainThread) [custom_components.bosch] Bosch initialized.
2019-12-21 22:05:21 DEBUG (MainThread) [custom_components.bosch] Bosch component registered.
2019-12-21 22:06:15 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2931130608] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 19, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 215, in websocket_device_automation_list_triggers
    triggers = await _async_get_device_automations(hass, "trigger", device_id)
  File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 123, in _async_get_device_automations
    domains.add(config_entry.domain)
AttributeError: 'NoneType' object has no attribute 'domain'
2019-12-21 22:06:15 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2931130608] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 19, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 201, in websocket_device_automation_list_conditions
    conditions = await _async_get_device_automations(hass, "condition", device_id)
  File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 123, in _async_get_device_automations
    domains.add(config_entry.domain)
AttributeError: 'NoneType' object has no attribute 'domain'`

`2019-12-21 22:06:22 DEBUG (SyncWorker_5) [custom_components.bosch.climate] Update of climate hc2 component called.
2019-12-21 22:06:22 DEBUG (SyncWorker_6) [custom_components.bosch.climate] Update of climate hc1 component called.
2019-12-21 22:07:23 DEBUG (SyncWorker_18) [custom_components.bosch.climate] Update of climate hc2 component called.
2019-12-21 22:07:23 DEBUG (SyncWorker_3) [custom_components.bosch.climate] Update of climate hc1 component called.
2019-12-21 22:08:24 DEBUG (SyncWorker_6) [custom_components.bosch.climate] Update of climate hc1 component called.
2019-12-21 22:08:24 DEBUG (SyncWorker_15) [custom_components.bosch.climate] Update of climate hc2 component called.
2019-12-21 22:09:25 DEBUG (SyncWorker_5) [custom_components.bosch.climate] Update of climate hc2 component called.
2019-12-21 22:09:25 DEBUG (SyncWorker_11) [custom_components.bosch.climate] Update of climate hc1 component called.
2019-12-21 22:10:26 DEBUG (SyncWorker_9) [custom_components.bosch.climate] Update of climate hc1 component called.
2019-12-21 22:10:26 DEBUG (SyncWorker_2) [custom_components.bosch.climate] Update of climate hc2 component called.
2019-12-21 22:11:27 DEBUG (SyncWorker_4) [custom_components.bosch.climate] Update of climate hc2 component called.
2019-12-21 22:11:27 DEBUG (SyncWorker_9) [custom_components.bosch.climate] Update of climate hc1 component called.
2019-12-21 22:12:28 DEBUG (SyncWorker_10) [custom_components.bosch.climate] Update of climate hc2 component called.
2019-12-21 22:12:28 DEBUG (SyncWorker_5) [custom_components.bosch.climate] Update of climate hc1 component called.
2019-12-21 22:13:29 DEBUG (SyncWorker_12) [custom_components.bosch.climate] Update of climate hc1 component called.
2019-12-21 22:13:29 DEBUG (SyncWorker_15) [custom_components.bosch.climate] Update of climate hc2 component called.
2019-12-21 22:14:30 DEBUG (SyncWorker_19) [custom_components.bosch.climate] Update of climate hc2 component called.
2019-12-21 22:14:30 DEBUG (SyncWorker_16) [custom_components.bosch.climate] Update of climate hc1 component called.

@pszafer
Copy link
Collaborator

pszafer commented Dec 21, 2019

@probecar
Copy link
Author

probecar commented Dec 21, 2019

Logs:

2019-12-21 22:43:41 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /gateway/uuid
2019-12-21 22:43:41 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /gateway/versionFirmware
2019-12-21 22:43:41 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /system/brand
2019-12-21 22:43:42 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /system/info
2019-12-21 22:43:42 DEBUG (MainThread) [bosch_thermostat_http.gateway] Can't fetch data for update_info URI /system/info doesn not exist: 404, message='Not Found', url='http://192.168.1.32/system/info
2019-12-21 22:43:42 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /system/systemType
2019-12-21 22:43:42 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /gateway/DateTime
2019-12-21 22:43:42 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /gateway/uuid
2019-12-21 22:43:42 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /gateway/versionFirmware
2019-12-21 22:43:42 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /system/brand
2019-12-21 22:43:42 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /system/info
2019-12-21 22:43:42 DEBUG (MainThread) [bosch_thermostat_http.gateway] Can't fetch data for update_info URI /system/info doesn not exist: 404, message='Not Found', url='http://192.168.1.32/system/info
2019-12-21 22:43:42 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /system/systemType
2019-12-21 22:43:43 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /gateway/DateTime
2019-12-21 22:43:43 DEBUG (MainThread) [custom_components.bosch] Setting up Bosch component version 0.5.7.
2019-12-21 22:43:43 DEBUG (MainThread) [custom_components.bosch] Checking connection to Bosch gateway.
2019-12-21 22:43:43 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /gateway/uuid
2019-12-21 22:43:43 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /gateway/versionFirmware
2019-12-21 22:43:43 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /system/brand
2019-12-21 22:43:44 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /system/info
2019-12-21 22:43:44 DEBUG (MainThread) [bosch_thermostat_http.gateway] Can't fetch data for update_info URI /system/info doesn not exist: 404, message='Not Found', url='http://192.168.1.32/system/info
2019-12-21 22:43:44 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /system/systemType
2019-12-21 22:43:44 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /gateway/DateTime
2019-12-21 22:43:44 INFO (MainThread) [custom_components.bosch] Loading custom db file.
2019-12-21 22:43:44 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /heatingCircuits
2019-12-21 22:43:44 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /heatingCircuits/hc1
2019-12-21 22:43:44 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /heatingCircuits/hc2
2019-12-21 22:43:44 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /heatingCircuits/hc1/status
2019-12-21 22:43:44 DEBUG (MainThread) [bosch_thermostat_http.http_connector] Sending request to /heatingCircuits/hc2/status
2019-12-21 22:43:45 INFO (MainThread) [custom_components.bosch] Bosch initialized.
2019-12-21 22:43:45 DEBUG (MainThread) [custom_components.bosch] Bosch component registered.

This is strange:

2019-12-21 22:44:46 DEBUG (SyncWorker_4) [custom_components.bosch.climate] Update of climate hc1 component called.
2019-12-21 22:44:46 DEBUG (SyncWorker_18) [custom_components.bosch.climate] Update of climate hc2 component called.
2019-12-21 22:45:46 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2945411344] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 19, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 215, in websocket_device_automation_list_triggers
    triggers = await _async_get_device_automations(hass, "trigger", device_id)
  File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 123, in _async_get_device_automations
    domains.add(config_entry.domain)
AttributeError: 'NoneType' object has no attribute 'domain'
2019-12-21 22:45:46 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2945411344] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 19, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 201, in websocket_device_automation_list_conditions
    conditions = await _async_get_device_automations(hass, "condition", device_id)
  File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 123, in _async_get_device_automations
    domains.add(config_entry.domain)
AttributeError: 'NoneType' object has no attribute 'domain'
2019-12-21 22:45:46 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2945411344] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 19, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 187, in websocket_device_automation_list_actions
    actions = await _async_get_device_automations(hass, "action", device_id)
  File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 123, in _async_get_device_automations
    domains.add(config_entry.domain)
AttributeError: 'NoneType' object has no attribute 'domain'
2019-12-21 22:45:47 DEBUG (SyncWorker_14) [custom_components.bosch.climate] Update of climate hc2 component called.
2019-12-21 22:45:47 DEBUG (SyncWorker_12) [custom_components.bosch.climate] Update of climate hc1 component called.

@probecar
Copy link
Author

Untitled

Now only outdoor temp is available in the Device page and status is -1

@pszafer
Copy link
Collaborator

pszafer commented Jan 3, 2020

You can test the newest version of component.
Remove custom json before.
I'm trying to add support for CAN bus out of the box. Let me know what bugs you will have.

@probecar
Copy link
Author

probecar commented Jan 5, 2020

Sure. I will try it and let you know about results.

@probecar
Copy link
Author

probecar commented Jan 5, 2020

Sun Jan 05 2020 16:17:49 GMT+0200 (Eastern European Standard Time) Error while setting up platform bosch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/config/custom_components/bosch/sensor.py", line 49, in async_setup_entry async_add_entities(data[SOLAR]) KeyError: 'solar'

@probecar
Copy link
Author

probecar commented Jan 5, 2020

There is no data from sensors. And Climate also not working.

@probecar
Copy link
Author

probecar commented Jan 5, 2020

Sun Jan 05 2020 16:26:33 GMT+0200 (Eastern European Standard Time) Error handling message: Unknown error Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 19, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 215, in websocket_device_automation_list_triggers triggers = await _async_get_device_automations(hass, "trigger", device_id) File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 123, in _async_get_device_automations domains.add(config_entry.domain) AttributeError: 'NoneType' object has no attribute 'domain'

@pszafer
Copy link
Collaborator

pszafer commented Jan 8, 2020

Can you check new version?
Error of automations probably means that you have integration page open during Home Assistant startup. Is it true?

@probecar
Copy link
Author

probecar commented Jan 9, 2020

Yes, I will test new version today.
Reagrding integration page, may be it has. I will try to close all and reboot HA during integration process.

@probecar
Copy link
Author

probecar commented Jan 9, 2020

Climate.hc1 show 0 all the time, temperature regulation does not help after some seconds it goes to 0.
Sensors show error 404 now, it is ok. I think I know how to fix it. Can I use custom json file in this release?

@pszafer

This comment has been minimized.

@probecar

This comment has been minimized.

@probecar

This comment has been minimized.

@pszafer
Copy link
Collaborator

pszafer commented Jan 9, 2020

I will prepare dockerfile for you and you will run tests from windows. Is it okay?
I don't want to create release after release with 2 changes only.

@probecar
Copy link
Author

probecar commented Jan 9, 2020

ok, i will try.

@pszafer
Copy link
Collaborator

pszafer commented Jan 11, 2020

I pushed changes to lib, but not released them.
Could you try to follow this instructions and check if it is working: https://github.com/pszafer/home-assistant-bosch-custom-component/wiki/Dev-environment-setup

Can you tell what is not working for climate and provide logs of the error.
If I could also ask, use proper formatting, 3 ticks if you have multiline code or logs -> 3 `

@probecar
Copy link
Author

probecar commented Jan 21, 2020

Regarding your wiki. I am need first to install hass as mentioned in this link https://www.home-assistant.io/hassio/installation/#alternative-install-on-a-generic-linux-host
?

@pszafer
Copy link
Collaborator

pszafer commented Jan 21, 2020

On Wiki you have everything. Install procedure as well.

@probecar
Copy link
Author

Checked 0.6.1. HC1 and HC2 work ok, I can change target temp, but cannot change operation mode, it is Auto now. DWH1 not working at all, no information about hot water. In sensors I see only one outdoor sensor and it is work. custom json not working.

@pszafer
Copy link
Collaborator

pszafer commented Jan 27, 2020

About DHW1 - can you provide new bosch scan. It will help to find issues.

HC1/HC2 - bosch_scan might help as well.

About sensors - CAN bus has only one sensor available outside of hcX and dhwX.
I don't see anything useful outside dhwCircuits or hcCircuits.

@probecar
Copy link
Author

New scan provided:
bosch_scan.zip
Regarding sensors, now I have to implementations of buderus. One is your HC1/HC2 that work, but without operation mode, and second one is sensors that I can read (using other buderus implementation).
buderus

Better thing is to use one implementation. If you can add support of my sensors in your system it will be great. Thank you for your work anywhere. It is good job.
If will need any help from my side, just let me know.
Regards,

@pszafer
Copy link
Collaborator

pszafer commented Jan 31, 2020

You might have some garbage in entities.
Check this out: https://github.com/pszafer/home-assistant-bosch-custom-component/wiki/Dev-environment-setup

Anyway, I made comparision:

Sensor name ENTITY Component name Is in component? In current version
Outside temp SENSOR SAME YES YES
Normal temp CLIMATE Current temp YES YES
Supply set temp CLIMATE NOT EXIST NO NO
Heating mode CLIMATE Operation mode YES YES
Heating status CLIMATE bosch_state YES NO, just added
Heating program CLIMATE setpoint YES YES
Hotwater temp WATER_HEATER current temp YES YES
Hotwater set WATER_HEATER temperature YES YES
Hotwater mode WATER_HEATER operation mode YES YES
Hotwater program WATER_HEATER switchPoint YES YES

And here how your json look like when introduced to new setup:
image

I don't want to add dhw or hc attributes as sensors. You can achieve this in several ways. Lovelace card: https://github.com/custom-cards/entity-attributes-card or template sensor.

@probecar
Copy link
Author

probecar commented Feb 4, 2020

Thank you for reply. I will check it.

@probecar
Copy link
Author

probecar commented Feb 13, 2020

Checked your 0.7.1. Work ok. Now I can change heating modes. It is great feature. Thanks a lot.
But now I can not change room temp via climate control in lovelace. When I try to do that, I have error:
bosch_thermostat_http.exceptions.DeviceException: Cannot connect to host 192.168.1.32none:80 ssl:None [Name does not resolve]

@pszafer
Copy link
Collaborator

pszafer commented Feb 13, 2020

I will close this issue as it is too long. I opened new one of this error.

@pszafer pszafer closed this as completed Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants