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
help with mqtt configuration #10
Comments
ExamplesCamera: camera:
- platform: ffmpeg
name: mjsxj02hl
input: -i rtsp://192.168.1.10:554/primary Humanoid sensor: binary_sensor:
- platform: mqtt
name: humanoid
device_class: motion
state_topic: "mjsxj02hl/alarm"
value_template: "{{ value_json.humanoid }}"
payload_on: true
payload_off: false |
Logger: homeassistant.helpers.template Error parsing value: 'value_json' is undefined (value: , template: {{ value_json.humanoid }}) |
Try it: value_template: "{{ value_json['humanoid'] }}" and show the contents of the topic mjsxj02hl/alarm |
I had configured correctly my sensors as in first comment from @kasitoru: they used to work in version 1.2.4, after upgrading to 1.2.6 they no longer work. I'll try downgrading ASAP to test more. |
use MQTT Explorer and show your current sensor configuration |
There was no topic created for me in version 1.2.6: simply going back to version 1.2.4 solved the issue, with no change in configuration |
@attilioscot show your configuration for version 1.2.6 and full log |
I have to correct myself: the topic is created and messages go trough, but very often updates fail, apparently because of disconnections as in this piece of log. Follows also my configuration, tell me how I can send a full log if needed.
configuration: [audio] [general] [osd] [speaker] [video] [logger] [night] [rtsp] [mqtt] |
The problem is most likely not in the camera. Perhaps a weak Wi-Fi signal or a problem with the MQTT server. Communication breaks due to external factors. |
Hi avdeevsv91, 1635977478: New client connected from 192.168.178.117 as MJSXJ02HL (p2, c1, k60, u'User'). Even from mqtt explorer I don't see any alarm messages. I tried to restart the device but nothing has changed.
Any idea on how to fix it? |
@TheBisk, show the camera log |
Set filepath |
mqtt][mqtt_send]: Topic: mjsxj02hl/alarm |
Need a full log. Use pastebin |
Here is my log, debbuging errors: I see errors for night mode and alarm, no problem for the video stream, |
Set logger level to "debug" and try again |
Here you are --> https://pastebin.com/DuyN3RKF I cannot understand why my binary_sensors humanoid and motion are not working anymore. Thanks. |
@TheBisk There are no errors in the log when sending MQTT messages. Use MQTT Explorer, subscribe to |
@kasitoru Can you please show a script for getting a screenshot by the cam? |
@TheBisk I don't use it, but you can get pictures just by downloading an image at this address |
hi,
cant add to Mosquitto broker on home assistant,how can i do manualy?
thanks
The text was updated successfully, but these errors were encountered: