Hello, so I have the camera setup (Thank you!) However I appear to be struggling with the home assistant controls.
The image is working however the motor and lights are not.
When watching my MQTT monitor, I can see the camera posting to the server, and if I use the home assistant tool I can post to the server and also see it, however my switches do not work.
Here are my switches:
- platform: mqtt
name: "DaFang Living Room RTSP"
state_topic: "Downstairs/HomeCamera1/status"
value_template: "{% if value_json[\"RTSP-Server\"] == 'running' %}h264_noseg_start{% else %}rtsp_stop{% endif %}"
command_topic: "Downstairs/HomeCamera1/set"
payload_on: "h264_noseg_start"
payload_off: "rtsp_stop"
optimistic: false
- platform: mqtt
name: "Dafang Living Room Up Down"
command_topic: "Downstairs/HomeCamera1/set"
payload_off: "motor_up"
payload_on: "motor_down"
optimistic: false
- platform: mqtt
name: "Dafang Living Room Left Right"
command_topic: "Downstairs/HomeCamera1/set"
payload_off: "motor_left"
payload_on: "motor_right"
optimistic: false
light:
- platform: mqtt
name: "Dafang Living Room Blue LED"
state_topic: "Downstairs/HomeCamera1/status"
value_template: "{% if value_json.LEDs.Blue == 'on' %}blue_led_on{% else %}blue_led_off{% endif %}"
command_topic: "Downstairs/HomeCamera1/set"
payload_on: "blue_led_on"
payload_off: "blue_led_off"
optimistic: false
- platform: mqtt
name: "Dafang Living Room Yellow LED"
state_topic: "Downstairs/HomeCamera1/status"
value_template: "{% if value_json.LEDs.Yellow == 'on' %}yellow_led_on{% else %}yellow_led_off{% endif %}"
command_topic: "Downstairs/HomeCamera1/set"
payload_on: "yellow_led_on"
payload_off: "yellow_led_off"
optimistic: false
Does anyone have any idea why the buttons don’t appear to move the camera?