Skip to content

Expose the location name as state when daily info status is 7#353

Open
EnJens wants to merge 1 commit into
scaarup:mainfrom
EnJens:support-physical-placement-state
Open

Expose the location name as state when daily info status is 7#353
EnJens wants to merge 1 commit into
scaarup:mainfrom
EnJens:support-physical-placement-state

Conversation

@EnJens
Copy link
Copy Markdown

@EnJens EnJens commented May 4, 2026

The 7 status indicates a physical placement is set. This appears to be potentially unique per school/institution, but the id and name is included in the getDailyOverview response.

It's not entirely clear if this is available in other statuses, so I've kept it to safe for now. It could probably be simplified to just checking if location is not None.
I realize these are available as attributes on the sensor, but getting it as the state makes it easier to display and you get a better history.

I've captured two responses from my kids school with the relevant snippets below:

status: 7
location:
  id: XXXX
  name: Ude
  description: ""
  symbol: icon-Aula_sfo_slide
  startTime: null
  endTime: null
  startDate: null
  endDate: null
  isDeactivated: false
  weekDayMask: null
  isDateIntervalsEnabled: false
  isTimeIntervalsEnabled: false
  isWeekdaysEnabled: false


status: 7
location:
  id: XXXX
  name: Hal
  description: ""
  symbol: icon-Aula_sfo_gymnastic_hall
  startTime: null
  endTime: null
  startDate: null
  endDate: null
  isDeactivated: false
  weekDayMask: null
  isDateIntervalsEnabled: false
  isTimeIntervalsEnabled: false
  isWeekdaysEnabled: false

The 7 status indicates a physical placement is set.
This appears to be potentially unique per school/institution,
but the id and name is included in the getDailyOverview response.

I've captured two responses from my kids school with the relevant snippets below:

    status: 7
    location:
      id: XXXX
      name: Ude
      description: ""
      symbol: icon-Aula_sfo_slide
      startTime: null
      endTime: null
      startDate: null
      endDate: null
      isDeactivated: false
      weekDayMask: null
      isDateIntervalsEnabled: false
      isTimeIntervalsEnabled: false
      isWeekdaysEnabled: false

    status: 7
    location:
      id: XXXX
      name: Hal
      description: ""
      symbol: icon-Aula_sfo_gymnastic_hall
      startTime: null
      endTime: null
      startDate: null
      endDate: null
      isDeactivated: false
      weekDayMask: null
      isDateIntervalsEnabled: false
      isTimeIntervalsEnabled: false
      isWeekdaysEnabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant