Commit Graph

1428 Commits

Author SHA1 Message Date
Marc Forth 8d672fbec8
Update fitbit.py 2018-03-13 12:45:14 +00:00
Marc Forth 41f5e492e7
Update fitbit.py 2018-03-13 12:34:28 +00:00
Marc Forth 4750e12fe2
Update fitbit.py 2018-03-13 12:28:23 +00:00
Marc Forth a33b5da819
Create fitbit.py
Hi Carlo,

## TLDR - Maybe made the fitbit component support multiple devices.  (see disclaimer and instructions below!)

~~~~~~~~~~~~~~~~

## Long version...

I've been looking in to sleep monitoring and was looking at getting fitbits for my other-half and myself, but it's only any use spending the money if I can monitor us both with homeassistant.  As such, I did a bit of research and saw the various threads that show the current component is only working with one device.  So, I decided to have a look at amending it.  Problem being, I can't test it because I don't have the devices to test it on, and I'm not buying the devices until I know it works.

## Disclaimer

I am not a python programmer, I'm just learning the platform now, but I get the logic so I've fumbled through!  It appears to be working as far as I can test it without the devices here.  If this breaks anything I'm really really sorry!  Make sure you follow the instructions below for some safeguarding!

## Instructions

1 - Make a backup copy of your current fitbit.conf somewhere away from your homeassistant instance.

2 - Delete your current local copy of fitbit.conf, and add this PR to your custom_components folder

3 - Change your configuration.yaml (or appropriate package/include) to:

```
sensor:
  - platform: fitbit
    filename: carlo.conf

  - platform: fitbit
    filename: wife.conf
```

plus whatever monitored conditions you want and your clock preference if relevant.

4 -Restart homeassistant

5 - You should get a configurator card for the two entities, copy the contents of your old fitbit.conf in to carlo.conf , sort out the details for your wife's in to hers.

6 - Let me know!!!

## If it all goes wrong

Delete this custom component, reinstate your original fitbit.conf, revert your configuration.yaml (or appropriate include/package).

##Disclaimer 2

If it doesn't work, I might not be able to do much more as I am not a python programmer, but let me know because it might be something I can work out.

If it does work I'll get another couple of people to test and then submit it as an update for the integrated component.
2018-03-13 12:14:53 +00:00
ccostan 5993463b4b Minor Edit 2018-03-12 16:26:42 -04:00
ccostan 38514a9e7c Minor Edit 2018-03-12 16:16:57 -04:00
ccostan 048e16d93b Steve Test 2018-03-12 16:04:59 -04:00
ccostan b0c60a640b Minor Edit 2018-03-10 13:20:45 -05:00
ccostan 3424bf289b #323 Updated Alarm package call outs 2018-03-10 13:15:45 -05:00
ccostan 3ce4b8643b #323 Updated Section - Hubs 2018-03-10 12:57:46 -05:00
ccostan 2e905c43b9 Updated with new sections. 2018-03-10 12:48:50 -05:00
ccostan d936186bf0 Merge branch 'master' of https://github.com/CCOSTAN/Home-AssistantConfig 2018-03-10 12:15:47 -05:00
ccostan 1ee229a5f6 Minor Edit 2018-03-10 12:09:50 -05:00
Carlo Costanzo 7ccd05eeb1
Merge pull request #326 from stanvx/patch-1
Update .travis.yml to use Python 3.6
2018-03-10 12:08:32 -05:00
stanvx aa757a3a8a
Update .travis.yml to use Python 3.6 2018-03-10 15:23:54 +11:00
ccostan c1d6231f52 Reddit logo 2018-03-09 23:20:23 -05:00
ccostan e19194d080 reddit 2018-03-09 23:11:42 -05:00
ccostan b32a83497c Minor Edit 2018-03-09 22:05:39 -05:00
ccostan 843df5b73c Minor Edit 2018-03-09 22:03:48 -05:00
ccostan c470acdf66 Minor Edit 2018-03-09 22:02:35 -05:00
ccostan 95c6efbaea Minor Edit 2018-03-09 21:53:16 -05:00
ccostan f1782d885d Help Me Help You. 2018-03-09 21:41:14 -05:00
ccostan a285bffb6c Minor Edit 2018-03-09 21:40:42 -05:00
ccostan be53a4558c Minor Edit 2018-03-09 21:40:08 -05:00
ccostan 3a77184fb5 Minor Edit 2018-03-09 21:39:40 -05:00
ccostan 6c935a7a1a Minor Edit 2018-03-09 21:37:43 -05:00
ccostan 8bf38ea9a6 Minor Edit 2018-03-09 21:35:53 -05:00
ccostan df91db813f Minor Edit 2018-03-09 21:34:00 -05:00
ccostan 40d1350136 Minor Edit 2018-03-09 21:22:45 -05:00
ccostan 332fda4a63 More branding. 2018-03-09 17:13:30 -05:00
ccostan e7471d8175 Hero Shots! 2018-03-09 16:58:36 -05:00
ccostan 128cabaa8d Disabled a twitter welcome message via HA. Working on a new HOT Flow! See @BearStoneHA for details. 2018-03-08 12:51:32 -05:00
ccostan bf9cc8a2c2 Closes #321 2018-03-07 14:37:51 -05:00
ccostan cec3106bba Minor Edit 2018-03-06 21:07:05 -05:00
ccostan 01e6186161 Steve is the Man! #324 2018-03-06 18:21:16 -05:00
ccostan f632167b51 Minor Edit 2018-03-06 17:15:32 -05:00
ccostan b9ed134e87 #324 2018-03-06 17:07:14 -05:00
ccostan 715e339798 #324 2018-03-06 16:59:05 -05:00
ccostan 5fc2f75f24 #324 Updated sizes.. 2018-03-06 16:51:57 -05:00
ccostan b625374176 #324 2018-03-06 16:46:55 -05:00
ccostan 3f3d88db9d #324 - way too big. 2018-03-06 16:30:00 -05:00
ccostan b002b09332 Closes #324 2018-03-06 15:30:47 -05:00
ccostan 16518e7b39 #324 - Added to all existing readmes. 2018-03-06 15:29:31 -05:00
ccostan 172c4e494d #324 Prep work 2018-03-06 14:36:54 -05:00
ccostan 0831c95756 Add in Affiliate Disclosure 2018-03-05 18:11:06 -05:00
ccostan 976ad5b90a Complete another hidden link section with redirects. #321 2018-03-04 22:10:37 -05:00
ccostan a881873154 Update to 0.64.3 and some BeepBop Beep Boop. 2018-03-02 23:16:23 -05:00
ccostan 2a94b9f15b Minor Edit 2018-03-02 21:01:50 -05:00
ccostan 22d50957a7 Minor Edit 2018-03-02 21:01:07 -05:00
ccostan b1a316b767 Minor Edit 2018-03-02 20:59:20 -05:00