Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

MsgHub error >> API: Not found


Question

Posted

Hi @AutoFrank

 

I installed the message hub V1.2 and  LAN Monitor VD 2.6. (All reported online).

Note that I removed Sonos internet check as unfortunately I do not own a Sonos system ;-(.

 

In messagehub I set my users/email id's, my JSON table, my API for PushOver.

See below dump of the user setting section of the scene. 
Note that I replaced my API by "X"and "Y" for public sharing.

BTW I did not load the demo VD.

 

When I run the message Hub I get a error;

[DEBUG] 17:08:08: [1;31m2018-11-20 17:08:08.834065 [ error] API: Not found
[DEBUG] 17:08:08: main function triggered

 

Any Idea why I get this error?

 

Regards

Jules

 

 

DUMP

-- ** USER CONFIGURATIONS & SETTINGS ** --

-- * OPTIONS FOR SMART RE-ROUTING OF MESSAGES * --
-- Set to true to enables re-routing of sonos TTS messages to HC2Popup 
-- notifications if the sonos-http-api or Internet is unavailable/offline
-- to your local LAN  
local tts2popup      = "false" 

-- Set to true to enable Sonos TTS messages to queue when 
-- presentState = 'Away' When presentState is set to Home it triggers
-- the scene automatically and unloads the message in the TTS queue 
-- to the default player that is configured
-- below
local tts2queue      = "false"  

-- Enable for NO TTS announcement in sleepState, TTS announcements are 
-- NOT queued
local tts2sleep      = "false"                                                           

-- Enable a Delay before TTS announcements are unloaded (seconds). 
-- Leave as "" for no delay
local ttsUnloadDelay = "30" -- seconds                                                    


-- Set to true to enable all notifications to re-route to HC2Popup 
-- notifications if the internet is unavailable/offline to your local LAN    
local notify2popup   = "true"   

-- Set to true to enable all notifications to queue when presentState= 'Away'
-- When presentState is set to Home it triggers the scene automatically and 
-- unloads the message in the notifications queue to the default notification 
-- service that has been configured below
local notify2queue   = "true" 
  
-- * OPTIONS TO MONITOR THE INTERNET STATUS * --
-- This provides 3 options to monitor the availability of the internet and
-- sonos-http-api and anables the notifications to Queue function to operate
local ipMonitor      = "networkTable"

-- Select 'manual' if you wish them to be permanently set to online. Please 
-- note that this option does NOT enable queuing of notification messages.
-- Select 'networkTable' to leverage the LAN Monitor VD v2.5 or VD v2.6, 
-- Select 'wwwapiTable' to leverage the new simplified WWWAPI Monitor 1.0
                               
-- * HC2 EMAIL CONFIGURATION * --
-- List all users that you want to be able send messages to. The user id's 
-- are located in the HC2. Select Configuration, then Access Control to 
-- see the current users.
hc2emailUsers = {["jules"]="71", ["vannessa"]="164"}

-- * HC2 PUSH CONFIGURATION * --
-- List all users that you want to be able send push messages to. The mobile
-- devices ID can be found by going to http://<HC_IP>/docs/ under iosDevices 
-- section. 
hc2pushUsers = {["iPadvanJJD"]="336", ["OnePlusONEPLUSA501"]="286", ["IPAD128gb"]="218", ["iPodVannessa"]="219", ["iPhonevanVannessa"]="216"}

-- Select a default user from this list and this is used if there is 
-- no user specified as part of the message invocation
local defhc2pushUser = "71"  -- identify default hc2push user                                        

-- * TTS PREFERENCES * --
-- Select your TTS preference. If you use the sonos-http-api solution please
-- enter API. If you use the Sonos VD Remote solution please enter REM. 
local ttsMethod      = "REM"
-- Ths allows you to select a default volume. This volume can be changed by 
-- including a different volume in the message invocation
local defTTSvolume   = "40"

-- * SONOS-API PREFERENCES * --
-- List all the sonos players you want to send TTS messages to. The names 
-- must match exactly what is on your sonos native app. The default 
-- player is uder to unload the TTS message when presentState is set to Home.
-- The ip address and port are of the device that is hosting the sonos-api
-- the last item is the language or voice code for the respective TTS service
APIplayers = {"hallway","kitchen","livingroom","diningroom", "playroom","garage","bed5_office","bed_le","bed_frank","bed_masterl","bed_guests","landing", "pizzabbq_area"}   
local APIipaddress   = "192.168.1.89"                       
local APIport        = "5005"                               
local defAPIzone     = "kitchen"                        
local defAPIlanguage = "Amy"                                


-- * SONOS REMOTE VD PREFERENCES * --
-- List all the sonos player virtual devices you want to send TTS messages
-- to. The vd id's match exactly what is on your HC2. The default 
-- player is uder to unload the TTS message when presentState is set to Home.
-- The last item is the language or voice code for the respective TTS service--
-- The format is as follows

REMplayers = { 
  ["dnevni"] = {vd="334", btn="28"}, 
  ["soba"]   = {vd="335", btn="28"}, 
}      

local defREMvd       = "hall"             
local defREMlanguage = "en-gb" 

-- * DEFAULT TITLES AND SUBTITLES * --
-- Adjust the default titles and subtitles. If no title or subtitle is included 
-- in the message invocation then the default values entered here will be used
local defTitle      = "Alert Title"    -- Default title for notifications                      
local defSubtitle   = "Alert Subtitle" -- Default subtitle for Popup Service 

-- Default popup message type, possible values: Success, Info, Warning,
-- Critical
local defPopType   = "Info"                                                           
-- please define popup message default button caption
local defPopCaption = "OK"
local defPopButton = { { caption = defPopCaption, sceneId = 0 }}

-- Refer to Sankotronic Tutorial "Popup Notifications and Custom Images"
-- for format and examples


-- * NOTIFICATION SERVICES * --
-- Select the default notification service that you wish to use. This default 
-- service will be used if no service is invoked in the message and is also 
-- used as the service to unload the queued messages when presentState is 
-- set to Home
local defmessageSvc = "pushover" 

-- * PUSHOVER CONFIGURATION * -- 
-- Enter the respective pushover notification details below if you wish to
-- use this as a message service. You will need to regfister at pushover.org
-- and follow the instructions. All 4 pieces of inforamtion is required
local POtkn         = "X"                
local POusr         = "Y"                
local POdevice      = "ipad, Iphone-vannessa, Ipod,    OnePlus5t"         
local POpriority    = "0"       

-- * TELEGRAM CONFIGURATION * -- (see telegram.org)
-- Enter the respective telegram notification details below if you wish to
-- use this as a message service. You will need to regfister at telegram.org
-- and follow the instructions. Both pieces of inforamtion is required
local TGtoken       = ""
local TGchatID      = ""

-- * DEBUG VERBOSITY OPTIONS * --
-- This allows you to observse extra information in the debug window when
-- the scene is running. 
-- deBugVar will display the scene variables
-- deBugCfg will display the scene configaution that you have set
local deBugVar      = true
local deBugCfg      = false

-- "PresentState" is predefined global value that determines if you are at home
-- or away. This variable value is set by other scene or VD. Enter name of your
-- global variable between "" if called different or leave as it is
local presentState        = "PresentState";
-- Enter corresponding values that you use for presence in your language. Change
-- the one in quotes or leave as it is
local presentStateMapping = {Home="Home", Away="Away", Holiday="Holiday"};

-- "SleepState" is predefined global variable with possible values:
-- "Sleep", "Awake".
local sleepState          = "SleepState";                                                    
local sleepStateMapping   = {Sleep="Sleep", Awake="Awake"};


-- Please amend the text sent to PopUp Notification when Internet or TTS is 
-- offline to your own language if you wish
-- Title and subtitle can be modified
local TTSofflineTitle     = "Announcement"
local TTSofflineSubtitle  = "TTS is offline, TTS announcement sent as popup notification"
local WWWofflineSubtitle  = "Internet is offline, TTS announcement sent as popup notification"


-- ** HOMETABLE ** is a global variable used to store HC2 device and scene id's
-- Uncomment next line if you wish to use Hometable data in scene
local jT = json.decode(fibaro:getGlobalValue("HomeTable"));
 

 

 

 

 

 

 

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...