-
Notifications
You must be signed in to change notification settings - Fork 16
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
mqtt configuration for homeassistant in docker #7
Comments
i think I am slowly getting it but not quite. Since the platform is 'tasmota' for sensors in configuration.yaml, no need for mqtt configuration for each sensor, right? |
It is a good idea to have one docker for all the services. |
thanks for your advice |
ha logs: 2019-07-25 23:54:33 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for tasmota which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant., |
You need to configure hass Mqtt see here: Line 31 in dee4749
|
thank you mqtt: my homeassistant in docker (ha) and all the other mqtt clients successfully connected to mosquitto |
Looks ok. You don’t need to do anything else. Verify that it is connected to the broker. |
I think so, too 172.18.0.1 is homeassistant docker network address i can access the wemo in browser at http://192.168.2.154/ the meter is not connected to the water line, but the wemo takes readings from it if I just blow some air through:
yet, the sensors show up in GUI as 'unavailable' |
I would log into hass docker and run To verify that topic are redirect. I don’t think you have a component issue. |
pi@bereskapi-ha:~ $ mosquitto_sub -v -t homeassistant/status -u ha -P ######## |
also I could not find where I need to put these values: |
I figured I need to run the above commands in Console, but I can't pair your custom component with homeassistant, the sensors are still show up as 'unavailable' |
ant these warnings are ha logs: 2019-07-25 23:54:33 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for tasmota which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant., |
Hi, I suggest to do this to verify were it:
In the GUI in the water sensor Console you will see something like this:
Now login into the hass docker and run this and wait 60 sec
Replace user/password with the right values. You should see the same like in the Console
If you don't see it, try the same from the broker docker If you don't see the messages you will need to debug docker configuration. In my case hass and broker and iot are on the same network in case of mqtt with docker there is a NAT involved so you need to know what you are doing |
Can we close this? |
hi @hhaim, not quite. I have tried your solution, it didn't work for me, sensors still 'unavailable' in GUI. Then I just configured Wemos for mqtt. I showed up in GUI. It works great except for the known problem of resetting counter after power loss/reboot. I know your library deals with it somehow. Is there there a way to implement your solution just for this one water meter pulse sensor? Maybe like running Rules in console? Thank you |
or python script maybe? |
Let me see if I understand, |
yes, correct. And like you said, it's probably because of my docker network setup which I don't want to change since I have 9 docker containers and 30+ sensors running just fine. It is just this bloody water meter pulse sensor that I'm struggling with) |
00:00:00 CFG: Loaded from flash at F6, Count 182 |
@bereska I've just tested it with latest hass and this
and it works fine so it is something else please send
|
I just tried one more time from scratch per your guide 00:00:00 CFG: Loaded from flash at F9, Count 11 |
even if I change topic to water_out in mqtt config of the sensor, it is still 'unavailable' in GUI 2:35:59 RSL: tele/water_out/STATE = {"Time":"2019-07-31T22:35:59","Uptime":"0T00:11:59","Heap":13,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":1,"SSId":"bereska24","BSSId":"2C:FD:A1:3E:16:50","Channel":4,"RSSI":26,"LinkCount":1,"Downtime":"0T00:00:04"}} |
You are sending the web console output. This does not prove the Mqtt is working. You are sending irrelevant information and not answering the questions. |
Tasmota User/password for the Mqtt does not seem right! |
this sensor works:
|
"Tasmota User/password for the Mqtt does not seem right!" - I don't get it. Do i need to create an mqtt user/password for tasmota? |
all my sensors are inside ha configuration.yaml, not a separate sensors.yaml. Does it matter for your custom_component? |
"
|
sorry, I don't get it, I already sent it ti you before, here it is again: mqtt: |
This is the mqtt client configuration, I need to see the sensor that is unavailable (uses the custom component) It should be something like this:
|
that is exactly it! I followed your guide!
|
@bereska very hard to get a clear answer to a very simple question. I assume your answer is this:
Am I correct? |
yes |
How could it work?
|
thank you, let me correct this and report back |
ok, the sensor finally shows up in GUI but it does not get updated even thought the sensor keeps on sending new values as the water flows(
thanks for your patience |
Have a look here: |
I tried the following but it gives me an error
|
sorry, this is full
|
this same very 'value_template: "{{ value_json['COUNTER'].C1 | int *5 }}"' works just fine with an mqtt sensor |
I don't think the template is wrong, the sensor just fails to get the values to homeassistant 2019-08-02 00:54:56 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to tele/esp8266_water/LWT, pi@bereskapi-ha:~ $ mosquitto_sub -v -t +/esp8266_water/# -u ha -P password |
@bereska better to close this and move the thread to hass forum. |
How come 'not related'? I have two identical pulse sensors: one configured with mqtt, the other with your component. The first one works (except for power/reboot issue), the second doesn't |
There are 27 messages in this thread and still there is no Mqtt information, no definition of “does not work”. The only issue I saw relates to not reading the instructions and the other relates to templates that is general engine that you can google /ask in other places. If you have specific component question please provide the full information in one message. |
Too old |
@hhaim @theunreal hi guys, thanks for the great project. I am new to homeassistant. Trying to follow your guide and set up a pulse sensor water meter. I have flashed a wemo D1 mini with Tasmota. Now I need to integrate it into my homeassistant 0.95.4. I have homeassistant, mosquitto, grafana, influxdb, etc. all running in docker containers under docker-compose. Mosquitto is accessed with login/password for each client. How do i configure the wemo and your custom-components/ to work with my setup? Thank you
The text was updated successfully, but these errors were encountered: