home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.73k stars 28.88k forks source link

Toots sometimes public sometimes "less public" #101578

Closed metbril closed 1 day ago

metbril commented 9 months ago

The problem

When posting to mastodon, some of the toots are listed as public (with a globe icon) and others are less public (open lock icon). There is no setting to set this. I can't reproduce it, it looks random to me.

Scherm­afbeelding 2023-10-07 om 11 38 41

What version of Home Assistant Core has the issue?

core-2023.10.0

What was the last working version of Home Assistant Core?

never, this has been as long as I know of

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Mastodon

Link to integration documentation on our website

https://www.home-assistant.io/integrations/mastodon/

Diagnostics information

No response

Example YAML snippet

##############################################################################
## Mastodon
## https://www.home-assistant.io/integrations/mastodon
##
## Send notifications to the Mastodon account of the house
## https://botsin.space/@DomusSapiens
##############################################################################
notify:
  - name: Mastodon
    platform: mastodon
    base_url: https://botsin.space/
    access_token: !secret mastodon_access_token
    client_id: !secret mastodon_client_id
    client_secret: !secret mastodon_client_secret

script:
  toot_engine:
    alias: Toot Engine
    fields:
      who:
        name: Who
        description: The notifier name that will send the toot. See Services for options.
        required: true
        default: mastodon
        example: mastodon
        selector:
          text:
            multiline: false
            type: text
      message:
        name: Message
        description: The message to toot.
        required: true
        example: Hello world!
        selector:
          text:
            multiline: true
            type: text
    sequence:
    - if:
      - condition: not
        conditions:
        - condition: state
          state: 'on'
          entity_id: input_boolean.toot_engine
        alias: Niet
      then:
      - stop: ''
    - service: notify.{{ who | default('mastodon') }}
      data:
        message: '{{ message }}'
    mode: queued
    icon: mdi:elephant
    max: 10

automation:
  - id: '1696593143777'
    alias: 'Toot: Sunrise and sunset'
    description: ''
    trigger:
    - platform: state
      entity_id:
      - sun.sun
      to: below_horizon
      for:
        hours: 0
        minutes: '{{ range(0,4) | random | int(0) }}'
        seconds: 0
      id: Zon Onder
    - platform: state
      entity_id:
      - sun.sun
      to: above_horizon
      for:
        hours: 0
        minutes: '{{ range(0,4) | random | int(0) }}'
        seconds: 0
      id: Zon Op
    condition: []
    action:
    - choose:
      - conditions:
        - condition: trigger
          id:
          - Zon Onder
        sequence:
        - service: script.toot_engine
          data:
            who: mastodon
            message: "{{ [ 'Zonsondergang! \U0001F307', 'De dag zit er weer op! \U0001F605',
              'Goedenavond! \U0001F31A' , 'Hit for the moon! \U0001F31B' ] | random
              }}"
      - conditions:
        - condition: trigger
          id:
          - Zon Op
        sequence:
        - service: script.toot_engine
          data:
            who: mastodon
            message: "{{ [ 'Zonsopkomst! \U0001F305' , 'Het wordt een mooie dag! \U0001F603'
              , 'Goedemorgen! ☕️', 'Rise and shine! \U0001F31E' ] | random }}"
    mode: single

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 9 months ago

Hey there @fabaff, mind taking a look at this issue as it has been labeled with an integration (mastodon) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `mastodon` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign mastodon` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


mastodon documentation mastodon source (message by IssueLinks)

metbril commented 9 months ago

Possibly related to #84530?

SteveDinn commented 6 months ago

Looks like that one was abandoned. Maybe this one will stick? https://github.com/home-assistant/core/pull/96163

issue-triage-workflows[bot] commented 3 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

SteveDinn commented 3 months ago

This bug can probably be closed for real, not just by attrition, with this PR (pending review): https://github.com/home-assistant/core/pull/112862

issue-triage-workflows[bot] commented 1 week ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.