there were entries which hide all ha addons & components.
Now I see all containers running and could shell into the homeassistant container and succesfully install opcua with pip install opcua.
thanks !
Now i can try the opcua addons furtherā¦
I havenāt actually tried the OP code for mapping. I got tied into this looking for a way to create opcua based sensors and write data back as needed. so I wont be much help.
But if you would like to try out an my custom component feel free to check out my repository at: opcua custom component
Itās my first post within home assistant community.
Im very interesting opc ua connection with home assistant. Im trying to connect codesys with home assistant with opc ua. Anybody can help me?
monty_burns_007, how did you configure larsACs addon? minix1234, i tried to install your custom component, but im beginner in home assistant, Can you show me about it?
2021-03-03 14:00:26 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2021-03-03 14:00:34 CRITICAL (Thread-3) [opcua.client.ua_client.Socket] Received an error: MessageAbort(error:StatusCode(BadSecurityPolicyRejected), reason:None)
2021-03-03 14:00:34 ERROR (Thread-3) [opcua.client.ua_client.Socket] Protocol Error
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/opcua/client/ua_client.py", line 101, in _run
self._receive()
File "/usr/local/lib/python3.8/site-packages/opcua/client/ua_client.py", line 121, in _receive
self._call_callback(0, ua.UaStatusCodeError(msg.Error.value))
File "/usr/local/lib/python3.8/site-packages/opcua/client/ua_client.py", line 129, in _call_callback
raise ua.UaError(
opcua.ua.uaerrors._base.UaError: No future object found for request: 0, callbacks in list are dict_keys([2])
I use UaExpert client to test the communication with a Wago PFC100 and all is good.
On this WAGO, I need to configure the OPC UA Endpoint with Security Policy - None, and unlimited anonymous acccess. And now I havenāt HA crash.
I will increase security little by littleā¦
By the way, what is the syntax to define login/password in configuration.yaml file ?
I havenāt implement any automatic client certificate generation. So that will be step one.
each certificate has a specific Uri, so both need to be listed in the yaml.
below is an example of mine connecting to a freeopcua server I have running in docker. I borrowed the client certificate from the freeopcua GitHub examples found on GitHub. I then copied those files into my ssl directory and listed them as per below.
Iām not familiar with Wago, or what youāll need to do to get that opc ua server to trust your clients certificate. hopefully they have good documentation.
is your Wago also using user rights access as well? you can add the following to your yaml
username: ####
password: ####
refresh is fixed at the moment. but can be something we look at making variable. I believe it is 30 seconds default. what kind of rates are you looking for?
Also out of curiosity, what are you looking to achieve with the opcua add-on?
that is a slick piece of industrial automation, I see it supports modbus TCP, which is baked into home assistant by default and may be more stable. though less secure.
refresh is fixed at the moment. but can be something we look at making variable. I believe it is 30 seconds default. what kind of rates are you looking for?
A variable would be a good thing. From 1second to 1 hour.