roleoroleo / sonoff-hack

Custom firmware for Sonoff GK-200MP2B camera
GNU General Public License v3.0
200 stars 45 forks source link

Wiki update for 0.1.4 #120

Closed darkxst closed 1 year ago

darkxst commented 1 year ago

Hey Roleo, Can you update the wiki for the new release. I left in the manual config snippets mainly for reference in case people still want to setup manual sensors with different settings (probably only needed if they disable discovery!).


Event detection The only feature not present in ONVIF is the event detection. You can use the MQTT sensors for this purpose.

Release 0.1.4 introduced MQTT auto-discovery for Home Assistant, so the MQTT sensors will be available without any configuration of yaml files. You just need to enable mqtt on the camera. If the sensors don't appear on your dashboard you can find the camera under Settings -> devices and add them from there.

Access to the web interface Go to MQTT section Enable mqtt and set the server parameters (ip, port, authentication, etc...) Optionally set a name for the device under Home Assistant Discovery -> Name For motion events to work on GK-200MP2-B and S-CAM cameras set Motion event location = 0 All other settings are optional Save configuration and reboot

You can also manually configure sensors with the following yaml code. You probably want to configure a custom Topic prefix in the web interface if using these.

Motion Sensor:

mqtt: binary_sensor:

Camera that displays screenshots during a motion detection event:

mqtt: camera:

darkxst commented 1 year ago

Screenshot of mqtt discovered device in HA if you want to include that. mqttha

roleoroleo commented 1 year ago

Wiki updated. Thank you.

darkxst commented 1 year ago

Slightly tweaked this sentence now its not a list!


Access the web interface an go to the MQTT section, enable mqtt and set the server parameters (ip, port, authentication, etc...). Optionally set a name for the device under Home Assistant Discovery -> Name. For motion events to work on GK-200MP2-B and S-CAM cameras set Motion event location = 0. All other settings are optional, save configuration and reboot camera.