own application use zigbee2mqtt and homeassistant : concurrent access - zigbee

I have my own application. This application use the zigbee2mqtt service running on the server.
I want to add homeassistant on the same server.
The server is a Raspberry with a zigbee USB stick connected.
However, it seems that using both in the same time doesn't work.
Either it works for my application, either it works for home assistant.
Someone has an idea how to deal with it ?
Does I need to buy an other zigbee USB stick (one for my own application, and one for Home assistant ?)
Thanks

The solution found is the following :
Use the homeassistant (supervisor) to have the feature to add the zigbee2mqtt add-on (here).
Once it's successfully configured, the zigbee2mqtt service run in home assistant.
And you can send mqtt messages to the service from homeassistant (via the existing integration). Also, you can send mqtt messages from my own application.
It works !

Related

I am using asp.net web api service in ionic. But its not getting service data in real device

I am using angular Httpclient to call asp.net web api in ionic application all working fine its getting data from service in localhost:8200 but when it comes to real device the service response with error
Problem Solved: Basically you need to change the url on your project where you do service. Change it from localhost:3000 to 10.0.2.2:3000. The 3000is the port's number, it doesn't need to be 3000. Then you open android studio, open emulator and run it. On the litle tab right next to the android device, theres 3 dots at the end. Press those, then go to settings, and change proxy to 10.0.2.2 and the port number to the one you are using, in this case is 3000. After that it will work. Sorry for late update on the problem!
For more info:
why do we use 10.0.2.2 to connect to local web server instead of using computer ip address in android client
If you are behind a proxy, download an APP called pulseSecure log in, and it should be good to go.

Connect web browser with server for communication

I am working on a project , client server based live meeting.
I connected two systems in same network. The system is sending mail to each other but cannot join in chat at same time .
I don't know exactly how to configure and connect web browser with server so that it can communicate.
What will be the problem not allowing to chat and please suggest any method to overcome this fault.
In desperate need of help..
Database is connected
You could use SignalR as a possible solution. It allows real-time functionality on your web site.
Take a look here: IM using SignalR

Connect to Local Webservice from Mobile app

I need to make an application where a mobile web app can connect to a local web service in a LAN. For example, several locations are running this web service on their own local server. When someone with the mobile app comes into the location they can open it up and it will somehow be able to connect to that local webservice through WiFi. The mobile app won't know the IP of that webservice ahead of time. Any thought on how to go about this? This will be a .NET webservice and HTML5 app but I don't think that matters.
As mentioned in the comments you will probably have to make it configurable by the user as the will ultimately need the address of the server.
There is however another approach that you can take. Develop a small multicast/udp service that broadcasts the web service address every 10-30 seconds. In your android application register a broadcast receiver that responds to the network connectivity status and runs in the background.
This service on the Android service will pick up the address from the UDP broadcasts and then configure the application.

Error in communicating LabView Client VI with WinCC OPC Server over the network (LAN)

I'm trying to automate some system using Siemens PLC; for that we have developed a WinCC Flexible RT application for control and monitoring, and have also declared the PC based HMI panel as the OPC server. Which is working fine.
Now, when i try to create a OPC Client application either in WinCC or Labview, on the same PC, am able to access all the tags of the server on the client, am able to do so.
When i try to create the client application on some other computer connected over the local area network [perfectly fine and well configured network working], am unable to access the OPC server/tags in that case.
What can be done in this case.?
The easiest way to establish connection between OPC client and server applications is to perform the following:
turn off the firewalls on both machines
create the same windows account on both machines using the same login name and password
for windows account (pointed out in 2) allow all "access permissions" and "Launch and Activation Permissions" by running "dcomcnfg" command and navigating to "console root->component services->computers->my computer->com security"
The more detailed example of how to do steps described above is given in this article http://opc-da.com/Winsetup.html
Also, there is a powerful OPC client API implemented on LabVIEW using OPC .NET API with detailed documentation on how to use: http://opc-da.com
It would be helpful if you mentioned the OS on the server and the client computers. Anyway, I'm guessing that this is a DCOM issue, as #Ken mentioned.
It's been a while since I worked with this sort of thing, but you can try this article: http://www.opcactivex.com/Support/Tutorials/DCOM_Tutorial_-_Configuring_th/DCOM_XP/dcom_xp.html and see if it helps.
Make sure the firewall isn't blocking the connection. Disable it on both sides.
Take a look at this NI article: http://zone.ni.com/reference/en-XX/help/371361G-01/lvhowto/psp_firewall/
keep in mind, the tcp ports used by OPC/shared variables changed somewhere between LV2009 and LV2011, so depending on what version you have, the ports may be different.
In addition to the ports and the firewall...
Make sure that the account in which the the OPC client is running has access to the OPC server, either through the DCOM default settings or the OPC Server-specific settings (also part of DCOM configuration) on the server machine.

How do i build service send/receive sms by asp.net

I need to build service send/receive sms by asp.net. I find out some website or company provider that service. But it's not properly for my job. My problems are: how do i build my own service to do that? what i need to do? SMS gateway is a solution?
You may need the following.
Web service to allow other application to send their messages along
with the destination number. Which would put the message in database.
Windows application could be a windows service to get the messages
from database and send them using attached gsm modem. This
codeproject article gives you idea to start communication
with gsm modems using serial port.

Resources