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
Search the Community
Showing results for tags 'location'.
-
Version 2.1
385 downloads
Contributions & credits @jgab - fibaroapiHC3.lua (SDK for remote and offline HC3 development) @10der - Visual Studio LUA environment. AOR can control any Fibaro system HC3, HC2, HCL, HC3L, Yubii from your PC using ZeroBrane or Visual Studio Code editors. You can use full LUA 5.3 libraries, read/write files, run programs on your PC, to integrate other systems using your own LUA functions. HCL users finally can use LUA to control their system without block scenes and limited Virtual devices. No need to migrate devices or to use master/slave configuration. Download AOR_ZB.txt (zip) file for ZeroBrane Download AOR_VS.txt (zip) file for Microsoft Visual studio After download, change the file extension to .zip and extract the file. By default AOR supports Text-To-Speech on your PC speakers, use it to be alerted on any event you would like to monitor and to be aware about. The AOR designated to control and monitor devices across your Fibaro controllers. AOR automatically identifies the type of elements in the systems. (Z-wave device, Nice, QA device, scene, automatic scene (Block and Lua), global variables. Any valid Z-wave,Nice and QA devices property and their values could be monitored, controlled and execute commands accordingly AOR supports custom events, active profile setup and controls alarm zones while every breached zone or sensor in the zone could be identified and execute actions accordingly. All above executed with no extra load on controllers CPU or RAM... just keep your PC out of sleep mode... As an example: The first time you use All-in-One, jM {} hash table must be defined. Each line in the table has two mandatory and two optional fields. jM={ { 15, "137|630", {timeSlot={“12:00~18:00”},state="value=true", trueAct={“|230|”, “turnOn”,””}}} } Time span IDs list Criteria & Rules Action tables Time span a period of time (in minutes) within which some activity must be performed by device or scene. Additional two options could be defined: time span = 0 defines the line as activity only. time span = ‘negative number’ line is suspended (remarked) IDs list given list of devices/scenes/QA/global/keywords. Use under score for scene IDs. (“_45”). global variable – add an ampersand sign & to System, QA and Local variable names: &varName keyword – add a dollar sign $ to keyword variable: $name Note: To use & and $ characters for other purpose , add % after the character. Criteria & Rules (optional) property, state, time slot, active rules… Action tables (optional) tables of commands to be executed. To avoid using device IDs jS2n{} array could be defined. If device ID changed because of re-inclusion it requires to change ID in one place only. for example: jS2n= {boiler=137'hc3, dryer=630'hc2, light=230'hcl} device name must be included within back apostrophe sign in jM{} hash table. Now jM{} hash table above will look like that: jM={ { 15, "`boiler`|`dryer`",{timeSlot={“12:00~18:00”},state="value=true", trueAct={“`light`”, “turnOn”,””}}} } 1. Monitor option Some time the scenes,QA and Virtual devices are stuck w/o any understandable reason. Some devices suddenly stop to send reports or don’t change state. In most of the cases we don’t aware about the problem till something goes very wrong. The monitor option will send an alert in case of defined states are timed out. Example to set watchdog timer for devices, scenes, QA devices, global variables and keywords jM={ {8, "_17'hc3|_545'hcl",{timeSlot=”10:00~22:00”}}, -- within every 8 min. between 10am to 10pm, scenes 17, 545 must be active. If not alert sent. {3,"134'hc2|618'hcl|_556'hc3|_588'yubii"}, -- within every 3 min. devices in the list and scenes must be active. If not auto-alert sent. {10,”132'hcl|145'hc2”,{property=”power”}}, -- within every 10 min. devices in the list must to report new power value. If not auto-alert sent. {30,”470'hc3”,{state=”power>10”}}, -- if device’s power greater than 10 over 30 minutes, auto-alert sent. {20,”&HomeStatus'hcl|$iDoor”}} -- if global variable HomeStatus or keyword iDoor didn’t change within 20 min., auto-alert sent. 2. Control option Execute actions based on device state, status or value changes at any controller and execute actions on others. AOR supports on-line calculations, time modifications, IF THEN and WHEN THEN statements and other features for fully home automation just with one program on your PC (which even doesn’t load the controllers). Following action tables are available: trueAct{} - executed when state status is true. falseAct{} - executed when state status is false. trigAct{} - executed on every value change at any mode, true or false timeoutAct{} - Disables auto-alert notification and executed when elapsed time exceeds time span. Time span counting restarted after state status back to true. timeLoopAct{} - Disables auto-alert notification and executed when elapsed time exceeds time span. Time counting restarted immediately. InitAct{} - Set of specific actions to be executed on startup only. errAct{} - Set of specific actions to be executed if verification failed. okAct{} - Set of specific actions to be executed if verification succeded. Here is an example when motion sensor breached on HC3, turn ON lights in HCL and turn off the light 3 minutes after sensor back to safe. jM={”150'hc3”,{state=”value=true”,trueAct={“120'hcl”,”turnOn”,””},falseAct={“120'hcl`”,”turnOff”,”180”}}} 3. User LUA function execution When device 150 on HC3 breached or goes back to safe run foo function and pass the value as an argument jM={"150'hc3", {state="true", trueAct={"foo", "runFunc, @$id>value"}, falseAct={"foo", "runFunc, @$id>value"}}}, in user_func.lua file the foo function would look like: function foo(value) if value=="true" then ... elseif value=="false" then ... end end For more details please download AOR Installation AOR Advanced User’s Guide - complete instructions and information AOR Quick Reference Guide – syntax format reference and examples AOR User functions – write your own code. GPS User Guide - location functionality Microsoft Visual Studio debug console ZeroBrane console output Web view- 1 review
-
- 1
-
- aor
- all-in-one
-
(and 2 more)
Tagged with:
-
Hello HC3 owners/guru's, Is there anyone who can tell me what the impact is of a change of the physical location of a HC3 device? Currently I am living in Europe (Belgium). I might have to move to Asia (Philippines) next year and want to bring my HC3 and re-install it there in my new house. I see the following 2 potential problems: Z-wave allowed frequency bands and standards used are the same in these 2 locations, but there might be other restriction I am not aware of. The centralized monitoring/support of all HC3 gateways via the HC3 device ID might be disrupted if you move the device to another world region or country. Note: I experienced a similar problem (issue 2 above) when I moved around with my printer from Thailand to the Philippines a few years ago, as the ink cartridges are not interchangeable between the 2 countries and other regions.. I guess this is a question for Fibaro HC3 guru's or a Fibaro company HC3 specialist. Your help would be appreciated if you can answer my questions or can tell me how to contact a Fibaro HC3 specialist. Thanks Leo I used the below URL for my short survey. URL: https://www.silabs.com/wireless/z-wave/global-regions EU 868.4 MHz, 869.85 MHz - Standard EN 300 220 PH 868.4 MHz, 869.85 MHz - Standard EN 300 220
-
Hello, I can't change the location of my house. The problem looks like a bug in the system. At first, I couldn't find the possibility to change the location at all, as the Longitude and Latitude information appear like static labels on the Configuration->Location page. Then, after using Safari browser, I found a hidden button (please see screenshot #1). But, after clicking this button, I was redirected to the page with the broken map (please see screenshot #2). I stuck on this page as no matter what I do, the location doesn't change. - If this is a bug, how to notify HC2 developers so they could probably release a fix in next firmware version? - If it's not a bug, how to overcome this problem? Thanks
-
Version 1.0
603 downloads
Many users are trying to use GPS feature, but the functionality and use of HC2 location data are very confusing and most of the time don't work correctly. The major advance of this scene that there is no use of HC2 defined locations and localization. The scene triggered by location change, which received by HC2 and tracks users' presence according to predefined places. The scene sends notification (and could announce on user location in case TTS system has been defined and set) in three conditions: User arrived to one of the predefined places. User approaching to one of the predefined places. User leaves one of the predefined places. You can define as many favorite places as you need. For example: Shopping Mall, School and etc. to track your family members. It helps to know if your kids are actually at school, and your wife at work and not at shopping mall. Please note that in most of the time there is a gap of few minutes between user's actually location (physical) to location received by the system. Unfortunately in some cases no update received at all. I'm using this scene for few years and still don't have full understanding how the GPS mechanism works... when, how and why the location is updated by Fibaro mobile application and I believe if the application closed on your mobile, no updates sent at all. Based on above facts, I do not suggest to execute any actions based on user location (like to open gate, lights), but I do suggest to turn on heating system (gap of few minutes better than nothing, or you already at home and your system anyway is ON) --=========================== USER CONFIGURABLE PARAMETERS =============================== eMailId = {2} -- user IDs to send email. To include more users use: eMailId={2,5,20} eMail = true -- if true, email will send popupNote = true -- if true, popup notification will send to all users. pushNote = true -- if true, interactive push notification will send to users, which can receive Push notifications as defined at "Access Control" panel at "Mobile devices list" section. _TTS = false -- text to speech message. Please before setting to true, make sure to update locationTts() function with your TTS setup. Default code in function based on Text to Speech - Android phone/Tablet scene and could be downloaded from https://forum.fibaro.com/files/file/180-text-to-speech-android-phonetablet/ --list of users ID and names (the reason to include names, is because the name could be email address in the system). Set scene %%properties accordingly to IDs in list. Please update according to your system GPSuser = {{2,"Alex"},{190, "Tammy"},{457,"Leon"}} --list of points of interest to follow users' arrival, approaching or leave. Please update/add according to your favorite locations. Make sure that place coordinates are few times more accurate than locAcc variable below. GPSplace = {{"Home","62.1747177;64.8820022"},{"Work","62.244312;64.842668"}} ignoreGps = 1 -- Amount of hours to consider the location is too old and ignored. Default to ignore over one hour old user location. locAcc = 300 -- Defined GPSplace area in meters, to assume presence in place. distGap=150 -- Distance between current and previous locations to avoid messages in case same location received several times. By executing the scene manually, table with users' last location and their distance from predefined places will be displayed. Please use this feature to verify that the users' location data is receiving and updating by HC2. hasGPS column shows if user has GPS (means if location has been ever sent from this user) and how frequently GPS position is collected. When the scene is triggered, follow information on debug window displayed: User name, his previous and current location and timestamps. Current distance of the user from all predefined places I hope it will do the job for you. -
Using Android Fibaro app v.126 - Samsung S9+ android 9, HC2 v4.550 User location/GPS has never worked since I got my HC2 around 9 months ago. A few times support have told me that it's a "known issue", most recently they are no longer say this, but neither can they find a solution - perhaps you can? I have enabled location permission for the app, set location accuracy to 15m (I have tried other values). On the HC2 I have set the system location, and in access control set GPS frequency to 1 min (I've also tried 5mins, 10 mins). Despite having everything set correctly (I think!), it still has never updated GPS location. This is the detail for superuser account which shows last location time in 2012 and Fibaro office in Poland (I'm in the UK): {"id":2,"name":"tom@xxxxxx","roomID":0,"type":"HC_user","baseType":"com.fibaro.voipUser","enabled":true,"visible":true,"isPlugin":false,"parentId":0,"remoteGatewayId":0,"interfaces":["voip"],"properties":{"Email":"tom@xxxxxx","HotelModeRoom":"0","LastPwdChange":"1559613890","Latitude":"52.43","Location":"52.4320294933;16.8449900900","LocationTime":"2012-12-06 12:15","LocationTimestamp":"1354792521","Longitude":"16.84","PreviousLatitude":"52.43","PreviousLocation":"52.4320252015;16.8449947542","PreviousLocationTime":"2012-12-06 12:14","PreviousLocationTimestamp":"1354792461","PreviousLongitude":"16.84","SendNotifications":"true","TrackUser":"1","UserType":"superuser","atHome":"false","deviceIcon":"91","fidUuid":"xxxxxxx","firmwareUpdateLevel":"0","initialWizard":"false","saveLogs":"1","sipDisplayName":"_","sipUserID":"1","sipUserPassword":"","useOptionalArmPin":"false","usePin":"false"},"actions":{"sendEmail":2,"sendPush":1,"setSipDisplayName":1,"setSipUserID":1,"setSipUserPassword":1},"created":1566743485,"modified":1566743485,"sortOrder":2} { "id": 2, "name": "tom@xxxxxx, "type": "superuser", "email": "tom@xxxxxx", "hasGPS": false, "deviceRights": [], "sceneRights": [], "heatingZoneRights": [], "hotelRoom": 0, "sendNotifications": true, "tracking": 1, "atHome": false, "useOptionalArmPin": false, "initialWizard": false } I have also tested with a new (non-superuser) account, but still no joy. I notice that the app always has "Welcome Home" even when a long distance from home! Any ideas how to get GPS / geolocation working? Thanks!
- 19 replies
-
- geofencing
- location
-
(and 1 more)
Tagged with:
-
Hi, I set the HC2 location to the Latitude and Longitude of my location and the time zone to Europe/London and even restarted the HC2 but the Yahoo Weather still thinks it's sunny 24 degrees c..... if only! Has anyone fixed this problem?
-
Hi All, I tried to use my iphone for presence/location detection in combination with the fibaro mobile app & HC2 locations. current location in the HC2 looks good. I tried making 2 blokscenes to test, one to send me an e-mail and push when leaving an area with range 100m and one for entering an area with range 100m. However, I never receive any push/mail, it looks like nothing is happening. The fibaro app has access to location data of the Iphone all the time. Am I missing something or is this just not working ?
-
Distance check is a LUA script to turn on the lights when you’re coming home, for example to turn on the garden light. It uses the GPS functionality of the Fibaro HC2. The script tries to manage the delays or the errors that sometimes there are acquiring the user's location by the Fibaro/GPS and it requires an interval of 1 minute for the Fibaro HC2 parameter "How frequently GPS position from the user’s iPhone should be collected". It has been tested in scenario where you are some kilometers away from home and you are going to home. How it works. You can define four areas: large area and small area, gap area and extra large area. The area are circles around the location of the house. When you enter in the large area the light is turned on and a timer is started. If you reach the small area before the timer has expired the light will be “confirmed on” otherwise the light will be turned off. Perhaps you was not going to home but you have entered in the large area for a while. When the light is “confirmed on” by the first timer a second timer is started. If you exit from the small area before that this timer has expired the light will be turned off. This second timer avoids that the light remains on when, for example, you pass near the house (inside the small area) without to stop at the house. If you remains in the small area the script will continue to run to check when you will go away from home just to reset at the condition where it checks when you area arriving to home. The reset happens when you will be out of the “large area + a gap distance”. Large area + gap distance define the gap area. The gap area is to avoid that the script switches exactly on large area border when you are going away from home. Infact it could be that the road you are on goes in and out from the large area or that the FIBARO GPS reports different values (greater or less than large area radius) when you are next to the large area border. So, without the gap area the script could turn on the light when you are going away from home. It is important to note that even though the script should erroneously turned on the light when you are going away from home the light will be turned off after the first timer is expired since you will not enter in the small area. Anyway the gap area avoids this kind of error and it is used only when you are going away from home. Link for script (ZIP file) and documentation (PDF) download: http://domotica.gposta.it
-
I have HCL and scene when I'm outside my living area to make my danfoss LC-13 change temperature to 12^C, it's working but only once after I leave . I have also a second scene where it's checks when I'm in area to put temperature high and it's working and every 2 hour checking I'm still there as when it change temperature it dose it on 2 hours Both scenes are active When I'm leave are When I'm coming home Is there some bug or GPS has priority higher than checking? GPS location is working on both phones me and my wife
-
Hi I have just hade my HC2 for a week or so. But can’t get user locations to work. I have enabled GPS tracking every 15 minutes on the members of my family. I have logged in the iOS app with separate users. But I can’t seem to get any location data in my HC2. I can see on of the family members in the “Your House” view but there are no location data. Am I doing something wrong or doesn’t this work on 4.035?