roleoroleo / sonoff-hack

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

PTZ via onvif? #34

Closed illivanillie closed 3 years ago

illivanillie commented 3 years ago

Hi, great stuff here! Love it! Is there a way to integrate the PTZ commands or presets via onfiv (into home assistant). I can't seem to find a was to control the cam. Only via the webpage. Or is it just me? Maybe you could help me :)

Thank you for your work! Greetings from Germany

roleoroleo commented 3 years ago

Ptz should work with onvif. Try it with odm.

illivanillie commented 3 years ago

Well i was trying to get it to work, was playing with the configuration etc., but I'm not able to. I don't know what you mean by odm. In case you are familiar with home assistant: there are only two entities shown, the two streams. I will try it with blue iris when i get my hands on a windows machine.

greetings!

roleoroleo commented 3 years ago

I didn't try with ha, but i tried it with onvif device manager and it works.

urbatecte commented 3 years ago

Hi, In HA it does not appear as an entity, but through servic onvif.ptz. You need to give the entty n the servce data:

      service: onvif.ptz
      service_data:
        entity_id: camera.sonoff_camera_ch1
        movement: down
illivanillie commented 3 years ago

@urbatecte I just found out, before you commented. Thank you! @roleoroleo love your stuff! Works great, truly amazing for a cheap cam.

Greetings!