Commit Graph

10 Commits

Author SHA1 Message Date
ccostan 29a8534226 Updated to disable Duke Energy since I don't have a smart meter. 2018-06-22 15:21:54 -04:00
ccostan f7236dfb07 Undo All changes #383 2018-06-19 12:37:41 -04:00
ccostan 5cbfa7a1ef Forgot that this is needed for DB stats.. 2018-06-19 11:22:26 -04:00
ccostan e510b973a0 Update for Duke Energy Beta Testing #383 2018-06-19 11:21:32 -04:00
ccostan 3a18df3aff disabled for now until next round of changes. #329 2018-03-13 10:59:52 -04:00
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 40f8fd2edc You can find the entire repo here. 2018-02-28 19:43:00 -05:00