项目作者: lorenzo-deluca

项目描述 :
Home Assistant Integration for Silence Scooter
高级语言: Python
项目地址: git://github.com/lorenzo-deluca/homeassistant-silence.git
创建时间: 2021-05-22T18:51:07Z
项目社区:https://github.com/lorenzo-deluca/homeassistant-silence

开源协议:GNU Affero General Public License v3.0

下载


Home Assistant Integration for Silence Scooter

hacs_badge
Version
Downloads

buy me a coffee

Silence.eco Scooter data for [Home Assistant][https://www.home-assistant.io]

This is a Home Assistant custom component that integrate data from you Silence Scooter to Home Assistant.
If you like this project you can support me with :coffee: , with GitHub Sponsor or simply put a :star: to this repository :blush:



Buy Me A Coffee

Disclaimer

This plugin was developed by analyzing traffic from official Silence Connected App, it was not sponsored or officially supported by Silence.eco
If someone from Silence would like to contribute or collaborate please contact me at me@lorenzodeluca.dev

🚨 UPDATE JULY 2024

NEW PROJECT (Open Source Private Server):
With the help of other users and since the applications are becoming pay-as-you-go, we have created an alternative project whereby you can create your own private server, becoming completely autonomous and not sending any data to Silence/Seat.
This project should also work with Seat Mò scooters.
Private Server


Installation

You can install this plugin like any other hacs integration on home assistant.

HACS

Manual

Copy or link silencescooter subfolder to config/custom_components.

Configuration

Configure you Scooter with Silence APP, edit configuration.yaml file adding this sensor with your app credentials.

  1. sensor:
  2. - platform: silencescooter
  3. name: MySilenceScooter
  4. username: !secret silenceuser
  5. password: !secret silencepassword

Home Assistant

After installing and configuring the plugin you will be able to view on home assistant all the data of your scooter silence,
keep statistics and use them for your automations.

Entities

After installation and configuration, if everything is working (if not, check the registry by searching ‘silence’),
you will find several sensor entities named ‘silence.xxx’

HA Entities
HA Battery Soc

Lovelace

You can create various tabs like this one

Lovelace Scooter

Here is the YAML code, you need some HACS Frontend integration installed:

  • vertical-stack-in-card
  • custom:mini-graph-card
  1. type: custom:vertical-stack-in-card
  2. cards:
  3. - type: picture
  4. image: local/dark_logo.png
  5. - type: custom:bar-card
  6. height: 35px
  7. entities:
  8. - entity: sensor.silence_batterysoc
  9. name: Battery SoC
  10. - type: entities
  11. entities:
  12. - entity: sensor.silence_status
  13. name: Status
  14. - entity: sensor.silence_alarmactivated
  15. name: Alarm
  16. - entity: sensor.silence_batteryout
  17. name: Battery Out
  18. - entity: sensor.silence_charging
  19. name: In Charging
  20. - entity: sensor.silence_odometer
  21. name: Odometer
  22. - entity: sensor.silence_range
  23. name: Range
  24. - entity: sensor.silence_velocity
  25. name: Speed
  26. - entity: sensor.silence_lastreporttime
  27. name: Last Update
  28. - type: glance
  29. title: Scooter
  30. entities:
  31. - entity: sensor.silence_name
  32. name: Name
  33. - entity: sensor.silence_color
  34. name: Color
  35. - entity: sensor.silence_model
  36. name: Model
  37. - entity: sensor.silence_manufacturedate
  38. name: Manufacture
  39. - entity: sensor.silence_frameno
  40. name: Frame
  41. - entity: sensor.silence_imei
  42. name: IMEI
  43. show_icon: false
  44. - type: horizontal-stack
  45. title: Temperature
  46. cards:
  47. - type: custom:mini-graph-card
  48. entities:
  49. - entity: sensor.silence_motortemperature
  50. name: Motor
  51. line_color: red
  52. - type: custom:mini-graph-card
  53. entities:
  54. - entity: sensor.silence_invertertemperature
  55. name: Inverter
  56. - type: custom:mini-graph-card
  57. entities:
  58. - entity: sensor.silence_batterytemperature
  59. name: Battery

Device Tracker

For device tracking you can use this automation to update a dummy device tracker called silence_scooter_tracker

  1. alias: Auto - Silence Scooter Update Location
  2. description: ""
  3. trigger:
  4. - platform: state
  5. entity_id:
  6. - sensor.silence_location_latitude
  7. - platform: state
  8. entity_id:
  9. - sensor.silence_location_longitude
  10. - platform: homeassistant
  11. event: start
  12. condition: []
  13. action:
  14. - service: device_tracker.see
  15. data:
  16. dev_id: silence_scooter_tracker
  17. gps:
  18. - "{{ states('sensor.silence_location_latitude') }}"
  19. - "{{ states('sensor.silence_location_longitude') }}"
  20. mode: single

HA Device Tracker

Work in Progress

Remote controls from the app, such as on/off, opening the under seat and alarm activation, are still to be managed.
I have captured the apis but I still have to implement the services from Home Assistant.
Any help is welcome, if you have new implementations feel free to make pull requests :blush:

Tested on Silence Scooters

  • Silence S01 Connected
  • Silence S01+

Known issues (FAQ)

License

GNU AGPLv3 © [Lorenzo De Luca][https://lorenzodeluca.dev]