Problems with Pushover suddenly
Posted: Saturday 11 January 2020 23:30
Hi,
My notifications scripts have been working fine until latest update (so I believe) to version 4.10717 (May 9th 2019). Testing pushover via settings gui works fine.
The following scripts failes with log entries
Script triggered by dummy switch:
However, if I remove the if clause, it works...
and I recieve the push notification. Note that the scripts above is only an error tracking effort. I have several scripts that uses the 'SendNotification' in a similar way and they fail. Usually in a if statement I set notifications like
and it fails now. Any ideas why and how to solve?
My notifications scripts have been working fine until latest update (so I believe) to version 4.10717 (May 9th 2019). Testing pushover via settings gui works fine.
The following scripts failes with log entries
Code: Select all
2020-01-11 23:17:39.283 Status: LUA: ~~~~~~ (script_device_trigger) -- EventUpdated by TEST_BUTTON state:On idx:166 at 23.17.39
2020-01-11 23:17:45.048 Notification sent (pushover) => Failed
2020-01-11 23:17:45.048 Error: Pushover:
2020-01-11 23:17:46.087 Notification sent (email) => Success
Code: Select all
commandArray = {}
if(devicechanged['TEST_BUTTON'])then
commandArray[#commandArray + 1] = { SendNotification = 'subject#body#0###'}
end
return commandArray
Code: Select all
commandArray = {}
commandArray[#commandArray + 1] = { SendNotification = 'subject#body#0###'}
return commandArray
Code: Select all
...
if(globalvariables['Security']=='Armed Away')then
commandArray['SendNotification']=Alarm ON' .. '#' .. 'Entire house#0'
print('** alarm script: *Armed Away* -> ligth off')
end
...