lorenzo-deluca / silence-private-server

Self-Hosted solution for Silence and Seat scooter’s Astra GPS module, ensuring data privacy and independence from the manufacturer.
https://buymeacoffee.com/lorenzodeluca
GNU Affero General Public License v3.0
21 stars 2 forks source link

Astra module #9

Closed geozar closed 2 weeks ago

geozar commented 1 month ago

Hi I have an issue with the module , I don't have access since January, I could not find a solution with local service, is there a way to test the module if it works? There is no light at the module.

lorenzo-deluca commented 1 month ago

mmmh, I don't know honestly.. Have you try to connect to the module on serial as described in the guide?

geozar commented 3 weeks ago

service fixed the module , was a power issue now also the app works , but i have an other issue on Mosquitto i get this

2024-10-30 23:42:26: New connection from 192.168.1.64:55793 on port 1883. 2024-10-30 23:42:26: Client auto-E0AE909F-96BB-E6C7-1C2B-14393278359D disconnected, not authorised. 2024-10-30 23:42:28: Connecting bridge Silence (192.168.1.64:1883) 2024-10-30 23:42:28: Client local.core-mosquitto.Silence disconnected: Broken pipe.

and on server i get this

Screenshot 2024-10-30 233441

geozar commented 2 weeks ago

Hi again i fixed ( hope ) the issues with the broker but now i see these errors.

1st picture everythings is ok 1

but then

2

and

3

any thoughts?

lorenzo-deluca commented 2 weeks ago

Hi @geozar , sorry, I see now your messages ... for the first issue it's regarding MQTT authentication, but you're already fixed, good! For the second issue, try to disable connection to Silence Server, put bridgeMode to false in json configuration.

It looks like the module connects correctly to your private server! :) Maybe the Silence servers having issues...I haven't used their server in months.

Let me know 👍

geozar commented 2 weeks ago

That worked. Thank you very much i am now fine tuning home assistant and at status i get 5.0 , 2.0 or 10.0 is it possible to change that?

1

lorenzo-deluca commented 2 weeks ago

Good :)

That worked. Thank you very much i am now fine tuning home assistant and at status i get 5.0 , 2.0 or 10.0 is it possible to change that?

1

Mmmh, for now you can configure a template like this

  - platform: template
    sensors:

      silence_scooter_status:
        unique_id: silence_scooter_status
        value_template: >
          {% set stato = states('sensor.silence_scooter_device_silence_status') | int(default=0) %}
          {% if stato == 0 %}
            OFF
          {% elif stato == 1 %}
            BMS_ON
          {% elif stato == 2 %}
            IGNITION_ON
          {% elif stato == 3 %}
            DRIVE
          {% elif stato == 4 %}
            MOVING
          {% elif stato == 5 %}
            BATTERY_OUT
          {% elif stato == 6 %}
            CHARGING
          {% elif stato == 5 %}
            UNKNOWN
          {% endif %}