Jump to content
  • 1

"sendPhotoToUser" command not working anymore


Question

Hi

I recently figured out that my scenes with sending picture to e-mail from a ip camera not working anymore. It stops working around November 2017, I think after update to 4.150 or 4.140.

Now running 4.170 on HC2 and command "sendPhotoToUser" not working.  Button with camera logo on the device which used to send a snapshot to mail, also doesn't work.

 

Has anyone else same issue?

 

Code which should send a picture looks like this:

Exactly the same code coming from  block scene, when I making new scene now and converting to lua.

 

--[[
%% properties
874 value
%% weather
%% events
%% globals
--]]

local startSource = fibaro:getSourceTrigger();
if (
 ( tonumber(fibaro:getValue(874, "value")) > 0 ) -- id 874 is triggering device
or
startSource["type"] == "other"
)
then
	fibaro:call(648, "sendPhotoToUser", "2"); -- 648 is a camera id, 2 is a user id
end

Camera's settings and plugins/for cameras wasn't changed since this worked.

 

Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0
Guest dobsovicj

There is a problem with notifications generally now...

Please wait with testing when FIBARO solve the issue with notifications.

BTW, I´m using sendPhoto and it is working for me (of course, not now :-)  due to the generally issue)
 

Link to post
Share on other sites
  • 0

Is still not working. What interesting thing is that I have doorbird intercom connected also to HC2 via Onvif protocol and is working fine. Only Hikvision cameras has a problem..

Link to post
Share on other sites
  • 0
On 5/28/2019 at 9:16 AM, jires said:

Is still not working. What interesting thing is that I have doorbird intercom connected also to HC2 via Onvif protocol and is working fine. Only Hikvision cameras has a problem..

How did you connect Camera/Intercome via Onvif??

Link to post
Share on other sites
  • 0

 

My script sends two photos from different cameras by pressing the bell (UBS). Unfortunately, he sends two separate messages

Cytat

--[[
%% properties
264 value
%% events
%% globals
--]]

local startSource = fibaro:getSourceTrigger();
if (
 ( tonumber(fibaro:getValue(264, "value")) > 0 )
or
startSource["type"] == "other"
)
then
    fibaro:call(262, "sendPhotoToUser", "2");
    fibaro:call(257, "sendPhotoToUser", "2");
end

 

 

Link to post
Share on other sites
  • 0
On 6/5/2019 at 3:02 PM, Vt2 said:

How did you connect Camera/Intercome via Onvif??

In the simplest way :) 

Add device -> ad camera-> choose camera model "other model"

Fill up IP address, and user/password and jpeg path (for doorbird is: /bha-api/image.cgi )

 

When Onvif capabilities on intercom are disabled, it will denied access for HC2.

 

My Hikvision cameras are added in the same way, which obviously will not work with "sendPhotoToUser" command 

Link to post
Share on other sites
  • 0
22 hours ago, raffsa said:

 

My script sends two photos from different cameras by pressing the bell (UBS). Unfortunately, he sends two separate messages

 

 

Which camera model/manufacturer do you have?

Link to post
Share on other sites
  • 0

 

I have different cameras - noname. My DVR supports jpg and jpg and he gives me a picture for fibaro.

 

kam.jpg.ea9f68f0971a9fb92785a152e9f0ddf4.jpg

Link to post
Share on other sites
  • 0

Witam chciałem przenieść scenę na HC3 i brak opcji sendPhotoToUser a i na samym początku wywala błąd

 

"local startSource = fibaro:getSourceTrigger();"

 

[SCENE52]: (load):1: attempt to call a nil value (method 'getSourceTrigger')

 

Ma ktoś to poprawione ??

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...