stationeers.de Mod workshop · Dominik1199
DE Sign in
  1. Home
  2. Stationeers wiki
  3. Devices
  4. Daylight Sensor

Devices

Daylight Sensor

Tageslichtsensor

PrefabStructureDaylightSensor Hash1076425094in the hash lookup
Power paintable Game 0.2.6428.27798

Overview

Daylight Sensor (StructureDaylightSensor) in Stationeers: device, hash 1076425094, 10 W. With build steps, 10 IC10 logic values and connection diagram.

The daylight sensor is the eye of your solar array. It provides these values:

Logic valueMeaning
Activate1 in sunlight, otherwise 0 – also 0 in shade
Horizontal, Verticaldirection of the sun, relative to the sensor
SolarAngleangle between sensor and sun (in mode Default)
SolarIrradiancesolar irradiance, 0 without light
Mode0 Default, 1 Horizontal, 2 Vertical

Mode only decides what SolarAngle contains: in modes 1 and 2 it holds one of the two directions instead of the angle. Horizontal and Vertical are always available. If your chip relies on SolarAngle, set the mode yourself to DaylightSensorMode.Default.

All angles refer to the sensor itself – how you mount it changes the values. Mount it facing exactly like the panels it is meant to control. If it points straight up, SolarAngle is the sun's distance from the zenith: 0° at noon with the sun right above, 90° at the horizon. The sun's height is then 90° minus SolarAngle.

The sensor needs 10 W and is made from the Kit (Sensors), which also builds gas, motion and occupancy sensors. A complete tracking program is in Solar arrays: alignment, tracking, day and night, the basics in the IC10 academy: sun angle.

IC10 and logic

10 logic values, 10 readable and 3 writable.

  • Mode RW 3
  • Activate RW 9
  • Horizontal R 20
  • Vertical R 21
  • SolarAngle R 22
  • On RW 28
  • PrefabHash R 84
  • SolarIrradiance R 176
  • ReferenceId R 217
  • NameHash R 268

Example: address by name

Reads On, shows the value on the IC housing and writes Activate. Name the device with the labeller first; devices with the same name are addressed together.

# Daylight Sensor address by name
define DEVICE 1076425094  # StructureDaylightSensor
define NAME HASH("Daylight Sensor")  # name in game (labeller)
define TARGET 1  # Activate 1 = activate
alias value r0

start:
yield
lbn value DEVICE NAME On 0  # 0 = average of all with this name
bnan value start  # no device with this name
s db Setting value  # show on the housing
sbn DEVICE NAME Activate TARGET  # set value
j start

Connections

1
Schematic: inputs left, outputs right, waste on top, power and data at the bottom. Position and spacing do not match the model.
  1. 1Power and data

Slots and modes

Modes: 0 = Default, 1 = Horizontal, 2 = Vertical

Building and deconstruction

Grid: small grid (0.5 m) · mounting: on wall or floor

  1. 1

    Place

    Take back with Hand Drill

Total material

Deconstruction returns

Built with: Kit (Sensors)

Raw values from the game code (1)

Field names as in the game code, untranslated. Useful for mods and exact limits.

Sensor.ConnectionTypeFlatExhaustive

See also

Esc
↑ ↓ selectEnter open/ opens search anywhere