Do you mean ping the IP of the pc the vm is running on?
I mean on the PC the VM is running on, run
ipconfig
ping 192.168.1.212
I wonder if the VM ip address is different than what you think it is. What OS is running on the VM?
I get
What OS on the VM? If a Linux based OS what is the result of running, on the VM,
ipconfig -a
Some success. After thinking about your last comment I looked and had create the virtual machine in windows 7 for some reason.
I have started again this time using linux. Now I can access HA from the IP address and from other devices on the network but I still canāt get my mqtt devices to connect
Is your MQTT Broker on the same VM?
Yes its Mosquitto running in HA on the virtual machine
Do the mosquitto logs provide any clue? I have only used MQTT briefly for testing.
Are you using the addon from the supervisor for the boker? I may be able to text since I am using zwavejs2mqtt
for my Z-Wave nut anm currently using websockets instead of MQTT.
Ok oddly the 2 tasmota devices the I have changed the mqtt config on are now connected. This is confirmed in the tasmota console and Mosquito logs but still donāt work and show as unavailable in lovelace
Do the mosquitto logs show HA connecting?
So the devices are all ātalkingā to the broker. I believe HA needs to :subscribe: to the feeds from the devices.
Under Configuration ā Integrations you should have installed MQTT.
yes it was added through the ADD on store
Here is something odd. One of the devices is my RF bridge which monitors my rf sensors. One of these is a motion sensor which when the state changes to on (motion detected) triggers an automation. Now this automation is running when motion is detected which means HA must be seeing the sensors but they show as unavailable in lovelace.
What you show here is the IP address of the virtual network card on the hostā¦
and that is NOT the Ip adres of the network card on the virtual machineā¦
Actually you cannot find the IP-address of the virtual machine using the hostā¦it must be done on the virtual machineā¦
you can check the ip address by:
- find MAC address of the virtual machine network card ( it is somewhere in virtual box, config of virtual machine network card)
- check dhcp lease table in router and find the ip address belonging to the mac (assuming it did get an ip from router)
Or
- open command prompt and type
arp -a
, it will show all known mac addresses on your network
You should really read this thread thoroughly
and probably youāll figure it out
virtualbox brings up a console. Log into it and type
ip addr|grep 192
This assumes you have a 192.168.x.x private address space. Of not search (grep) for your address space.
Thanks for the suggestions. I am currently away from home but will be back at it at the weekend