Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Powers

Pages: [1]
1
Vera Home Automation Controller / Re: Getting started with Vera
« on: January 04, 2024, 09:11:51 PM »
Hello all,

I have been using vera for a few years now. Now that Ezlo aquired Vera and made it's own Ezlo line, could we also integrate Ezlo API with Vox Commando? If there is anyway I can assist please let me know!

Note: I've been using Vera Plus and now bought an Ezlo Plus. The old Vera method doesn't exist in Ezlo, they made it more cloud based and you can disable authentication via Cloud API GUI.

Cheers,
Powers

2
VoxWav Free and VoxWav Pro / Re: Voxwav pro prefix not working
« on: November 15, 2021, 03:01:24 PM »
Thank you James, it works now. I tested it for the last hour!

3
VoxWav Free and VoxWav Pro / Re: Voxwav pro prefix not working
« on: October 01, 2021, 05:12:26 PM »
@jitterjames

I know this thread is a bit old but I have been experiencing the same issue. I have done an extensive testing with my phones. Please see my finding below. I have also included my logs, I started VC fresh, and executed non-prefix then prefix, both worked.

VoxCommando 2.3.1.1b - VC (I ran VoxCommando.exe) Settings changed from default:
5 second time to Standby mode
"jarvis" set as prefix
Plugins installed TCPMic and Vera
Configured Vera and generated XML and map

Tested on the following phones, all with same VWP version, on same wifi. Tested one at a time and all togther with the same results.
OnePlus 2  - Android 6.0.1
OnePlus 3  - Android 9
OnePlus 5  - Android 10
OnePlus 6  - Android 10
OnePlus 8T - Android 11

Initially tested with
VoxWav FREE 2.4 - Phone Settings changed from default:
Manual typed VC IP

Then perform extensive testing with
VoxWavPro 2.8.2 - Phone Settings changed from default:
Assign "Unique device name"
Auto Detected VC IP
"Prefix: Required" Always on during testing
connected to same wifi as VC

Using OnePlus 6

ALWAYS IN STANDBY WHEN TESTING

30 attempts between turn off and on from different distances and directions, only first 3 were recorded per row
OSD Required Confidence         Prefix Confidence            Confidence                Command                           Result
==========================================================================
90                                          40                                 92.5,91.8,94.8          Turn Office Light On                Executed
90                                          40                                 86.8,72.3,88.8          Turn Office Light On                NOT Executed
90                                          40                                 92.1,94.7,93.1          Turn Office Light Off                Executed
90                                          40                                 64.0,82.3,72.3         Turn Office Light Off                NOT Executed
90                                          40                                 90.4,93.8,91.6          Jarvis Turn Office Light On       Executed
90                                          40                                 84.4,86.5,89.1          Jarvis Turn Office Light On       NOT Executed
90                                          40                                 94.5,92.7,90.5          Jarvis Turn Office Light Off       Executed
90                                          40                                 57.9,73.5,86.8          Jarvis Turn Office Light Off       NOT Executed
==========================================================================
30 attempts between turn off and on, only first 3 were recorded per row
90                                          80                                 93.4,93.5,91.4          Turn Office Light On                Executed
90                                          80                                 89.0,81.2,80.8          Turn Office Light On                NOT Executed
90                                          80                                 94.3,94.4,91.8          Turn Office Light Off                Executed
90                                          80                                 84.0,75.3                Turn Office Light Off                NOT Executed
90                                          80                                 92.8,93.7,92.8          Jarvis Turn Office Light On       Executed
90                                          80                                 89.1,86.6                Jarvis Turn Office Light On          NOT Executed
90                                          80                                 92.7,93.1,92.7          Jarvis Turn Office Light Off       Executed
90                                          80                                 87.9,83.2,83.9          Jarvis Turn Office Light Off       NOT Executed
==========================================================================
30 attempts between turn off and on, only first 3 were recorded per row
40                                          80                                 94.4,69.3,76.9          Turn Office Light On                Executed
40                                          80                                 79.6,82.4,64.6          Turn Office Light Off                Executed
40                                          80                                 93.2,88.0,53.4          Jarvis Turn Office Light On       Executed   
40                                          80                                 92.5,67.9,87.7          Jarvis Turn Office Light Off       Executed   
==========================================================================
30 attempts between turn off and on, only first 3 were recorded per row
90                                          90                                 92.2,91.1,96.0          Turn Office Light On                Executed
90                                          90                                 88.4,64.3,72.5          Turn Office Light On                NOT Executed
90                                          90                                 90.5,93.0,91.2          Turn Office Light Off                Executed
90                                          90                                 88.1,71.2                Turn Office Light Off                NOT Executed
90                                          90                                 90.2,94.0,90.4         Jarvis Turn Office Light On       Executed
90                                          90                                 89.9,72.7,86.0          Jarvis Turn Office Light On       NOT Executed
90                                          90                                 94.3,93.9,91.8         Jarvis Turn Office Light Off       Executed
90                                          90                                 89.4,87.3,89.9          Jarvis Turn Office Light Off       NOT Executed
==========================================================================

Results are that prefix mode does not work, when enabled in Options in VC and with or without "Prefix:R Required" button pushed on

4
Bug Reports / Re: Switchbot API Scrapping - Follow up
« on: August 21, 2021, 08:24:44 AM »
Its been a while but this is a follow up and a good step moving forward if you do have Switchbot devices. There are two generating commands, one for pulling devices and another for scenes and put to payload file.

To use:
1. Replace "[long api key]" (including brackets) with your own API key.
2. Replace "[scene ID "T01-*"]" with the scenes ID, usually starts with T01.

