Steve
Senior Member
I guess that would make sense with me changing the names for testing but I wouldn't think it should be an issue for the original name that was there since installation. In any case, I have it all back as original and I added your code and it still does not work.Make sure you have asked the controller to refresh the zones and get the names first. Do this:
Code:function onRefreshConfig(forced) { controller.refreshZones(); }
Otherwise HaikuHelper doesn't know the name of the zone, hence its unable to match and return it.
Here is the definition of the zone:
Here is the code in Haiku that does not work:
Code:
function onRefreshConfig(forced) {
controller.refreshZones();
}
function onZoneNotReady(zone) {
if(zone.name() == 'Office Motion') {
controller.unitWithName('Office').setOnForMinutes(1);
helper.sendNotification(controller, zone.bestDescription() + ' not ready!');
}
}
Here is code that DOES work:
Code:
function onRefreshConfig(forced) {
controller.refreshZones();
}
function onZoneNotReady(zone) {
if(zone.number() == 10 ) {
controller.unitWithName('Office').setOnForMinutes(1);
helper.sendNotification(controller, zone.bestDescription() + ' not ready!');
}
}
So the only difference is the by name does not work and nothing I do helps.
Did you try to set the PTZ mode to Panasonic for the camera? Haiku does support it.
Yes, I have the url, user and password entered and PTZ is set to Panasonic. When I view the camera it does say PTZ Panasonic in the list and it shows 8 presets at the bottom but neither the presets nor swiping on the image do anything. I triple checked that the user and password are correct (admin).