5
Bug Reports / Re: Switchbot API Scrapping
« on: February 10, 2021, 04:24:10 PM »
Updating to the beta version 2.3.1.1 worked! Do you think a dll file was corrupted or was something changed/added to scrape action?

Thank you James!

6
Bug Reports / Switchbot API Scrapping
« on: February 09, 2021, 10:02:54 PM »
Hello All,

I have been working to get scraping to work for a while and hit a brick wall and wanted to check if I am the only one or this could be a bug.

I am currently using VC version 2.3.0.4, however, also tested on version 2.3.0.8 with same results.

I am trying to get a list of scenes from a switchbot api (https://github.com/OpenWonderLabs/SwitchBotAPI) using the VC scrape action.

I have the following code:

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.3.0.4-->
<command id="-1" name="Actions copied from LCB">
  <action>
    <cmdType>Scrape.Get</cmdType>
    <params>
      <param>https://api.switch-bot.com/v1.0/scenes</param>
      <param>application/json; charset=utf8</param>
      <param>switchbot</param>
      <param />
      <param />
      <param>Authorization: <api key></param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>

The logs show the following:
2/9/2021 8:28:55 PM   721   doCommand:Get Scenes
2/9/2021 8:28:55 PM   721   Action claims to be threadsafe.
2/9/2021 8:28:55 PM   721   action repeat set to: 1
2/9/2021 8:28:55 PM   721   Action:  Scrape.Get
2/9/2021 8:28:55 PM   721   Param1:https://api.switch-bot.com/v1.0/scenes
2/9/2021 8:28:55 PM   721   Param2:application/json; charset=utf8
2/9/2021 8:28:55 PM   721   Param3:switchbot
2/9/2021 8:28:55 PM   721   Param4:
2/9/2021 8:28:55 PM   721   Param5:
2/9/2021 8:28:55 PM   721   Param6:Authorization: <api key>
2/9/2021 8:28:55 PM   721   addHistoryItem [action] Scrape.Get:https://api.switch-bot.com/v1.0/scenes&&application/json; charset=utf8&&switchbot&&&&&&Authorization: <api key>

2/9/2021 8:28:55 PM   736   Doing scrape put/post with headers:
Content-Type: application/json; charset=utf8
User-Agent: switchbot
Authorization: <api key>
2/9/2021 8:28:56 PM   2   Action ERROR: Web exception: The underlying connection was closed: An unexpected error occurred on a send.
The underlying connection was closed: An unexpected error occurred on a send.

 
Unsure why I get this error. I verified in a Linux machine with a curl command and it works just fine:
Code: [Select]
curl https://api.switch-bot.com/v1.0/scenes -H "Authorization: <api key>" -H "Content-type: application/json; charset=utf8"  -A "switchbot"Results:
Code: [Select]
{"statusCode":100,"body":[{"sceneId":"T01-202011091019-34589658","sceneName":"XBox On"},{"sceneId":"T01-202011091101-35496984","sceneName":"XBox Off"},{"sceneId":"T01-202102022309-99256608","sceneName":"Test Scene"}],"message":"success"}
I disabled firewall and anything that could cause it to not work and still not working. I'm I missing something here or do I need to update some dll to support this scrape?

Thank you all in advance.

7
Tips and Tricks / Re: Learning Arabic with Voxcommando
« on: December 19, 2020, 07:48:04 PM »
Yup, that was it, my file was messed up. But really it turns out the line you added at the bottom did the trick. Which is weird, means the python variable for "calcMethod" does not work for VC.

The line:
    prayTimes.setMethod('ISNA');

Thank you @jitterjames

8
RegEx (Regular Expressions) / Re: Problem scraping https page
« on: December 18, 2020, 08:03:15 AM »
good point, the details:

VC 2.3.0.4
I was trying to scrape Telegram's API

I got it to work by using "Scrape" Action. Scrape.Get/Post didn't work for me. Still playing with it, but can see the potential!

9
Tips and Tricks / Re: Learning Arabic with Voxcommando
« on: December 17, 2020, 10:52:40 AM »
Hi jitterjames

I set calcMethod = 'ISNA' and timeFormat = '12h'. I am in Washington DC. I set the coordinate as 38.89, -77.04, exact string is, "myPrayTimes(38.89, -77.04,-5)" for the action, "PY.ExecString". I have attached a photo of the executed times but Fajr should be around 6am and Isha around 6pm

Was there other argument/parameters I needed to set?

10
RegEx (Regular Expressions) / Re: Problem scraping https page
« on: December 14, 2020, 07:44:33 AM »
@jitterjames or @monkee was there a fix for this? I am experiencing the same error

"The request was aborted: Could not create SSL/TLS secure channel"

Thank you

11
Tips and Tricks / Re: Learning Arabic with Voxcommando
« on: December 13, 2020, 10:12:40 AM »
The website http://praytimes.org/ provides code in various programming languages to calculate prayer times depending on your location, including in Python. I was able to use their code without any problems using VC's Python plugin...

Hello all! I was interested in VC about a year ago this week, however, never dived in until now. Browsing thru the forums and found this to be pretty neat. I know its been years and both this forum thread and website haven't been updated in a while. I am not good with python and tried first myself and couldn't get the offset/adjust to work. The VC shows the time when it loads and my fajr and isha times are off. Fajr is early by 24 minutes and isha late by 15 minutes.

@nime5ter (or anyone else who is better at python then me, meaning everyone else!) I tried to place this in many different location but with no success. May I get assistance please?

prayTimes.adjust( {fajr: 24, isha: -15} );

Thank you an advance!

Pages: [1]